Skip to main content

py-hdwallet: HD wallet generator.

Project description

py-hdwallet

Join the chat at https://gitter.im/ethereum/py-hdwallet Build Status PyPI version Python versions Docs build

HD wallet generator.

WARNING: This package has not been peer reviewed or audited. Use at your own risk!

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

Quickstart

pip install py-hdwallet

Developer Setup

If you would like to hack on py-hdwallet, please check out the Snake Charmers Tactical Manual for information on how we do:

  • Testing
  • Pull Requests
  • Code Style
  • Documentation

Development Environment Setup

You can set up your dev environment with:

git clone git@github.com:ethereum/py-hdwallet.git
cd py-hdwallet
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 hdwallet/ tests/ -c "clear; flake8 hdwallet 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 py-hdwallet failed'" ../tests ../hdwallet

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. This is typically done from the master branch, except when releasing a beta (in which case the beta is released from master, and the previous stable branch is released from said branch). To include changes made with each release, update "docs/releases.rst" with the changes, and apply commit directly to master before release.

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

py-hdwallet-0.1.0a1.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

py_hdwallet-0.1.0a1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file py-hdwallet-0.1.0a1.tar.gz.

File metadata

  • Download URL: py-hdwallet-0.1.0a1.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for py-hdwallet-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 d4b07032ed71d8b439d4aa373fecef15bc2edb2fb6aa6c8ecb1c6b897f57367b
MD5 4fac88037a5a6980c7a76f58d4f45169
BLAKE2b-256 fc4c12a0a01a6ce512204163218562b5aafdfe82fb99842eb0905e54ab3808f5

See more details on using hashes here.

File details

Details for the file py_hdwallet-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: py_hdwallet-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for py_hdwallet-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2350ff4c611b95ce3e4c1758110858cd4f5a85502e0451541aefa954ba61590
MD5 8f35f9a949a02cd771c5b57ca471e0b5
BLAKE2b-256 06248795b09c6448966e96eec0a80ae664776dac4c032f4301de13a47f893328

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