astreum 0.1.7__py3-none-any.whl → 0.1.8__py3-none-any.whl

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.

Potentially problematic release.


This version of astreum might be problematic. Click here for more details.

@@ -0,0 +1,84 @@
1
+ Metadata-Version: 2.2
2
+ Name: astreum
3
+ Version: 0.1.8
4
+ Summary: Python library to interact with the Astreum blockchain and its Lispeum virtual machine.
5
+ Author-email: "Roy R. O. Okello" <roy@stelar.xyz>
6
+ Project-URL: Homepage, https://github.com/astreum/lib
7
+ Project-URL: Issues, https://github.com/astreum/lib/issues
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.8
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+
15
+ # lib
16
+
17
+ Python library to interact with the Astreum blockchain and its Lispeum virtual machine.
18
+
19
+ [View on PyPI](https://pypi.org/project/astreum/)
20
+
21
+ ## Configuration
22
+
23
+ When initializing an Astreum Node, you need to provide a configuration dictionary. Below are the available configuration parameters:
24
+
25
+ ### Node Configuration
26
+
27
+ | Parameter | Type | Default | Description |
28
+ |-----------|------|---------|-------------|
29
+ | `node_id` | bytes | Random 32 bytes | Unique identifier for the node |
30
+ | `followed_chain_id` | bytes | None | ID of the blockchain that this node follows |
31
+ | `storage_path` | str | "./storage" | Directory path where node data will be stored |
32
+
33
+ ### Network Configuration
34
+
35
+ | Parameter | Type | Default | Description |
36
+ |-----------|------|---------|-------------|
37
+ | `use_ipv6` | bool | False | Whether to use IPv6 (True) or IPv4 (False) |
38
+ | `incoming_port` | int | 7373 | Port to listen for incoming messages |
39
+ | `max_message_size` | int | 65536 | Maximum size of UDP datagrams in bytes |
40
+ | `num_workers` | int | 4 | Number of worker threads for message processing |
41
+
42
+ ### Route Configuration
43
+
44
+ | Parameter | Type | Default | Description |
45
+ |-----------|------|---------|-------------|
46
+ | `peer_route` | bool | False | Whether to participate in the peer discovery route |
47
+ | `validation_route` | bool | False | Whether to participate in the block validation route |
48
+ | `bootstrap_peers` | list | [] | List of bootstrap peers in the format `[("hostname", port), ...]` |
49
+
50
+ ### Example Usage
51
+
52
+ ```python
53
+ from astreum.node import Node
54
+
55
+ # Configuration dictionary
56
+ config = {
57
+ "node_id": b"my-unique-node-id-goes-here-exactly-32", # 32 bytes
58
+ "followed_chain_id": b"main-chain-id-goes-here",
59
+ "storage_path": "./data/node1",
60
+ "incoming_port": 7373,
61
+ "use_ipv6": False,
62
+ "peer_route": True,
63
+ "validation_route": True,
64
+ "bootstrap_peers": [
65
+ ("bootstrap.astreum.org", 7373),
66
+ ("127.0.0.1", 7374)
67
+ ]
68
+ }
69
+
70
+ # Initialize the node with config
71
+ node = Node(config)
72
+
73
+ # Start the node
74
+ node.start()
75
+
76
+ # ... use the node ...
77
+
78
+ # Stop the node when done
79
+ node.stop()
80
+ ```
81
+
82
+ ## Testing
83
+
84
+ python3 -m unittest discover -s tests
@@ -30,8 +30,8 @@ astreum/node/relay/peer.py,sha256=eOml9G4xMoQeR_BuONVgJvpvCwhQo-QXCpRhShAxz4Q,57
30
30
  astreum/node/relay/route.py,sha256=ZyWoTC2EXX-SU_80fFS0TP-lITH6e9mDeS-irsfcMp4,4303
31
31
  astreum/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
32
  astreum/utils/bytes_format.py,sha256=X4tG5GGPweNCE54bHYkLFiuLTbmpy5upO_s1Cef-MGA,2711
33
- astreum-0.1.7.dist-info/LICENSE,sha256=gYBvRDP-cPLmTyJhvZ346QkrYW_eleke4Z2Yyyu43eQ,1089
34
- astreum-0.1.7.dist-info/METADATA,sha256=nsh5rxiEoKuPh8ijGyydcsmYKtHp_4cnkc0b90KH-ZI,741
35
- astreum-0.1.7.dist-info/WHEEL,sha256=EaM1zKIUYa7rQnxGiOCGhzJABRwy4WO57rWMR3_tj4I,91
36
- astreum-0.1.7.dist-info/top_level.txt,sha256=1EG1GmkOk3NPmUA98FZNdKouhRyget-KiFiMk0i2Uz0,8
37
- astreum-0.1.7.dist-info/RECORD,,
33
+ astreum-0.1.8.dist-info/LICENSE,sha256=gYBvRDP-cPLmTyJhvZ346QkrYW_eleke4Z2Yyyu43eQ,1089
34
+ astreum-0.1.8.dist-info/METADATA,sha256=Uu8SnsLZ2vdk5fhicfnsqB3jCQN08u4hMB3_KZYMxOQ,2686
35
+ astreum-0.1.8.dist-info/WHEEL,sha256=EaM1zKIUYa7rQnxGiOCGhzJABRwy4WO57rWMR3_tj4I,91
36
+ astreum-0.1.8.dist-info/top_level.txt,sha256=1EG1GmkOk3NPmUA98FZNdKouhRyget-KiFiMk0i2Uz0,8
37
+ astreum-0.1.8.dist-info/RECORD,,
@@ -1,24 +0,0 @@
1
- Metadata-Version: 2.2
2
- Name: astreum
3
- Version: 0.1.7
4
- Summary: Python library to interact with the Astreum blockchain and its Lispeum virtual machine.
5
- Author-email: "Roy R. O. Okello" <roy@stelar.xyz>
6
- Project-URL: Homepage, https://github.com/astreum/lib
7
- Project-URL: Issues, https://github.com/astreum/lib/issues
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Operating System :: OS Independent
11
- Requires-Python: >=3.8
12
- Description-Content-Type: text/markdown
13
- License-File: LICENSE
14
-
15
- # lib
16
-
17
- Python library to interact with the Astreum blockchain and its Lispeum virtual machine.
18
-
19
- [View on PyPI](https://pypi.org/project/astreum/)
20
-
21
- ## Testing
22
-
23
- python3 -m unittest discover -s tests
24
-