eth-tools
Small library/CLI tool wrapping web3py.
Installation
pip install ethereum-tools
CLI Usage
Web3 provider needs to be set either through the WEB3_PROVIDER_URI environment
variable or through the --web3-uri CLI flag.
Fetching blocks
eth-tools fetch-blocks -s 10000000 -e 10000999 -o blocks.csv.gz
Fetching events
eth-tools fetch-events 0x6b175474e89094c44da98b954eedeac495271d0f --abi /path/to/abi.json -s 10000000 -e 10000999 -o events.jsonl.gz
Library usage
from web3 import Web3
from web3.providers.auto import load_provider_from_environment
from eth_tools.block_iterator import BlockIterator
provider = load_provider_from_environment()
web3 = Web3(provider)
block_iterator = BlockIterator(web3, start_block=10_000_000, end_block=10_000_999)
for block in block_iterator:
print(block.number)
Metadata
Release files for ethereum-tools 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ethereum-tools-0.1.6.tar.gz | 15.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ethereum_tools-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.4 kB
Release files / ethereum-tools-0.1.6.tar.gz
| Download URL | ethereum-tools-0.1.6.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ffc674d6432abb53014bbfa00ff7225fe77f706547110e4bd878e974a5d0fcf
|
|
BLAKE2b-256 checksum How to use checksums |
0792adb00ab883c19c3980f7a0c5268518d499b4a0dde8eb89d656b953c6e31d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / ethereum_tools-0.1.6-py3-none-any.whl
| Download URL | ethereum_tools-0.1.6-py3-none-any.whl |
|---|---|
| Size | 20.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d5762a59c1c46745400fc5b7c0b124dcc192346e223854d89492e0aadab5dd7d
|
|
BLAKE2b-256 checksum How to use checksums |
2e599ad1a8ff8c33ed2d998035728eb682002fb7fb596f839bc2ab460558e1b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for ethereum-tools 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.