oli-python 2.0.0__tar.gz → 2.0.2__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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oli-python
3
- Version: 2.0.0
3
+ Version: 2.0.2
4
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
@@ -54,7 +54,7 @@ oli = OLI(
54
54
  * Create a `.env` file to store your private variables
55
55
  * Load an EOA wallet by setting the `private_key` variable
56
56
  * The EOA wallet is used to track your reputation within OLI
57
- * To access all advanced API endpoints, pass an `api_key` variable. You can get your free API key from **[here](http://openlabelsinitiative.org/developer)**
57
+ * To access all advanced API endpoints, pass an `api_key` variable. You can get your free API key from **[here](https://www.openlabelsinitiative.org/developer)**
58
58
 
59
59
  **Additional Options:**
60
60
 
@@ -132,9 +132,9 @@ print(response)
132
132
  ### Bulk Get Labels for Addresses
133
133
 
134
134
  ```python
135
- response = ["0x9438b8B447179740cD97869997a2FCc9b4AA63a2", "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24"]
136
- bulk = oli.get_labels_bulk(response)
137
- print(bulk)
135
+ addresses = ["0x9438b8B447179740cD97869997a2FCc9b4AA63a2", "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24"]
136
+ response = oli.get_labels_bulk(addresses)
137
+ print(response)
138
138
  ```
139
139
 
140
140
  **Available filters:** addresses, chain_id, limit_per_address, include_all
@@ -27,7 +27,7 @@ oli = OLI(
27
27
  * Create a `.env` file to store your private variables
28
28
  * Load an EOA wallet by setting the `private_key` variable
29
29
  * The EOA wallet is used to track your reputation within OLI
30
- * To access all advanced API endpoints, pass an `api_key` variable. You can get your free API key from **[here](http://openlabelsinitiative.org/developer)**
30
+ * To access all advanced API endpoints, pass an `api_key` variable. You can get your free API key from **[here](https://www.openlabelsinitiative.org/developer)**
31
31
 
32
32
  **Additional Options:**
33
33
 
@@ -105,9 +105,9 @@ print(response)
105
105
  ### Bulk Get Labels for Addresses
106
106
 
107
107
  ```python
108
- response = ["0x9438b8B447179740cD97869997a2FCc9b4AA63a2", "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24"]
109
- bulk = oli.get_labels_bulk(response)
110
- print(bulk)
108
+ addresses = ["0x9438b8B447179740cD97869997a2FCc9b4AA63a2", "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24"]
109
+ response = oli.get_labels_bulk(addresses)
110
+ print(response)
111
111
  ```
112
112
 
113
113
  **Available filters:** addresses, chain_id, limit_per_address, include_all
@@ -223,4 +223,4 @@ oli.get_full_decoded_export_parquet()
223
223
 
224
224
  ## License
225
225
 
226
- MIT © Open Labels Initiative
226
+ MIT © Open Labels Initiative
@@ -1,7 +1,5 @@
1
1
  from web3 import Web3
2
2
  import eth_account
3
- import pandas as pd
4
- import os
5
3
  from eth_keys import keys
6
4
  from requests import Response
7
5
 
@@ -13,12 +13,16 @@ class UtilsTrust:
13
13
  # init trust variables
14
14
  try:
15
15
  self.raw_trust_lists = self.get_trust_lists_from_api()
16
+ except:
17
+ self.raw_trust_lists = {}
18
+ try:
16
19
  self.TrustGraph = self.build_trust_graph(self.raw_trust_lists)
20
+ except:
21
+ self.TrustGraph = nx.MultiDiGraph()
22
+ try:
17
23
  self.trust_table = self.compute_trust_table(self.TrustGraph, source_node=self.oli.source_address)
18
24
  except:
19
- self.raw_trust_lists = {}
20
25
  self.trust_table = {}
21
- self.TrustGraph = nx.MultiDiGraph()
22
26
 
23
27
  # computes the trust table for a given source node
24
28
  def compute_trust_table(self, TrustGraph: nx.MultiDiGraph, source_node: str=None) -> dict:
@@ -1,6 +1,3 @@
1
- import json
2
- import pandas as pd
3
- import networkx as nx
4
1
 
5
2
  class UtilsData:
6
3
  def __init__(self, oli_client):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oli-python
3
- Version: 2.0.0
3
+ Version: 2.0.2
4
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
@@ -54,7 +54,7 @@ oli = OLI(
54
54
  * Create a `.env` file to store your private variables
55
55
  * Load an EOA wallet by setting the `private_key` variable
56
56
  * The EOA wallet is used to track your reputation within OLI
57
- * To access all advanced API endpoints, pass an `api_key` variable. You can get your free API key from **[here](http://openlabelsinitiative.org/developer)**
57
+ * To access all advanced API endpoints, pass an `api_key` variable. You can get your free API key from **[here](https://www.openlabelsinitiative.org/developer)**
58
58
 
59
59
  **Additional Options:**
60
60
 
@@ -132,9 +132,9 @@ print(response)
132
132
  ### Bulk Get Labels for Addresses
133
133
 
134
134
  ```python
135
- response = ["0x9438b8B447179740cD97869997a2FCc9b4AA63a2", "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24"]
136
- bulk = oli.get_labels_bulk(response)
137
- print(bulk)
135
+ addresses = ["0x9438b8B447179740cD97869997a2FCc9b4AA63a2", "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24"]
136
+ response = oli.get_labels_bulk(addresses)
137
+ print(response)
138
138
  ```
139
139
 
140
140
  **Available filters:** addresses, chain_id, limit_per_address, include_all
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="oli-python",
8
- version="2.0.0",
8
+ version="2.0.2",
9
9
  author="Lorenz Lehmann",
10
10
  author_email="lorenz@growthepie.com",
11
11
  description="Python SDK for interacting with the Open Labels Initiative; A standard, registry and trust layer for EVM address labels.",
File without changes
File without changes
File without changes