Skip to main content

Common utility functions for ethereum codebases.

Project description

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

Build Status

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$$

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eth-utils-1.6.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

eth_utils-1.6.0-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file eth-utils-1.6.0.tar.gz.

File metadata

  • Download URL: eth-utils-1.6.0.tar.gz
  • Upload date:
  • Size: 16.7 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

Hashes for eth-utils-1.6.0.tar.gz
Algorithm Hash digest
SHA256 661a3033fb117bc9aa0ac8c28c903561c73d8f5cf2b4349815e5b4a001df6627
MD5 6b738dd20a9ae8ac534bb78820c36493
BLAKE2b-256 d4ec73cf985c3a9e7bc1e1bafb69dd0c2787907f082b7bad0b951da25a4f9b71

See more details on using hashes here.

File details

Details for the file eth_utils-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: eth_utils-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 20.0 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

Hashes for eth_utils-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88985b36d1a0a463d77edb41a8eb98c4f95658f9e9ec5cc6a35ec3623ca65f49
MD5 ae8060a097173bf2cfdef85f74f089cf
BLAKE2b-256 0b9fa8af6bddba9e669f1e712c28af182520c922cf6f6f12b360d2b8825f0784

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page