py-geth 5.0.0__py3-none-any.whl → 5.0.0b2__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.
- geth/__init__.py +0 -11
- geth/install.py +15 -31
- geth/types.py +0 -1
- geth/utils/validation.py +0 -1
- geth/wrapper.py +0 -3
- {py_geth-5.0.0.dist-info → py_geth-5.0.0b2.dist-info}/METADATA +7 -8
- {py_geth-5.0.0.dist-info → py_geth-5.0.0b2.dist-info}/RECORD +10 -10
- {py_geth-5.0.0.dist-info → py_geth-5.0.0b2.dist-info}/WHEEL +1 -1
- {py_geth-5.0.0.dist-info → py_geth-5.0.0b2.dist-info}/LICENSE +0 -0
- {py_geth-5.0.0.dist-info → py_geth-5.0.0b2.dist-info}/top_level.txt +0 -0
geth/__init__.py
CHANGED
@@ -20,14 +20,3 @@ from .process import (
|
|
20
20
|
)
|
21
21
|
|
22
22
|
__version__ = __version("py-geth")
|
23
|
-
|
24
|
-
__all__ = (
|
25
|
-
"install_geth",
|
26
|
-
"get_geth_version",
|
27
|
-
"InterceptedStreamsMixin",
|
28
|
-
"LoggingMixin",
|
29
|
-
"MainnetGethProcess",
|
30
|
-
"SepoliaGethProcess",
|
31
|
-
"TestnetGethProcess",
|
32
|
-
"DevGethProcess",
|
33
|
-
)
|
geth/install.py
CHANGED
@@ -17,13 +17,6 @@ from typing import (
|
|
17
17
|
Generator,
|
18
18
|
)
|
19
19
|
|
20
|
-
import requests
|
21
|
-
from requests.exceptions import (
|
22
|
-
ConnectionError,
|
23
|
-
HTTPError,
|
24
|
-
Timeout,
|
25
|
-
)
|
26
|
-
|
27
20
|
from geth.exceptions import (
|
28
21
|
PyGethException,
|
29
22
|
PyGethKeyError,
|
@@ -39,9 +32,6 @@ V1_14_2 = "v1.14.2"
|
|
39
32
|
V1_14_3 = "v1.14.3"
|
40
33
|
V1_14_4 = "v1.14.4"
|
41
34
|
V1_14_5 = "v1.14.5"
|
42
|
-
V1_14_6 = "v1.14.6"
|
43
|
-
V1_14_7 = "v1.14.7"
|
44
|
-
V1_14_8 = "v1.14.8"
|
45
35
|
|
46
36
|
|
47
37
|
LINUX = "linux"
|
@@ -219,27 +209,29 @@ DOWNLOAD_SOURCE_CODE_URI_TEMPLATE = (
|
|
219
209
|
)
|
220
210
|
|
221
211
|
|
222
|
-
def download_source_code_release(identifier: str) ->
|
212
|
+
def download_source_code_release(identifier: str) -> int:
|
223
213
|
download_uri = DOWNLOAD_SOURCE_CODE_URI_TEMPLATE.format(identifier)
|
224
214
|
source_code_archive_path = get_source_code_archive_path(identifier)
|
225
215
|
|
226
216
|
ensure_parent_dir_exists(source_code_archive_path)
|
227
|
-
try:
|
228
|
-
response = requests.get(download_uri)
|
229
|
-
response.raise_for_status()
|
230
|
-
with open(source_code_archive_path, "wb") as f:
|
231
|
-
f.write(response.content)
|
232
|
-
|
233
|
-
print(f"Downloading source code release from {download_uri}")
|
234
217
|
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
218
|
+
command = [
|
219
|
+
"wget",
|
220
|
+
download_uri,
|
221
|
+
"-c", # resume previously incomplete download.
|
222
|
+
"-O",
|
223
|
+
source_code_archive_path,
|
224
|
+
]
|
225
|
+
|
226
|
+
return check_subprocess_call(
|
227
|
+
command,
|
228
|
+
message=f"Downloading source code release from {download_uri}",
|
229
|
+
)
|
239
230
|
|
240
231
|
|
241
232
|
def extract_source_code_release(identifier: str) -> None:
|
242
233
|
source_code_archive_path = get_source_code_archive_path(identifier)
|
234
|
+
|
243
235
|
source_code_extract_path = get_source_code_extract_path(identifier)
|
244
236
|
ensure_path_exists(source_code_extract_path)
|
245
237
|
|
@@ -330,9 +322,7 @@ install_v1_14_2 = functools.partial(install_from_source_code_release, V1_14_2)
|
|
330
322
|
install_v1_14_3 = functools.partial(install_from_source_code_release, V1_14_3)
|
331
323
|
install_v1_14_4 = functools.partial(install_from_source_code_release, V1_14_4)
|
332
324
|
install_v1_14_5 = functools.partial(install_from_source_code_release, V1_14_5)
|
333
|
-
|
334
|
-
install_v1_14_7 = functools.partial(install_from_source_code_release, V1_14_7)
|
335
|
-
install_v1_14_8 = functools.partial(install_from_source_code_release, V1_14_8)
|
325
|
+
|
336
326
|
|
337
327
|
INSTALL_FUNCTIONS = {
|
338
328
|
LINUX: {
|
@@ -341,9 +331,6 @@ INSTALL_FUNCTIONS = {
|
|
341
331
|
V1_14_3: install_v1_14_3,
|
342
332
|
V1_14_4: install_v1_14_4,
|
343
333
|
V1_14_5: install_v1_14_5,
|
344
|
-
V1_14_6: install_v1_14_6,
|
345
|
-
V1_14_7: install_v1_14_7,
|
346
|
-
V1_14_8: install_v1_14_8,
|
347
334
|
},
|
348
335
|
OSX: {
|
349
336
|
V1_14_0: install_v1_14_0,
|
@@ -351,9 +338,6 @@ INSTALL_FUNCTIONS = {
|
|
351
338
|
V1_14_3: install_v1_14_3,
|
352
339
|
V1_14_4: install_v1_14_4,
|
353
340
|
V1_14_5: install_v1_14_5,
|
354
|
-
V1_14_6: install_v1_14_6,
|
355
|
-
V1_14_7: install_v1_14_7,
|
356
|
-
V1_14_8: install_v1_14_8,
|
357
341
|
},
|
358
342
|
}
|
359
343
|
|
geth/types.py
CHANGED
@@ -37,7 +37,6 @@ class GethKwargsTypedDict(TypedDict, total=False):
|
|
37
37
|
suffix_args: list[str] | None
|
38
38
|
suffix_kwargs: dict[str, str] | None
|
39
39
|
tx_pool_global_slots: str | None
|
40
|
-
tx_pool_lifetime: str | None
|
41
40
|
tx_pool_price_limit: str | None
|
42
41
|
verbosity: str | None
|
43
42
|
ws_addr: str | None
|
geth/utils/validation.py
CHANGED
@@ -46,7 +46,6 @@ class GethKwargs(BaseModel):
|
|
46
46
|
suffix_args: list[str] | None = None
|
47
47
|
suffix_kwargs: dict[str, str] | None = None
|
48
48
|
tx_pool_global_slots: str | None = None
|
49
|
-
tx_pool_lifetime: str | None = None
|
50
49
|
tx_pool_price_limit: str | None = None
|
51
50
|
verbosity: str | None = None
|
52
51
|
ws_addr: str | None = None
|
geth/wrapper.py
CHANGED
@@ -219,9 +219,6 @@ def construct_popen_command(**geth_kwargs: Unpack[GethKwargsTypedDict]) -> list[
|
|
219
219
|
if gk.tx_pool_global_slots is not None:
|
220
220
|
builder.extend(("--txpool.globalslots", gk.tx_pool_global_slots))
|
221
221
|
|
222
|
-
if gk.tx_pool_lifetime is not None:
|
223
|
-
builder.extend(("--txpool.lifetime", gk.tx_pool_lifetime))
|
224
|
-
|
225
222
|
if gk.tx_pool_price_limit is not None:
|
226
223
|
builder.extend(("--txpool.pricelimit", gk.tx_pool_price_limit))
|
227
224
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: py-geth
|
3
|
-
Version: 5.0.
|
3
|
+
Version: 5.0.0b2
|
4
4
|
Summary: py-geth: Run Go-Ethereum as a subprocess
|
5
5
|
Home-page: https://github.com/ethereum/py-geth
|
6
6
|
Author: The Ethereum Foundation
|
@@ -20,10 +20,8 @@ Classifier: Programming Language :: Python :: 3.12
|
|
20
20
|
Requires-Python: >=3.8, <4
|
21
21
|
Description-Content-Type: text/markdown
|
22
22
|
License-File: LICENSE
|
23
|
-
Requires-Dist: pydantic >=2.6.0
|
24
|
-
Requires-Dist: requests >=2.23
|
25
23
|
Requires-Dist: semantic-version >=2.6.0
|
26
|
-
Requires-Dist:
|
24
|
+
Requires-Dist: pydantic >=2.6.0
|
27
25
|
Requires-Dist: typing-extensions >=4.0.1
|
28
26
|
Requires-Dist: eval-type-backport >=0.1.0 ; python_version < "3.10"
|
29
27
|
Provides-Extra: dev
|
@@ -32,6 +30,7 @@ Requires-Dist: bumpversion >=0.5.3 ; extra == 'dev'
|
|
32
30
|
Requires-Dist: ipython ; extra == 'dev'
|
33
31
|
Requires-Dist: mypy ==1.10.0 ; extra == 'dev'
|
34
32
|
Requires-Dist: pre-commit >=3.4.0 ; extra == 'dev'
|
33
|
+
Requires-Dist: requests >=2.20 ; extra == 'dev'
|
35
34
|
Requires-Dist: tox >=4.0.0 ; extra == 'dev'
|
36
35
|
Requires-Dist: twine ; extra == 'dev'
|
37
36
|
Requires-Dist: wheel ; extra == 'dev'
|
@@ -166,19 +165,19 @@ the current list of supported versions.
|
|
166
165
|
Installation can be done via the command line:
|
167
166
|
|
168
167
|
```bash
|
169
|
-
$ python -m geth.install v1.14.
|
168
|
+
$ python -m geth.install v1.14.5
|
170
169
|
```
|
171
170
|
|
172
171
|
Or from python using the `install_geth` function.
|
173
172
|
|
174
173
|
```python
|
175
174
|
>>> from geth import install_geth
|
176
|
-
>>> install_geth('v1.14.
|
175
|
+
>>> install_geth('v1.14.5')
|
177
176
|
```
|
178
177
|
|
179
178
|
The installed binary can be found in the `$HOME/.py-geth` directory, under your
|
180
|
-
home directory. The `v1.14.
|
181
|
-
`$HOME/.py-geth/geth-v1.14.
|
179
|
+
home directory. The `v1.14.5` binary would be located at
|
180
|
+
`$HOME/.py-geth/geth-v1.14.5/bin/geth`.
|
182
181
|
|
183
182
|
## About `DevGethProcess`
|
184
183
|
|
@@ -1,17 +1,17 @@
|
|
1
|
-
geth/__init__.py,sha256=
|
1
|
+
geth/__init__.py,sha256=txb2SuXK0go_iQEcXYWuzJ8Rb8gq4V1i0-T_hXQNkOo,373
|
2
2
|
geth/accounts.py,sha256=QxhjdyFT5JSgTswQiPsMMgCpTcV9-vaZiksDoWfePTI,5943
|
3
3
|
geth/chain.py,sha256=VMbb1OMI8z-HRteYg7bDgDpf9-SyLYioy2OIYO7oW5s,3879
|
4
4
|
geth/default_blockchain_password,sha256=7ZYUjo1py5Wh_uA_WvoXQG8mPv2CiJ07tI2tOodTLi8,30
|
5
5
|
geth/exceptions.py,sha256=yLGBkLabY_W-43kW9iYPM3FaoR08JWgTWYW1RHukaeU,2643
|
6
6
|
geth/genesis.json,sha256=E6pcGhk0pz1ByhRvyqeVbNAteOB4U1jOj4KiHtR2tAM,901
|
7
|
-
geth/install.py,sha256=
|
7
|
+
geth/install.py,sha256=Ztrnh8vZIzfJ6lInNKlvXIneQPLW9FubsjPCJD8oXOg,10031
|
8
8
|
geth/main.py,sha256=jgWIs3o9BfHcqWfuq6l4JBjcdQzDy13-EJDP1c2ouhQ,1463
|
9
9
|
geth/mixins.py,sha256=cpls-_Z9WZdmYbjhOZL-y6F1xRYAvmfWRed2DODe6D8,5639
|
10
10
|
geth/process.py,sha256=3zeHvPFhXMhotB-kOhpJlt_qxiQFTEtByAdFNVf5mlg,8966
|
11
11
|
geth/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
geth/reset.py,sha256=IlKfr5PyjVi0rHjoGUY5kbjtnR9ZAsfSb1Jgzh0dDo0,2639
|
13
|
-
geth/types.py,sha256=
|
14
|
-
geth/wrapper.py,sha256=
|
13
|
+
geth/types.py,sha256=IPmBhcXYXpJZuqrZiSJ5QVrf6IVG8hFsUDqaMAFjgcE,1421
|
14
|
+
geth/wrapper.py,sha256=Jx1rhIguhw0TODFzlAlv0DHuilh_Uy5dDPrNotdMmCs,7774
|
15
15
|
geth/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
geth/utils/encoding.py,sha256=YguGD7mEUN2eSMPkBREalKK1VQfOsLcj1WWJLR0HTxY,1618
|
17
17
|
geth/utils/filesystem.py,sha256=yg8m8n99-N0FA4NcNtu9V8mett2WTQPKHGjThrbk974,1320
|
@@ -19,9 +19,9 @@ geth/utils/networking.py,sha256=ntH6CZuGcTJJ0BIdT4rI-EMz703VDbJAJzGcxufDQMo,1488
|
|
19
19
|
geth/utils/proc.py,sha256=0CcHzOTkSzikrli_2ooQT6iHpPaTRYsshcvrGYC7btA,1801
|
20
20
|
geth/utils/thread.py,sha256=IL4C-AvzYbOwW2qOIMS63GVEqiWLe9TiMXX20qT1UaY,315
|
21
21
|
geth/utils/timeout.py,sha256=Uiz90EKJJm7UmKmVx2FhBpIblnvg9dTqszsanvfOtFM,2259
|
22
|
-
geth/utils/validation.py,sha256=
|
23
|
-
py_geth-5.0.
|
24
|
-
py_geth-5.0.
|
25
|
-
py_geth-5.0.
|
26
|
-
py_geth-5.0.
|
27
|
-
py_geth-5.0.
|
22
|
+
geth/utils/validation.py,sha256=2WGKUJUJcGHKOXNlP-KE_bpIt7Tx23_BqmDkMDgGdZg,5356
|
23
|
+
py_geth-5.0.0b2.dist-info/LICENSE,sha256=kUYPqABLwavFVY_YsjHUmfvCFNnMRwMd3akYH1rHTaY,1095
|
24
|
+
py_geth-5.0.0b2.dist-info/METADATA,sha256=WsG1ZLqw7Ctv2asTyM-aEpRJyK8IE_Cj78zYvemf59Y,8929
|
25
|
+
py_geth-5.0.0b2.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
|
26
|
+
py_geth-5.0.0b2.dist-info/top_level.txt,sha256=o8Gvkxt3xBR7BNG2p9_G1J3GnGlTrBMEhYJBdAzBWDU,5
|
27
|
+
py_geth-5.0.0b2.dist-info/RECORD,,
|
File without changes
|
File without changes
|