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

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


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.8.2.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

eth_utils-1.8.2-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eth-utils-1.8.2.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.0

File hashes

Hashes for eth-utils-1.8.2.tar.gz
Algorithm Hash digest
SHA256 f0c1dd04fdfa0a88b0e129ec80ae513ff90c2cefd227abcdac7934b98a234aa6
MD5 79a6ae52b2441049ab4a046b6cde0193
BLAKE2b-256 e17b9c72010b69f9f2fd9b6307f2cd21344313a728d3ac27fbf85c889aa40af8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eth_utils-1.8.2-py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.0

File hashes

Hashes for eth_utils-1.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 67d700f18e699932247a635b3ff0f861fcdbf5860151a02776b6ad280b1e98c1
MD5 4eeda04661c1421c50d9434a530a2d5c
BLAKE2b-256 b03cd369a04877bf1f7b8a0c4c0d186acdf282db44f8a20e94866a366f2c09ee

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