oli-python 1.2.0__tar.gz → 1.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oli-python
3
- Version: 1.2.0
4
- Summary: Python SDK for interacting with the Open Labels Initiative; A framework for address labels in the blockchain space. Read & write labels into the OLI Label Pool, check your labels for OLI compliance.
3
+ Version: 1.2.1
4
+ Summary: Python SDK for interacting with the Open Labels Initiative; A standard, registry and trust layer for EVM address labels.
5
5
  Home-page: https://github.com/openlabelsinitiative/oli-python
6
6
  Author: Lorenz Lehmann
7
7
  Author-email: lorenz@growthepie.xyz
@@ -13,7 +13,7 @@ class UtilsValidator:
13
13
  'tron:', # TRON
14
14
  'stellar:', # Stellar
15
15
  'bip122:', # Bitcoin
16
- 'SN_' # Starknet
16
+ 'SN_MAIN' # Starknet
17
17
  ]
18
18
 
19
19
  def fix_simple_tags_formatting(self, tags: dict) -> dict:
@@ -144,7 +144,7 @@ class UtilsValidator:
144
144
 
145
145
  # Check if the tag_id is in the official OLI tag list
146
146
  if tag_id not in self.oli.tag_ids:
147
- print(f"WARNING: Tag tag_id '{tag_id}' is not an official OLI tag. Please check the 'oli.tag_definitions' or https://github.com/openlabelsinitiative/OLI/blob/main/1_data_model/tags/tag_definitions.yml.")
147
+ print(f"WARNING: Tag tag_id '{tag_id}' is not an official OLI tag. Please check 'oli.tag_definitions' or https://github.com/openlabelsinitiative/OLI/blob/main/1_label_schema/tags/tag_definitions.yml.")
148
148
 
149
149
  # Check if the tag_id is in the correct format. So far implemented [boolean, string, integer, list, float, string(42), string(66), date (YYYY-MM-DD HH:MM:SS)]
150
150
  else:
@@ -18,7 +18,7 @@ class DataFetcher:
18
18
  Returns:
19
19
  dict: Dictionary of official OLI tags
20
20
  """
21
- url = "https://raw.githubusercontent.com/openlabelsinitiative/OLI/refs/heads/main/1_data_model/tags/tag_definitions.yml"
21
+ url = "https://raw.githubusercontent.com/openlabelsinitiative/OLI/refs/heads/main/1_label_schema/tags/tag_definitions.yml"
22
22
  response = requests.get(url)
23
23
  if response.status_code == 200:
24
24
  y = yaml.safe_load(response.text)
@@ -58,7 +58,7 @@ class DataFetcher:
58
58
  value_sets[tag_id] = [i.lower() if isinstance(i, str) else i for i in value_set]
59
59
 
60
60
  # value set for owner_project
61
- url = "https://api.growthepie.xyz/v1/labels/projects.json"
61
+ url = "https://api.growthepie.com/v1/labels/projects.json"
62
62
  response = requests.get(url)
63
63
  if response.status_code == 200:
64
64
  y = yaml.safe_load(response.text)
@@ -68,7 +68,7 @@ class DataFetcher:
68
68
  raise Exception(f"Failed to fetch owner_project value set from grwothepie projects api: {response.status_code} - {response.text}")
69
69
 
70
70
  # value set for usage_category
71
- url = "https://raw.githubusercontent.com/openlabelsinitiative/OLI/refs/heads/main/1_data_model/tags/valuesets/usage_category.yml"
71
+ url = "https://raw.githubusercontent.com/openlabelsinitiative/OLI/refs/heads/main/1_label_schema/tags/valuesets/usage_category.yml"
72
72
  response = requests.get(url)
73
73
  if response.status_code == 200:
74
74
  y = yaml.safe_load(response.text)
@@ -89,7 +89,7 @@ class DataFetcher:
89
89
  Returns:
90
90
  str: Path to the downloaded Parquet file
91
91
  """
92
- url = "https://api.growthepie.xyz/v1/oli/labels_raw.parquet"
92
+ url = "https://api.growthepie.com/v1/oli/labels_raw.parquet"
93
93
 
94
94
  response = requests.get(url, stream=True)
95
95
  if response.status_code == 200:
@@ -111,7 +111,7 @@ class DataFetcher:
111
111
  Returns:
112
112
  str: Path to the downloaded Parquet file
113
113
  """
114
- url = "https://api.growthepie.xyz/v1/oli/labels_decoded.parquet"
114
+ url = "https://api.growthepie.com/v1/oli/labels_decoded.parquet"
115
115
 
116
116
  response = requests.get(url, stream=True)
117
117
  if response.status_code == 200:
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oli-python
3
- Version: 1.2.0
4
- Summary: Python SDK for interacting with the Open Labels Initiative; A framework for address labels in the blockchain space. Read & write labels into the OLI Label Pool, check your labels for OLI compliance.
3
+ Version: 1.2.1
4
+ Summary: Python SDK for interacting with the Open Labels Initiative; A standard, registry and trust layer for EVM address labels.
5
5
  Home-page: https://github.com/openlabelsinitiative/oli-python
6
6
  Author: Lorenz Lehmann
7
7
  Author-email: lorenz@growthepie.xyz
@@ -5,10 +5,10 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="oli-python",
8
- version="1.2.0",
8
+ version="1.2.1",
9
9
  author="Lorenz Lehmann",
10
10
  author_email="lorenz@growthepie.xyz",
11
- description="Python SDK for interacting with the Open Labels Initiative; A framework for address labels in the blockchain space. Read & write labels into the OLI Label Pool, check your labels for OLI compliance.",
11
+ description="Python SDK for interacting with the Open Labels Initiative; A standard, registry and trust layer for EVM address labels.",
12
12
  long_description=long_description,
13
13
  long_description_content_type="text/markdown",
14
14
  url="https://github.com/openlabelsinitiative/oli-python",
File without changes
File without changes
File without changes
File without changes