Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Join the chat at https://gitter.im/ethereum/eth-validation

Build Status

Python tools for validating Ethereum-related objects

  • Python 3.5+ support

Read more in the documentation on ReadTheDocs. View the change log on Github.

Quickstart

pip install eth-validation

Developer setup

If you would like to hack on eth-validation, set up your dev environment with:

git clone git@github.com:ethereum/eth-validation.git
cd eth-validation
virtualenv -p python3 venv
. venv/bin/activate
pip install -e .[dev]

Testing Setup

During development, you might like to have tests run on every file save.

Show flake8 errors on file change:

# Test flake8
when-changed -v -s -r -1 eth_validation/ tests/ -c "clear; flake8 eth_validation tests && echo 'flake8 success' || echo 'error'"

Run multi-process tests in one command, but without color:

# in the project root:
pytest --numprocesses=4 --looponfail --maxfail=1
# the same thing, succinctly:
pytest -n 4 -f --maxfail=1

Run in one thread, with color and desktop notifications:

cd venv
ptw --onfail "notify-send -t 5000 'Test failure ⚠⚠⚠⚠⚠' 'python 3 test on eth-validation failed'" ../tests ../eth_validation

Release setup

For Debian-like systems:

apt install pandoc

To release a new version:

make release bump=$$VERSION_PART_TO_BUMP$$

How to bumpversion

The version format for this repo is {major}.{minor}.{patch} for stable, and {major}.{minor}.{patch}-{stage}.{devnum} for unstable (stage can be alpha or beta).

To issue the next version in line, specify which part to bump, like make release bump=minor or make release bump=devnum.

If you are in a beta version, make release bump=stage will switch to a stable.

To issue an unstable version when the current version is stable, specify the new version explicitly, like make release bump="--new-version 4.0.0-alpha.1 devnum"

Metadata

Release files for eth-validation 0.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eth-validation 0.1.0a1
File Size Uploaded Provenance Actions
eth-validation-0.1.0a1.tar.gz 3.1 kB Without provenance Details for eth-validation-0.1.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for eth-validation 0.1.0a1
File Interpreter ABI Platform Actions
eth_validation-0.1.0a1-py3-none-any.whl Python 3 none any Details for eth_validation-0.1.0a1-py3-none-any.whl

Total release size: 8.1 kB

Release files / eth-validation-0.1.0a1.tar.gz

Download URL eth-validation-0.1.0a1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8ab3099dab7f4ccbf110d11595ae5e5eddc94edfbeec9137add443156332de98
BLAKE2b-256 checksum
How to use checksums
e75ebe99dd254e827a1140eeb09e0fca5eb87fca408c31aff4413d7653e0c27b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / eth_validation-0.1.0a1-py3-none-any.whl

Download URL eth_validation-0.1.0a1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8ad691b83689bb3ce082c8e8dd70ece1307a07d6958f71d0cd929c52a9111cf
BLAKE2b-256 checksum
How to use checksums
ebef1302c5532bbf887ff3dc386a8df5e5c4498e4e8aea57a9db160f42ca58e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for eth-validation 0.1.0a1

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page