astreum 0.2.0__tar.gz → 0.2.1__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 (62) hide show
  1. {astreum-0.2.0/src/astreum.egg-info → astreum-0.2.1}/PKG-INFO +11 -32
  2. {astreum-0.2.0 → astreum-0.2.1}/README.md +10 -31
  3. {astreum-0.2.0 → astreum-0.2.1}/pyproject.toml +1 -1
  4. {astreum-0.2.0 → astreum-0.2.1/src/astreum.egg-info}/PKG-INFO +11 -32
  5. {astreum-0.2.0 → astreum-0.2.1}/LICENSE +0 -0
  6. {astreum-0.2.0 → astreum-0.2.1}/setup.cfg +0 -0
  7. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/__init__.py +0 -0
  8. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/__init__.py +0 -0
  9. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/relay/__init__.py +0 -0
  10. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/relay/bucket.py +0 -0
  11. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/relay/envelope.py +0 -0
  12. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/relay/message.py +0 -0
  13. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/relay/peer.py +0 -0
  14. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/relay/route.py +0 -0
  15. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/storage/__init__.py +0 -0
  16. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/storage/merkle.py +0 -0
  17. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/storage/patricia.py +0 -0
  18. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/storage/storage.py +0 -0
  19. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/storage/utils.py +0 -0
  20. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/utils.py +0 -0
  21. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/validation/__init__.py +0 -0
  22. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/validation/_block/__init__.py +0 -0
  23. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/validation/_block/create.py +0 -0
  24. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/validation/_block/model.py +0 -0
  25. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/validation/_block/validate.py +0 -0
  26. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/validation/account.py +0 -0
  27. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/validation/block.py +0 -0
  28. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/validation/constants.py +0 -0
  29. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/validation/stake.py +0 -0
  30. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/validation/transaction.py +0 -0
  31. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/_node/validation/vdf.py +0 -0
  32. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/crypto/__init__.py +0 -0
  33. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/crypto/ed25519.py +0 -0
  34. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/crypto/x25519.py +0 -0
  35. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/format.py +0 -0
  36. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/__init__.py +0 -0
  37. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/expression.py +0 -0
  38. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/parser.py +0 -0
  39. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/special/__init__.py +0 -0
  40. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/special/definition.py +0 -0
  41. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/special/list/__init__.py +0 -0
  42. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/special/list/all.py +0 -0
  43. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/special/list/any.py +0 -0
  44. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/special/list/fold.py +0 -0
  45. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/special/list/get.py +0 -0
  46. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/special/list/insert.py +0 -0
  47. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/special/list/map.py +0 -0
  48. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/special/list/position.py +0 -0
  49. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/special/list/remove.py +0 -0
  50. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/special/number/__init__.py +0 -0
  51. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/special/number/addition.py +0 -0
  52. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/storage.py +0 -0
  53. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/tokenizer.py +0 -0
  54. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/lispeum/utils.py +0 -0
  55. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/machine/__init__.py +0 -0
  56. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/machine/environment.py +0 -0
  57. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/machine/error.py +0 -0
  58. {astreum-0.2.0 → astreum-0.2.1}/src/astreum/node.py +0 -0
  59. {astreum-0.2.0 → astreum-0.2.1}/src/astreum.egg-info/SOURCES.txt +0 -0
  60. {astreum-0.2.0 → astreum-0.2.1}/src/astreum.egg-info/dependency_links.txt +0 -0
  61. {astreum-0.2.0 → astreum-0.2.1}/src/astreum.egg-info/requires.txt +0 -0
  62. {astreum-0.2.0 → astreum-0.2.1}/src/astreum.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: astreum
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Python library to interact with the Astreum blockchain and its Lispeum virtual machine.
5
5
  Author-email: "Roy R. O. Okello" <roy@stelar.xyz>
6
6
  Project-URL: Homepage, https://github.com/astreum/lib
@@ -16,7 +16,7 @@ Requires-Dist: cryptography==44.0.2
16
16
  Requires-Dist: blake3==1.0.4
17
17
  Dynamic: license-file
18
18
 
19
- # Astreum Python Library
19
+ # lib
20
20
 
21
21
  Python library to interact with the Astreum blockchain and its Lispeum virtual machine.
22
22
 
@@ -28,19 +28,13 @@ When initializing an `astreum.Node`, pass a dictionary with any of the options b
28
28
 
29
29
  ### Core Configuration
30
30
 
