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.
- {oli_python-2.0.0 → oli_python-2.0.2}/PKG-INFO +5 -5
- {oli_python-2.0.0 → oli_python-2.0.2}/README.md +5 -5
- {oli_python-2.0.0 → oli_python-2.0.2}/oli/core.py +0 -2
- {oli_python-2.0.0 → oli_python-2.0.2}/oli/data/trust.py +6 -2
- {oli_python-2.0.0 → oli_python-2.0.2}/oli/data/utils.py +0 -3
- {oli_python-2.0.0 → oli_python-2.0.2}/oli_python.egg-info/PKG-INFO +5 -5
- {oli_python-2.0.0 → oli_python-2.0.2}/setup.py +1 -1
- {oli_python-2.0.0 → oli_python-2.0.2}/oli/__init__.py +0 -0
- {oli_python-2.0.0 → oli_python-2.0.2}/oli/attestation/__init__.py +0 -0
- {oli_python-2.0.0 → oli_python-2.0.2}/oli/attestation/offchain.py +0 -0
- {oli_python-2.0.0 → oli_python-2.0.2}/oli/attestation/onchain.py +0 -0
- {oli_python-2.0.0 → oli_python-2.0.2}/oli/attestation/utils_other.py +0 -0
- {oli_python-2.0.0 → oli_python-2.0.2}/oli/attestation/utils_validator.py +0 -0
- {oli_python-2.0.0 → oli_python-2.0.2}/oli/data/__init__.py +0 -0
- {oli_python-2.0.0 → oli_python-2.0.2}/oli/data/api.py +0 -0
- {oli_python-2.0.0 → oli_python-2.0.2}/oli_python.egg-info/SOURCES.txt +0 -0
- {oli_python-2.0.0 → oli_python-2.0.2}/oli_python.egg-info/dependency_links.txt +0 -0
- {oli_python-2.0.0 → oli_python-2.0.2}/oli_python.egg-info/requires.txt +0 -0
- {oli_python-2.0.0 → oli_python-2.0.2}/oli_python.egg-info/top_level.txt +0 -0
- {oli_python-2.0.0 → oli_python-2.0.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: oli-python
|
|
3
|
-
Version: 2.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](
|
|
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
|
-
|
|
136
|
-
|
|
137
|
-
print(
|
|
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](
|
|
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
|
-
|
|
109
|
-
|
|
110
|
-
print(
|
|
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
|
|
@@ -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,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: oli-python
|
|
3
|
-
Version: 2.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](
|
|
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
|
-
|
|
136
|
-
|
|
137
|
-
print(
|
|
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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|