mnemonic
Implementation of Bitcoin BIP-0039
What it is and what it does
mnemonic is a reference implementation of the Bitcoin standard for encoding entropy into human-readable word sequences. It generates mnemonic phrases (word lists) from random entropy and converts them into cryptographic seeds suitable for deterministic wallet key generation. The package supports multiple languages including English, Chinese Simplified and Traditional, French, Italian, Japanese, Korean, Spanish, Turkish, Czech, and Portuguese, and allows custom word lists.
The library has no runtime dependencies and is designed as a focused, single-purpose tool: take entropy or a word list, validate it, and produce a seed. It's commonly used in cryptocurrency wallet implementations, hardware wallet firmware, and key management tools. The implementation is stable but dormant, with the last release on 2024-01-05.
Use it for:
- Generate a new mnemonic seed phrase for a cryptocurrency wallet during account creation.
- Convert an existing mnemonic word list into a binary seed for wallet key derivation.
- Recover wallet keys from a known mnemonic phrase by regenerating its seed with an optional passphrase.
- Validate a user-provided mnemonic against the word list and recover its original entropy.
- Support multilingual wallet interfaces by generating or validating mnemonics in supported languages.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Generates mnemonic word sequences and converts them to cryptographic seeds following the Bitcoin standard for deterministic wallet creation.
Yes, if you need mnemonic generation or validation in a Python project. The package is stable, dependency-free, and implements a well-defined standard. However, dormant maintenance (no updates in 952 days) means no active support for bugs or security issues—acceptable for a narrow, mature specification but worth noting if you require ongoing maintenance.
Install
mnemonic on PyPI
pip
pip install mnemonicuv
uv add mnemonicpoetry
poetry add mnemonicInstalling mnemonic
Before you install
Low install friction with no runtime dependencies. Maintenance is dormant—last release was 952 days ago—so expect no active bug fixes or feature updates, though the package remains stable for its narrow, well-defined purpose.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install mnemonic
from mnemonic import Mnemonic
mnemo = Mnemonic("english")
words = mnemo.generate(strength=256)
seed = mnemo.to_seed(words, passphrase="")
Requires Python 3.8.1 or later; support for Python below 3.8 was dropped in version 0.21.
Verify before relying
- Whether the package is actively maintained or if dormancy signals end-of-life for this implementation
- Security audit status or known limitations in the implementation relative to other libraries
- Whether custom word lists are validated against any standard or left to caller responsibility
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8.1) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 952 days since the last release |
| First released | |
| Downloads | 834,827/month — #4,936 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mnemonic-0.21-py3-none-any.whl
Tags
More Cryptography packages
Certifi provides Mozilla's curated collection…
copyleft · top 100 on PyPI
cryptographycryptography provides cryptographic recipes and…
permissive · top 100 on PyPI
rsaPure-Python RSA encryption, decryption,…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
azure-identityProvides Microsoft Entra ID token-based…
unclear · top 1,000 on PyPI
PyNaClPyNaCl provides Python bindings to libsodium…
permissive · top 1,000 on PyPI
bip-utilsGenerates mnemonics, seeds, private/public…
permissive · top 15,000 on PyPI
keysymdefProvides X11 and XF86 keysym definitions as…
unclear · top 15,000 on PyPI
shamir-mnemonicImplements SLIP-0039 Shamir's Secret Sharing to…
permissive · top 15,000 on PyPI
hdwalletGenerates hierarchical deterministic (HD)…
permissive · top 15,000 on PyPI
py-bip39-bindingsProvides Python bindings to the tiny-bip39 Rust…
permissive · top 15,000 on PyPI
bip32Implements BIP 32 hierarchical deterministic…
permissive · top 15,000 on PyPI
xkcdpassGenerates strong, memorable passphrases by…
permissive · top 15,000 on PyPI
dicewarediceware generates memorable passphrases by…
copyleft · top 5,000 on PyPI
slip10Implements SLIP-0010 hierarchical deterministic…
permissive · top 15,000 on PyPI
bittensor-walletManages cryptographic keys and wallets for the…
permissive · top 15,000 on PyPI