31
- | Parameter | Type | Default | Description |
32
- | -------------- | ---- | ------- | ----------- |
33
- | `machine-only` | bool | `True` | When |
34
-
35
- | |
36
- | - |
37
-
38
- | **True** the node starts in *machine‑only* mode: no storage subsystem and no relay networking – only the Lispeum VM. Set to **False** to enable storage and relay features. | | | |
39
- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | -------------- | ------------------------------------------------------------------------------------------------------------------------ |
40
- | `relay_secret_key` | hex string | Auto‑generated | Ed25519 private key that identifies the node on the network. If omitted a fresh keypair is generated and kept in‑memory. |
41
- | `validation_secret_key` | hex string | `None` | X25519 private key that lets the node participate in the validation route. Leave unset for a non‑validator node. |
42
- | `storage_path` | string | `None` | Directory where objects are persisted. If *None* the node uses an in‑memory store. |
43
- | `storage_get_relay_timeout` | float | `5` | Seconds to wait for an object requested from peers before timing‑out. |
31
+ | Parameter | Type | Default | Description |
32
+ | --------------------------- | ---------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
33
+ | `machine-only` | bool | `True` | When **True** the node starts in *machine‑only* mode: no storage subsystem and no relay networking – only the Lispeum VM. Set to **False** to enable storage and relay features. |
34
+ | `relay_secret_key` | hex string | Auto‑generated | Ed25519 private key that identifies the node on the network. If omitted, a fresh keypair is generated and kept in‑memory. |
35
+ | `validation_secret_key` | hex string | `None` | X25519 private key that lets the node participate in the validation route. Leave unset for a non‑validator node. |
36
+ | `storage_path` | string | `None` | Directory where objects are persisted. If *None*, the node uses an in‑memory store. |
37
+ | `storage_get_relay_timeout` | float | `5` | Seconds to wait for an object requested from peers before timing‑out. |
44
38
 
45
39
  ### Networking
46
40
 
@@ -107,23 +101,8 @@ print(result.value) # 7
107
101
 
108
102
  Both helpers raise `ParseError` (from `astreum.machine.error`) when something goes wrong:
109
103
 
110
- * Unterminated string literals are caught by `tokenize` fileciteturn1file1
111
- * Unexpected or missing parentheses are caught by `parse` fileciteturn1file0
112
-
113
- Catch the exception to provide developer‑friendly diagnostics:
114
-
115
- ```python
116
- try:
117
- tokens = tokenize(bad_source)
118
- expr, _ = parse(tokens)
119
- except ParseError as e:
120
- print("Parse failed:", e)
121
- ```
122
-
123
- Both helpers raise `ParseError` (from `astreum.machine.error`) when something goes wrong:
124
-
125
- * Unterminated string literals are caught by `tokenize` fileciteturn1file1
126
- * Unexpected or missing parentheses are caught by `parse` fileciteturn1file0
104
+ * Unterminated string literals are caught by `tokenize`.
105
+ * Unexpected or missing parentheses are caught by `parse`.
127
106
 
128
107
  Catch the exception to provide developer‑friendly diagnostics:
129
108
 
@@ -1,4 +1,4 @@
1
- # Astreum Python Library
1
+ # lib
2
2
 
3
3
  Python library to interact with the Astreum blockchain and its Lispeum virtual machine.
4
4
 
@@ -10,19 +10,13 @@ When initializing an `astreum.Node`, pass a dictionary with any of the options b
10
10
 
11
11
  ### Core Configuration
12
12
 
13
- | Parameter | Type | Default | Description |
14
- | -------------- | ---- | ------- | ----------- |
15
- | `machine-only` | bool | `True` | When |
16
-
17
- | |
18
- | - |
19
-
20
- | **True** the node starts in *machine‑only* mode: no storage subsystem and no relay networking – only the Lispeum VM. Set to **False** to enable storage and relay features. | | | |
21
- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | -------------- | ------------------------------------------------------------------------------------------------------------------------ |
22
- | `relay_secret_key` | hex string | Auto‑generated | Ed25519 private key that identifies the node on the network. If omitted a fresh keypair is generated and kept in‑memory. |
23
- | `validation_secret_key` | hex string | `None` | X25519 private key that lets the node participate in the validation route. Leave unset for a non‑validator node. |
24
- | `storage_path` | string | `None` | Directory where objects are persisted. If *None* the node uses an in‑memory store. |
25
- | `storage_get_relay_timeout` | float | `5` | Seconds to wait for an object requested from peers before timing‑out. |
13
+ | Parameter | Type | Default | Description |
14
+ | --------------------------- | ---------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
15
+ | `machine-only` | bool | `True` | When **True** the node starts in *machine‑only* mode: no storage subsystem and no relay networking – only the Lispeum VM. Set to **False** to enable storage and relay features. |
16
+ | `relay_secret_key` | hex string | Auto‑generated | Ed25519 private key that identifies the node on the network. If omitted, a fresh keypair is generated and kept in‑memory. |
17
+ | `validation_secret_key` | hex string | `None` | X25519 private key that lets the node participate in the validation route. Leave unset for a non‑validator node. |
18
+ | `storage_path` | string | `None` | Directory where objects are persisted. If *None*, the node uses an in‑memory store. |
19
+ | `storage_get_relay_timeout` | float | `5` | Seconds to wait for an object requested from peers before timing‑out. |
26
20
 
27
21
  ### Networking
28
22
 
@@ -89,23 +83,8 @@ print(result.value) # 7
89
83
 
90
84
  Both helpers raise `ParseError` (from `astreum.machine.error`) when something goes wrong:
91
85
 
