Common utility functions for ethereum codebases.
Project description
Ethereum Utils
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 fromethereum-utils
toeth-utils
.
Installation
pip install eth-utils-qtum
Development
Clone the repository and then run:
pip install -e .[dev] eth-hash-qtum[pycryptodomex]
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-qtum-1.9.5.1.tar.gz
.
File metadata
- Download URL: eth-utils-qtum-1.9.5.1.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 102fb5e12815b507ada6ab9d41a9b12c20fa05808068e48fa82f4d33c2dcaa10 |
|
MD5 | d3e459246adbd3347329e83230482b08 |
|
BLAKE2b-256 | fc4163b5a82f9afcd7ff435409399d153712dd5fd4629ed0f57dfe39548ee2de |
File details
Details for the file eth_utils_qtum-1.9.5.1-py3-none-any.whl
.
File metadata
- Download URL: eth_utils_qtum-1.9.5.1-py3-none-any.whl
- Upload date:
- Size: 24.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4da1d94a39e03f7eef0518f3471af0afebd34397ef0c8b59370d915b895c3e40 |
|
MD5 | fe22971ba1ebcb35445b3708c48a8c5b |
|
BLAKE2b-256 | 916bf1b5f6ae4f345d412cc25f6dfe3c4a39d32d2ffb0a8da9ff2037c6084194 |