{"id":13902969,"url":"https://github.com/trezor/python-mnemonic","last_synced_at":"2025-05-14T11:12:20.459Z","repository":{"id":7002016,"uuid":"8268135","full_name":"trezor/python-mnemonic","owner":"trezor","description":":snake: Mnemonic code for generating deterministic keys, BIP39","archived":false,"fork":false,"pushed_at":"2024-08-27T10:08:45.000Z","size":491,"stargazers_count":890,"open_issues_count":2,"forks_count":382,"subscribers_count":47,"default_branch":"master","last_synced_at":"2025-04-13T13:55:23.056Z","etag":null,"topics":["bip39","bitcoin","mnemonic","python","trezor"],"latest_commit_sha":null,"homepage":"https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Hypnopompia/electron-assettracker-webmap","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trezor.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"custom":["https://shop.trezor.io/","https://trezor.io/beer/"]}},"created_at":"2013-02-18T12:40:34.000Z","updated_at":"2025-04-12T11:36:06.000Z","dependencies_parsed_at":"2023-01-13T14:13:09.679Z","dependency_job_id":"4e607247-ca4c-41a8-8504-92882cf912a2","html_url":"https://github.com/trezor/python-mnemonic","commit_stats":{"total_commits":205,"total_committers":27,"mean_commits":7.592592592592593,"dds":0.5951219512195122,"last_synced_commit":"7d25fe68e555bf861a5cb8b151e2fdf64cf6afa5"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trezor%2Fpython-mnemonic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trezor%2Fpython-mnemonic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trezor%2Fpython-mnemonic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trezor%2Fpython-mnemonic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trezor","download_url":"https://codeload.github.com/trezor/python-mnemonic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254129525,"owners_count":22019628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bip39","bitcoin","mnemonic","python","trezor"],"created_at":"2024-08-06T22:01:31.584Z","updated_at":"2025-05-14T11:12:15.344Z","avatar_url":"https://github.com/trezor.png","language":"Python","readme":"python-mnemonic\n===============\n\n.. image:: https://badge.fury.io/py/mnemonic.svg\n    :target: https://badge.fury.io/py/mnemonic\n\nReference implementation of BIP-0039: Mnemonic code for generating\ndeterministic keys\n\nAbstract\n--------\n\nThis BIP describes the implementation of a mnemonic code or mnemonic sentence --\na group of easy to remember words -- for the generation of deterministic wallets.\n\nIt consists of two parts: generating the mnenomic, and converting it into a\nbinary seed. This seed can be later used to generate deterministic wallets using\nBIP-0032 or similar methods.\n\nBIP Paper\n---------\n\nSee https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki\nfor full specification\n\nInstallation\n------------\n\nTo install this library and its dependencies use:\n\n ``pip install mnemonic``\n\nUsage examples\n--------------\n\nImport library into python project via:\n\n.. code-block:: python\n\n   from mnemonic import Mnemonic\n\nInitialize class instance, picking from available dictionaries:\n\n- english\n- chinese_simplified\n- chinese_traditional\n- french\n- italian\n- japanese\n- korean\n- spanish\n- turkish\n- czech\n- portuguese\n\n.. code-block:: python\n\n   mnemo = Mnemonic(language)\n   mnemo = Mnemonic(\"english\")\n\nGenerate word list given the strength (128 - 256):\n\n.. code-block:: python\n\n   words = mnemo.generate(strength=256)\n\nGiven the word list and custom passphrase (empty in example), generate seed:\n\n.. code-block:: python\n\n   seed = mnemo.to_seed(words, passphrase=\"\")\n\nGiven the word list, calculate original entropy:\n\n.. code-block:: python\n\n   entropy = mnemo.to_entropy(words)\n","funding_links":["https://shop.trezor.io/","https://trezor.io/beer/"],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrezor%2Fpython-mnemonic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrezor%2Fpython-mnemonic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrezor%2Fpython-mnemonic/lists"}