oli-python 2.0.1__tar.gz → 2.0.3__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.1
3
+ Version: 2.0.3
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
@@ -15,6 +15,7 @@ Requires-Python: >=3.9
15
15
  Description-Content-Type: text/markdown
16
16
  Requires-Dist: web3>=6.0.0
17
17
  Requires-Dist: PyYAML>=6.0.0
18
+ Requires-Dist: networkx>=3.4.2
18
19
  Dynamic: author
19
20
  Dynamic: author-email
20
21
  Dynamic: classifier
@@ -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.1
3
+ Version: 2.0.3
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
@@ -15,6 +15,7 @@ Requires-Python: >=3.9
15
15
  Description-Content-Type: text/markdown
16
16
  Requires-Dist: web3>=6.0.0
17
17
  Requires-Dist: PyYAML>=6.0.0
18
+ Requires-Dist: networkx>=3.4.2
18
19
  Dynamic: author
19
20
  Dynamic: author-email
20
21
  Dynamic: classifier
@@ -1,2 +1,3 @@
1
1
  web3>=6.0.0
2
2
  PyYAML>=6.0.0
3
+ networkx>=3.4.2
@@ -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.1",
8
+ version="2.0.3",
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.",
@@ -24,6 +24,7 @@ setup(
24
24
  python_requires='>=3.9',
25
25
  install_requires=[
26
26
  'web3>=6.0.0',
27
- 'PyYAML>=6.0.0'
27
+ 'PyYAML>=6.0.0',
28
+ 'networkx>=3.4.2'
28
29
  ]
29
30
  )
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes