skillfed

py-bip39-bindings

Python bindings for tiny-bip39 RUST crate

py-bip39-bindings v0.3.0 267.4K downloads/30d#8,293 on PyPI3
Permissive license Active released

What it is and what it does

py-bip39-bindings wraps the tiny-bip39 Rust crate to provide fast, cryptographically sound BIP39 mnemonic operations in Python. It lets you generate random mnemonics, validate existing ones, and derive cryptographic seeds from them—all core operations for cryptocurrency wallet software and key management. The package supports multiple languages including 'en', 'zh-hans', 'zh-hant', 'fr', 'it', 'jap', 'ko', 'es' and defaults to English.

The bindings are compiled to native wheels for Python 3.9–3.13 on Linux, macOS, and Windows, so installation is straightforward on common platforms. There are no Python runtime dependencies; the package is a thin interface to the underlying Rust implementation. It's maintained actively and carries no known security vulnerabilities.

Use it for:

  • Generate and validate BIP39 mnemonics for cryptocurrency wallet creation and recovery
  • Derive cryptographic seeds from mnemonics for key derivation in blockchain applications
  • Build multilingual wallet interfaces that generate mnemonics in supported languages
  • Integrate BIP39 operations into Polkadot/Kusama ecosystem tools and reference implementations

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides Python bindings to the tiny-bip39 Rust library for generating, validating, and converting BIP39 mnemonics to cryptographic seeds, with support for multiple languages.

Yes, if you need BIP39 mnemonic operations in a Python application. The package is actively maintained, has no known vulnerabilities, carries a permissive license, and provides pre-built wheels for modern Python versions. Medium install friction is typical for compiled bindings and poses no practical barrier. Not necessary if you only need pure-Python implementations or have no cryptographic use case.

Install

py-bip39-bindings on PyPI

pip

pip install py-bip39-bindings

uv

uv add py-bip39-bindings

poetry

poetry add py-bip39-bindings

Installing py-bip39-bindings

Before you install

Medium install friction due to compiled Rust bindings, but wheels are pre-built for Python 3.9–3.13 across Linux (manylinux, musl), macOS, and Windows. Repository is actively maintained with a recent release.

License in practice

Licensed under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions.

Quickstart

pip install py-bip39-bindings

from bip39 import bip39_generate, bip39_validate, bip39_to_mini_secret
import binascii

mnemonic = bip39_generate(12)
bip39_validate(mnemonic)
seed_array = bip39_to_mini_secret(mnemonic, "")
seed_hex = binascii.hexlify(bytearray(seed_array)).decode("ascii")

Verify before relying

  • Whether the package is actively used in production systems or primarily for reference/testing
  • Performance characteristics compared to pure-Python BIP39 implementations
  • Stability guarantees or semantic versioning policy for the 0.3.0 release
  • Support for mnemonic word counts beyond 12 words

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.9)
Install friction medium — platform-specific wheel
Runtime dependencies none
Maintenance actively maintained — 345 days since the last release
Last repo commit
First released
Downloads 267,373/month — #8,293 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: py_bip39_bindings-0.3.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; py_bip39_bindings-0.3.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; py_bip39_bindings-0.3.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; py_bip39_bindings-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; py_bip39_bindings-0.3.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl; py_bip39_bindings-0.3.0-cp310-cp310-musllinux_1_2_aarch64.whl; py_bip39_bindings-0.3.0-cp310-cp310-musllinux_1_2_armv7l.whl; py_bip39_bindings-0.3.0-cp310-cp310-musllinux_1_2_i686.whl; py_bip39_bindings-0.3.0-cp310-cp310-musllinux_1_2_x86_64.whl; py_bip39_bindings-0.3.0-cp310-cp310-win32.whl; py_bip39_bindings-0.3.0-cp310-cp310-win_amd64.whl; py_bip39_bindings-0.3.0-cp311-cp311-macosx_10_12_x86_64.whl; py_bip39_bindings-0.3.0-cp311-cp311-macosx_11_0_arm64.whl; py_bip39_bindings-0.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; py_bip39_bindings-0.3.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; py_bip39_bindings-0.3.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; py_bip39_bindings-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; py_bip39_bindings-0.3.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl; py_bip39_bindings-0.3.0-cp311-cp311-musllinux_1_2_aarch64.whl; py_bip39_bindings-0.3.0-cp311-cp311-musllinux_1_2_armv7l.whl

Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Tags

bip39 mnemonic generationseed derivation from mnemonicbip39 validationcryptocurrency wallet mnemonicsrust bindings python cryptomultilingual bip39 supporttiny-bip39 python
bip39cryptocurrencyrust-bindings

More Cryptography packages