Python binding to tiny-bip39, the Rust case conversion library
Project description
pybip39
pybip39
is a fast Python library for
BIP39
Bitcoin HD wallet mnemonic phrases. It supports multiple languages
and allows for seed phrases of 12 to 24 words. pybip39
calls the Rust library
tiny-bip39
under the hood, thus benefitting from Rust's speed and safety.
Installation
pip install pybip39
Note: requires Python >= 3.7.
Usage:
from pybip39 import Mnemonic, Seed
mnemonic = Mnemonic()
# Get the phrase
phrase = mnemonic.phrase
print(f"phrase: {phrase}")
# Get the HD wallet seed
seed = Seed(mnemonic, "")
# get the HD wallet seed as raw bytes
seed_bytes = bytes(seed)
print(seed_bytes)
Documentation credit
Most of this documentation is copied from the tiny-bip39 docs.
Development
Setup
- Install poetry
- Install dev dependencies:
poetry install
- Activate the poetry shell:
poetry shell
Testing
- Run
maturin develop
to compile the Rust code. - Run
make fmt
,make lint
, andmake test
.
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
pybip39-0.1.0.tar.gz
(7.9 kB
view hashes)
Built Distributions
pybip39-0.1.0-cp37-abi3-win_amd64.whl
(298.2 kB
view hashes)
pybip39-0.1.0-cp37-abi3-win32.whl
(288.9 kB
view hashes)
Close
Hashes for pybip39-0.1.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 559712fd7dfc2df84fe9a3b192b7ce164d1e8ffa2d0323df631e8c40907f5d99 |
|
MD5 | b01a9ec39104809f6b7ce512442be4ff |
|
BLAKE2b-256 | ae96b8afbf915f68dc3f634d356603a24f92b30b08a800e9a95d03b980faf828 |
Close
Hashes for pybip39-0.1.0-cp37-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d1c1a25372629ae1ed8f20ebb0b7029b677400c22f93d7213eda244be61cf12 |
|
MD5 | afcd51bcf3ca386573c405d0e51787ff |
|
BLAKE2b-256 | 822cf30b22729018f0064fac50b8d5ccfa1ac7b35e26f9fbb6f306b864b6faf0 |
Close
Hashes for pybip39-0.1.0-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddc117bd104fab93a5ed266cd69068c457f9596b44ade9274f67d5fde4e5f108 |
|
MD5 | 4dccbe6f496ec898ea87ec9c7d6c4d63 |
|
BLAKE2b-256 | b7d5644c664698be9fb7dc7b055de271597e7a6db5cc8cba27f1fe8abc648fc5 |
Close
Hashes for pybip39-0.1.0-cp37-abi3-musllinux_1_2_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b27f3eb858126adb94c84e696a493a7e259390d8bc6fdb22d21ea7510c453717 |
|
MD5 | babd4320068a64bbefa45ab068a5a559 |
|
BLAKE2b-256 | 4482deeee5555ef7de0e59efce9355be1e5503751ec057e7cc0d329d82e88bbd |
Close
Hashes for pybip39-0.1.0-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 481a0560213310dd4de6913e0a67e2ca070ac64ea6a0cc7b7222d805c672c453 |
|
MD5 | 7d2e11ed7f0f5b54fffb2d91557d5cf5 |
|
BLAKE2b-256 | be8ea9aefd3756b23b63a2cd213239454aa58aa7cb8e78927c064f25b72240c8 |
Close
Hashes for pybip39-0.1.0-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e52bca06263fcc1d29f98bc7d338acab61fc38c20343af4e6f3d4637ebaa0e52 |
|
MD5 | 9543dda596ac8a69fbebd3572b3850bb |
|
BLAKE2b-256 | 20be00a0a78a386f7e9328990bf51d0561ae9e42eb0ab088d7cb1c46a56da271 |
Close
Hashes for pybip39-0.1.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adbbc3f0e62277d57d5a73a9d01d53c9a262636f6413bdfcbe67c55df51a6ae2 |
|
MD5 | 2bbefb82b9a115c4091f092c36538259 |
|
BLAKE2b-256 | 5450f19cf72a4f1212610e8ef30caee5361d6c5570a13bee2a6324ce733acc5f |
Close
Hashes for pybip39-0.1.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28141a8f204cd2e155a54bb4c0a8d7a8cf564fa0a3698c3942e51724e547dd75 |
|
MD5 | a5cf4c9b06f7f35d95d399967ee013b8 |
|
BLAKE2b-256 | 679709185473909b22c6f1f5722093fd0a765aaed1749c0400e8c840c6fd947b |
Close
Hashes for pybip39-0.1.0-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0339b05f80ae9f21aefcc55b639fc48eb059c33500e91fd0bc67971fd33e7680 |
|
MD5 | 335fe2bed88527fd2d46461f761e4e6c |
|
BLAKE2b-256 | 0e723714b2fd260d8e34d0fa38b3745a64fe09261812c2a87b842f8f6d9fe8d8 |
Close
Hashes for pybip39-0.1.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58b5aa1ceffb9599935a6a217611ec301d1b0ab66beca89bdc16a777103f2544 |
|
MD5 | d3abfe27d86e1c57b3ec96e3d55df54c |
|
BLAKE2b-256 | ae039aa21bf8dc87b48a627e6180384b5b3a45ba53e8f22fa4e46a4056d586ee |
Close
Hashes for pybip39-0.1.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2919b56b4c34eb45b47b3d1126db7d7624c12503cc4429383d68c18edd396ad9 |
|
MD5 | fa8b16465594862a7b326b8411870f53 |
|
BLAKE2b-256 | 08a38d98f50cd0a06a5af1499052d306b174c96b444695a9233eb990d70fb41b |
Close
Hashes for pybip39-0.1.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aa948550ed859cf8341d339bd01dff736d2f2c3bc88ecf6f0fa53f2c1d762ff |
|
MD5 | c45a5d383ad1c8b965d24f24a85ced13 |
|
BLAKE2b-256 | 4854390e21947f969411569ed2857b5b7c3f94fb028727f7b08c7f5d2ee4cfda |
Close
Hashes for pybip39-0.1.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8ffdc0500cc5465c22e68442c147d430e97c45699ad21f7375d061b4803e26e |
|
MD5 | a21c4bed2a5412428a37706ddc5afd38 |
|
BLAKE2b-256 | db3832b57bff6d335102233ca1bbf494b9907235ecb1a12d8ea9a25034c2f669 |
Close
Hashes for pybip39-0.1.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84716be929385f6aef5a4480c54ae741ce00cc9e2c0a4f48465b51e0417163ec |
|
MD5 | a68cc1edf666f5541c2bfaf621519550 |
|
BLAKE2b-256 | ba552be23b0e3992945a198929b33230465bba4d9d98e83c0ae77470088d3b73 |
Close
Hashes for pybip39-0.1.0-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd5c523d2322dc2f83f182ec21b43d1127642c7e231884b83ef65145dc329034 |
|
MD5 | a5c727df5c17b1372fb17bd9101387ed |
|
BLAKE2b-256 | ab9b8c451fdaee7d41523f1af280641348560e0caeaab53eab56550806a46432 |