astreum 0.2.0__py3-none-any.whl → 0.2.1__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.
- {astreum-0.2.0.dist-info → astreum-0.2.1.dist-info}/METADATA +11 -32
- {astreum-0.2.0.dist-info → astreum-0.2.1.dist-info}/RECORD +5 -5
- {astreum-0.2.0.dist-info → astreum-0.2.1.dist-info}/WHEEL +0 -0
- {astreum-0.2.0.dist-info → astreum-0.2.1.dist-info}/licenses/LICENSE +0 -0
- {astreum-0.2.0.dist-info → astreum-0.2.1.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: astreum
|
|
3
|
-
Version: 0.2.
|
|
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
|
-
#
|
|
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
|
|
32
|
-
|
|
|
33
|
-
| `machine-only`
|
|
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
|
|
111
|
-
* Unexpected or missing parentheses are caught by `parse
|
|
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` fileciteturn1file1
|
|
126
|
-
* Unexpected or missing parentheses are caught by `parse` fileciteturn1file0
|
|
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
|
|
|
@@ -50,8 +50,8 @@ astreum/lispeum/special/number/addition.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
50
50
|
astreum/machine/__init__.py,sha256=GOdZl1tS9uIJHbq5WVcplifMDPDLQroX7CVew-K2YbA,15262
|
|
51
51
|
astreum/machine/environment.py,sha256=QsRaDtAIwlkH8Cn-F7Zzuvx2eXcwLys2M5vdsP1omrI,84
|
|
52
52
|
astreum/machine/error.py,sha256=MvqBaZZt33rNELNhUJ2lER3TE3aS8WVqsWF2hz2AwoA,38
|
|
53
|
-
astreum-0.2.
|
|
54
|
-
astreum-0.2.
|
|
55
|
-
astreum-0.2.
|
|
56
|
-
astreum-0.2.
|
|
57
|
-
astreum-0.2.
|
|
53
|
+
astreum-0.2.1.dist-info/licenses/LICENSE,sha256=gYBvRDP-cPLmTyJhvZ346QkrYW_eleke4Z2Yyyu43eQ,1089
|
|
54
|
+
astreum-0.2.1.dist-info/METADATA,sha256=UrxSSc1KQedKkrJINbEU2FkV2p8toyCBL_2yFWUQK8c,5551
|
|
55
|
+
astreum-0.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
56
|
+
astreum-0.2.1.dist-info/top_level.txt,sha256=1EG1GmkOk3NPmUA98FZNdKouhRyget-KiFiMk0i2Uz0,8
|
|
57
|
+
astreum-0.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|