Common utility functions for ethereum codebases.
Project description
Documentation hosted by ReadTheDocs
Common utility functions for codebases which interact with ethereum.
This library and repository was previously located at https://github.com/pipermerriam/ethereum-utils. It was transferred to the Ethereum foundation github in November 2017 and renamed to eth-utils. The PyPi package was also renamed from ethereum-utils to `eth-utils.
Installation
pip install eth-utils
Development
Clone the repository and then run:
pip install -e .[dev] eth-hash[pycryptodome]
Documentation
Building Sphinx docs locally:
pip install -e .[doc]
cd docs
make html
Docs are written in reStructuredText and built using the Sphinx documentation generator.
Running the tests
You can run the tests with:
py.test tests
Or you can install tox to run the full test suite.
Releasing
Pandoc is required for transforming the markdown README to the proper format to render correctly on pypi.
For Debian-like systems:
apt install pandoc
Or on OSX:
brew install pandoc
To release a new version:
make release bump=$$VERSION_PART_TO_BUMP$$
To preview the upcoming release notes:
towncrier --draft
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"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file eth-utils-1.7.0.tar.gz
.
File metadata
- Download URL: eth-utils-1.7.0.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f01c563fef5400c91465f33d584558e5384306d3b72b5a4fa2fcb2f6d7154e8 |
|
MD5 | 07617fd9f72e251a4b8cdd6e20d43ea8 |
|
BLAKE2b-256 | c99a0a4a6a90150457bb4bd3c07b55c5ec8219884621036496a34ed996ec947b |
File details
Details for the file eth_utils-1.7.0-py3-none-any.whl
.
File metadata
- Download URL: eth_utils-1.7.0-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e874aa50ceeceb9e46d8a9cb566d2c010702b35eecde1c6b48c91c29e9d155d1 |
|
MD5 | cd588e957d5208bf28f73b7483bd7751 |
|
BLAKE2b-256 | b6bb60309d0d10d1d382e7cac871f5ef119bae5ceb6987860453df6887134829 |