astreum 0.1.7__tar.gz → 0.1.8__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.

Potentially problematic release.


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

Files changed (44) hide show
  1. astreum-0.1.8/PKG-INFO +84 -0
  2. astreum-0.1.8/README.md +70 -0
  3. {astreum-0.1.7 → astreum-0.1.8}/pyproject.toml +1 -1
  4. astreum-0.1.8/src/astreum.egg-info/PKG-INFO +84 -0
  5. astreum-0.1.7/PKG-INFO +0 -24
  6. astreum-0.1.7/README.md +0 -10
  7. astreum-0.1.7/src/astreum.egg-info/PKG-INFO +0 -24
  8. {astreum-0.1.7 → astreum-0.1.8}/LICENSE +0 -0
  9. {astreum-0.1.7 → astreum-0.1.8}/setup.cfg +0 -0
  10. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/__init__.py +0 -0
  11. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/__init__.py +0 -0
  12. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/expression.py +0 -0
  13. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/parser.py +0 -0
  14. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/special/__init__.py +0 -0
  15. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/special/definition.py +0 -0
  16. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/special/list/__init__.py +0 -0
  17. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/special/list/all.py +0 -0
  18. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/special/list/any.py +0 -0
  19. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/special/list/fold.py +0 -0
  20. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/special/list/get.py +0 -0
  21. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/special/list/insert.py +0 -0
  22. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/special/list/map.py +0 -0
  23. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/special/list/position.py +0 -0
  24. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/special/list/remove.py +0 -0
  25. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/special/number/__init__.py +0 -0
  26. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/special/number/addition.py +0 -0
  27. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/storage.py +0 -0
  28. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/lispeum/tokenizer.py +0 -0
  29. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/machine/__init__.py +0 -0
  30. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/machine/environment.py +0 -0
  31. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/machine/error.py +0 -0
  32. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/node/__init__.py +0 -0
  33. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/node/models.py +0 -0
  34. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/node/relay/__init__.py +0 -0
  35. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/node/relay/bucket.py +0 -0
  36. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/node/relay/envelope.py +0 -0
  37. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/node/relay/message.py +0 -0
  38. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/node/relay/peer.py +0 -0
  39. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/node/relay/route.py +0 -0
  40. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/utils/__init__.py +0 -0
  41. {astreum-0.1.7 → astreum-0.1.8}/src/astreum/utils/bytes_format.py +0 -0
  42. {astreum-0.1.7 → astreum-0.1.8}/src/astreum.egg-info/SOURCES.txt +0 -0
  43. {astreum-0.1.7 → astreum-0.1.8}/src/astreum.egg-info/dependency_links.txt +0 -0
  44. {astreum-0.1.7 → astreum-0.1.8}/src/astreum.egg-info/top_level.txt +0 -0
astreum-0.1.8/PKG-INFO ADDED
@@ -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
@@ -0,0 +1,70 @@
1
+ # lib
2
+
3
+ Python library to interact with the Astreum blockchain and its Lispeum virtual machine.
4
+
5
+ [View on PyPI](https://pypi.org/project/astreum/)
6
+
7
+ ## Configuration
8
+
9
+ When initializing an Astreum Node, you need to provide a configuration dictionary. Below are the available configuration parameters:
10
+
11
+ ### Node Configuration
12
+
13
+ | Parameter | Type | Default | Description |
14
+ |-----------|------|---------|-------------|
15
+ | `node_id` | bytes | Random 32 bytes | Unique identifier for the node |
16
+ | `followed_chain_id` | bytes | None | ID of the blockchain that this node follows |
17
+ | `storage_path` | str | "./storage" | Directory path where node data will be stored |
18
+
19
+ ### Network Configuration
20
+
21
+ | Parameter | Type | Default | Description |
22
+ |-----------|------|---------|-------------|
23
+ | `use_ipv6` | bool | False | Whether to use IPv6 (True) or IPv4 (False) |
24
+ | `incoming_port` | int | 7373 | Port to listen for incoming messages |
25
+ | `max_message_size` | int | 65536 | Maximum size of UDP datagrams in bytes |
26
+ | `num_workers` | int | 4 | Number of worker threads for message processing |
27
+
28
+ ### Route Configuration
29
+
30
+ | Parameter | Type | Default | Description |
31
+ |-----------|------|---------|-------------|
32
+ | `peer_route` | bool | False | Whether to participate in the peer discovery route |
33
+ | `validation_route` | bool | False | Whether to participate in the block validation route |
34
+ | `bootstrap_peers` | list | [] | List of bootstrap peers in the format `[("hostname", port), ...]` |
35
+
36
+ ### Example Usage
37
+
38
+ ```python
39
+ from astreum.node import Node
40
+
41
+ # Configuration dictionary
42
+ config = {
43
+ "node_id": b"my-unique-node-id-goes-here-exactly-32", # 32 bytes
44
+ "followed_chain_id": b"main-chain-id-goes-here",
45
+ "storage_path": "./data/node1",
46
+ "incoming_port": 7373,
47
+ "use_ipv6": False,
48
+ "peer_route": True,
49
+ "validation_route": True,
50
+ "bootstrap_peers": [
51
+ ("bootstrap.astreum.org", 7373),
52
+ ("127.0.0.1", 7374)
53
+ ]
54
+ }
55
+
56
+ # Initialize the node with config
57
+ node = Node(config)
58
+
59
+ # Start the node
60
+ node.start()
61
+
62
+ # ... use the node ...
63
+
64
+ # Stop the node when done
65
+ node.stop()
66
+ ```
67
+
68
+ ## Testing
69
+
70
+ python3 -m unittest discover -s tests
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "astreum"
3
- version = "0.1.7"
3
+ version = "0.1.8"
4
4
  authors = [
5
5
  { name="Roy R. O. Okello", email="roy@stelar.xyz" },
6
6
  ]
@@ -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
astreum-0.1.7/PKG-INFO DELETED
@@ -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
-
astreum-0.1.7/README.md DELETED
@@ -1,10 +0,0 @@
1
- # lib
2
-
3
- Python library to interact with the Astreum blockchain and its Lispeum virtual machine.
4
-
5
- [View on PyPI](https://pypi.org/project/astreum/)
6
-
7
- ## Testing
8
-
9
- python3 -m unittest discover -s tests
10
-
@@ -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
-
File without changes
File without changes
File without changes