92
- * Unterminated string literals are caught by `tokenize` fileciteturn1file1
93
- * Unexpected or missing parentheses are caught by `parse` fileciteturn1file0
94
-
95
- Catch the exception to provide developer‑friendly diagnostics:
96
-
97
- ```python
98
- try:
99
- tokens = tokenize(bad_source)
100
- expr, _ = parse(tokens)
101
- except ParseError as e:
102
- print("Parse failed:", e)
103
- ```
104
-
105
- Both helpers raise `ParseError` (from `astreum.machine.error`) when something goes wrong:
106
-
107
- * Unterminated string literals are caught by `tokenize` fileciteturn1file1
108
- * Unexpected or missing parentheses are caught by `parse` fileciteturn1file0
86
+ * Unterminated string literals are caught by `tokenize`.
87
+ * Unexpected or missing parentheses are caught by `parse`.
109
88
 
110
89
  Catch the exception to provide developer‑friendly diagnostics:
111
90
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "astreum"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  authors = [
5
5
  { name="Roy R. O. Okello", email="roy@stelar.xyz" },
6
6
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: astreum
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Python library to interact with the Astreum blockchain and its Lispeum virtual machine.
5
5
  Author-email: "Roy R. O. Okello" <roy@stelar.xyz>
6
6
  Project-URL: Homepage, https://github.com/astreum/lib
@@ -16,7 +16,7 @@ Requires-Dist: cryptography==44.0.2
16
16
  Requires-Dist: blake3==1.0.4
17
17
  Dynamic: license-file
18
18
 
19
- # Astreum Python Library
19
+ # lib
20
20
 
21
21
  Python library to interact with the Astreum blockchain and its Lispeum virtual machine.
22
22
 
@@ -28,19 +28,13 @@ When initializing an `astreum.Node`, pass a dictionary with any of the options b
28
28
 
29
29
  ### Core Configuration
30
30
 
31
- | Parameter | Type | Default | Description |
32
- | -------------- | ---- | ------- | ----------- |
33
- | `machine-only` | bool | `True` | When |
34
-
35
- | |
36
- | - |
37
-
38
- | **True** the node starts in *machine‑only* mode: no storage subsystem and no relay networking – only the Lispeum VM. Set to **False** to enable storage and relay features. | | | |
39
- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | -------------- | ------------------------------------------------------------------------------------------------------------------------ |
40
- | `relay_secret_key` | hex string | Auto‑generated | Ed25519 private key that identifies the node on the network. If omitted a fresh keypair is generated and kept in‑memory. |
41
- | `validation_secret_key` | hex string | `None` | X25519 private key that lets the node participate in the validation route. Leave unset for a non‑validator node. |
42
- | `storage_path` | string | `None` | Directory where objects are persisted. If *None* the node uses an in‑memory store. |
43
- | `storage_get_relay_timeout` | float | `5` | Seconds to wait for an object requested from peers before timing‑out. |
31
+ | Parameter | Type | Default | Description |
32
+ | --------------------------- | ---------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
33
+ | `machine-only` | bool | `True` | When **True** the node starts in *machine‑only* mode: no storage subsystem and no relay networking – only the Lispeum VM. Set to **False** to enable storage and relay features. |
34
+ | `relay_secret_key` | hex string | Auto‑generated | Ed25519 private key that identifies the node on the network. If omitted, a fresh keypair is generated and kept in‑memory. |
35
+ | `validation_secret_key` | hex string | `None` | X25519 private key that lets the node participate in the validation route. Leave unset for a non‑validator node. |
36
+ | `storage_path` | string | `None` | Directory where objects are persisted. If *None*, the node uses an in‑memory store. |
37
+ | `storage_get_relay_timeout` | float | `5` | Seconds to wait for an object requested from peers before timing‑out. |
44
38
 
45
39
  ### Networking
46
40
 
@@ -107,23 +101,8 @@ print(result.value) # 7
107
101
 
108
102
  Both helpers raise `ParseError` (from `astreum.machine.error`) when something goes wrong:
109
103
 
110
- * Unterminated string literals are caught by `tokenize` fileciteturn1file1
111
- * Unexpected or missing parentheses are caught by `parse` fileciteturn1file0
112
-
113
- Catch the exception to provide developer‑friendly diagnostics:
114
-
115
- ```python
116
- try:
117
- tokens = tokenize(bad_source)
118
- expr, _ = parse(tokens)
119
- except ParseError as e:
120
- print("Parse failed:", e)
121
- ```
122
-
123
- Both helpers raise `ParseError` (from `astreum.machine.error`) when something goes wrong:
124
-
125
- * Unterminated string literals are caught by `tokenize` fileciteturn1file1
126
- * Unexpected or missing parentheses are caught by `parse` fileciteturn1file0
104
+ * Unterminated string literals are caught by `tokenize`.
105
+ * Unexpected or missing parentheses are caught by `parse`.
127
106
 
128
107
  Catch the exception to provide developer‑friendly diagnostics:
129
108
 
File without changes
File without changes
File without changes
File without changes
File without changes