{ "info": { "author": "KomodoPlatform", "author_email": "alysakov@komodoplatform.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3 :: Only" ], "description": "python-trezor\n=============\n\n[![image](https://travis-ci.org/trezor/python-trezor.svg?branch=master)](https://travis-ci.org/trezor/python-trezor)\n\n[![image](https://badges.gitter.im/trezor/community.svg)](https://gitter.im/trezor/community)\n\nPython library and commandline client for communicating with TREZOR\nHardware Wallet\n\nSee for more information\n\nInstall\n-------\n\nPython-trezor requires Python 3.3 or higher, and libusb 1.0. The easiest\nway to install it is with `pip`. The rest of this guide assumes you have\na working `pip`; if not, you can refer to [this\nguide](https://packaging.python.org/tutorials/installing-packages/).\n\n### Trezor T only\n\nOn a typical Linux / Mac / BSD system, you already have all you need.\nInstall `trezor` with:\n\n```sh\npip3 install --upgrade setuptools\npip3 install trezor\n```\n\nOn Windows, you also need to install\n[libusb](https://github.com/libusb/libusb/wiki/Windows) and the\nappropriate [drivers](https://zadig.akeo.ie/). This is, unfortunately, a\ntopic bigger than this README.\n\n### Trezor One support\n\nIn addition to the above, you need to install development headers for\nHIDAPI.\n\nOn a Debian or Ubuntu based system, you can install these:\n\n```sh\nsudo apt-get install python3-dev python3-pip cython3 libusb-1.0-0-dev libudev-dev\n```\n\nWhen installing the trezor library, you need to specify that you want\n`hidapi`:\n\n```sh\npip3 install --upgrade setuptools\npip3 install trezor[hidapi]\n```\n\n### Ethereum support\n\nEthereum requires additional python packages. Instead of\n`pip3 install trezor`, specify `pip3 install trezor[ethereum]`.\n\nYou can combine it with the above, to get both HIDAPI and Ethereum\nsupport:\n\n```sh\npip3 install trezor[ethereum,hidapi]\n```\n\n### FreeBSD\n\nOn FreeBSD you can install the packages:\n\n```sh\npkg install security/py-trezor\n```\n\nor build via ports:\n\n```sh\ncd /usr/ports/security/py-trezor\nmake install clean\n```\n\nCommand line client (trezorctl)\n------------------------------\n\nThe included `trezorctl` python script can perform various tasks such as\nchanging setting in the Trezor, signing transactions, retrieving account\ninfo and addresses. See the [docs/](docs/) sub folder for detailed\nexamples and options.\n\nNOTE: An older version of the `trezorctl` command is [available for\nDebian Stretch](https://packages.debian.org/en/stretch/python-trezor)\n(and comes pre-installed on [Tails OS](https://tails.boum.org/)).\n\nPython Library\n--------------\n\nYou can use this python library to interact with a Bitcoin Trezor and\nuse its capabilities in your application. See examples here in the\n[tools/](tools/) sub folder.\n\nPIN Entering\n------------\n\nWhen you are asked for PIN, you have to enter scrambled PIN. Follow the\nnumbers shown on TREZOR display and enter the their positions using the\nnumeric keyboard mapping:\n\n\n
789\n
456\n
123\n
\n\nExample: your PIN is **1234** and TREZOR is displaying the following:\n\n\n
283\n
546\n
791\n
\n\nYou have to enter: **3795**\n\nContributing\n------------\n\nPython-trezor pulls coins info and protobuf messages from\n[trezor-common](https://github.com/trezor/trezor-common) repository. If\nyou are developing new features for Trezor, you will want to start\nthere. Once your changes are accepted to `trezor-common`, you can make a\nPR against this repository. Don't forget to update the submodule with:\n\n```sh\ngit submodule update --init --remote\n```\n\nThen, rebuild the protobuf messages and get `coins.json` by running:\n\n```sh\npython3 setup.py prebuild\n```\n\nTo get support for BTC-like coins, these steps are enough and no further\nchanges to the library are necessary.\n\n\n# Changelog\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).\n\n_At the moment, the project does __not__ adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). That is expected to change with version 1.0._\n\n\n## [0.10.2] - 2018-06-21\n[0.10.2]: https://github.com/trezor/python-trezor/compare/v0.10.1...v0.10.2\n\n### Added\n- `stellar_get_address` and `_public_key` functions support `show_display` parameter\n- trezorctl: `stellar_get_address` and `_public_key` commands for the respective functionality\n\n### Removed\n- trezorctl: `list_coins` is removed because we no longer parse the relevant protobuf field\n (and newer Trezor firmwares don't send it) [#277]\n\n### Fixed\n- test support module was not included in the release, so code relying on the deprecated `ckd_public` module would fail [#280]\n\n## [0.10.1] - 2018-06-11\n[0.10.1]: https://github.com/trezor/python-trezor/compare/v0.10.0...v0.10.1\n\n### Fixed\n- previous release fails to build on Windows [#274]\n\n## [0.10.0] - 2018-06-08\n[0.10.0]: https://github.com/trezor/python-trezor/compare/v0.9.1...v0.10.0\n\n### Added\n- Lisk support [#197]\n- Stellar support [#167], [#268]\n- Wanchain support [#230]\n- support for \"auto lock delay\" feature\n- `TrezorClient` takes an additional argument `state` that allows reusing the previously entered passphrase [#241]\n- USB transports mention udev rules in exception messages [#245]\n- `log.enable_debug_output` function turns on wire logging, instead of having to use `TrezorClientVerbose`\n- BIP32 paths now support `123h` in addition to `123'` to indicate hardening\n- trezorctl: `-p` now supports prefix search for device path [#226]\n- trezorctl: smarter handling of firmware updates [#242], [#269]\n\n### Changed\n- reorganized transports and moved into their own `transport` submodule\n- protobuf messages and coins info is now regenerated at build time from the `trezor-common` repository [#248]\n- renamed `ed25519raw` to `_ed25519` to indicate its privateness\n- renamed `ed25519cosi` to `cosi` and expanded its API\n- protobuf messages are now logged through Python's `logging` facility instead of custom printing through `VerboseWireMixin`\n- `client.format_protobuf` is moved to `protobuf.format_message`\n- `tools.Hash` is renamed to `tools.btc_hash`\n- `coins` module `coins_txapi` is renamed to `tx_api`. \n `coins_slip44` is renamed to `slip44`.\n- build: stricter flake8 checks\n- build: split requirements to separate files\n- tests: unified finding test device, while respecting `TREZOR_PATH` env variable.\n- tests: auto-skip appropriately marked tests based on Trezor device version\n- tests: only show wire output when run with `-v`\n- tests: allow running `xfail`ed tests selectively based on `pytest.ini`\n- docs: updated README with clearer install instructions [#185]\n- docs: switched changelog to Keep a Changelog format [#94]\n\n### Deprecated\n- `ckd_public` is only maintained in `tests.support` submodule and considered private\n- `TrezorClient.expand_path` is moved to plain function `tools.parse_path`\n- `TrezorDevice` is deprecated in favor of `transport.enumerate_devices` and `transport.get_transport`\n- XPUB-related handling in `tools` is slated for removal\n\n### Removed\n- most Python 2 compatibility constructs are gone [#229]\n- `TrezorClientVerbose` and `VerboseWireMixin` is removed\n- specific `tx_api.TxApi*` classes removed in favor of `coins.tx_api`\n- `client.PRIME_DERIVATION_FLAG` is removed in favor of `tools.HARDENED_FLAG` and `tools.H_()`\n- hard dependency on Ethereum libraries and HIDAPI is changed into extras that need to be\n specified explicitly. Require `trezor[hidapi]` or `trezor[ethereum]` to get them.\n\n### Fixed\n- WebUSB enumeration returning bad devices on Windows 10 [#223]\n- `sign_tx` operation sending empty address string [#237]\n- Wrongly formatted Ethereum signatures [#236]\n- protobuf layer would wrongly encode signed integers [#249], [#250]\n- protobuf pretty-printing broken on Python 3.4 [#256]\n- trezorctl: Matrix recovery on Windows wouldn't allow backspace [#207]\n- aes_encfs_getpass.py: fixed Python 3 bug [#169]\n\n\n## [0.9.1] - 2018-03-05\n[0.9.1]: https://github.com/trezor/python-trezor/compare/v0.9.0...v0.9.1\n\n### Added\n- proper support for Trezor model T\n- support for Monacoin\n- improvements to `trezorctl`:\n - add pretty-printing of features and protobuf debug dumps (fixes [#199])\n - support `TREZOR_PATH` environment variable to preselect a Trezor device.\n\n### Removed\n- gradually dropping Python 2 compatibility (pypi package will now be marked as Python 3 only)\n\n\n[#94]: https://github.com/trezor/python-trezor/issues/94\n[#167]: https://github.com/trezor/python-trezor/issues/167\n[#169]: https://github.com/trezor/python-trezor/issues/169\n[#185]: https://github.com/trezor/python-trezor/issues/185\n[#197]: https://github.com/trezor/python-trezor/issues/197\n[#199]: https://github.com/trezor/python-trezor/issues/199\n[#207]: https://github.com/trezor/python-trezor/issues/207\n[#223]: https://github.com/trezor/python-trezor/issues/223\n[#226]: https://github.com/trezor/python-trezor/issues/226\n[#229]: https://github.com/trezor/python-trezor/issues/229\n[#230]: https://github.com/trezor/python-trezor/issues/230\n[#236]: https://github.com/trezor/python-trezor/issues/236\n[#237]: https://github.com/trezor/python-trezor/issues/237\n[#241]: https://github.com/trezor/python-trezor/issues/241\n[#242]: https://github.com/trezor/python-trezor/issues/242\n[#245]: https://github.com/trezor/python-trezor/issues/245\n[#248]: https://github.com/trezor/python-trezor/issues/248\n[#249]: https://github.com/trezor/python-trezor/issues/249\n[#250]: https://github.com/trezor/python-trezor/issues/250\n[#256]: https://github.com/trezor/python-trezor/issues/256\n[#268]: https://github.com/trezor/python-trezor/issues/268\n[#269]: https://github.com/trezor/python-trezor/issues/269\n[#274]: https://github.com/trezor/python-trezor/issues/274\n[#277]: https://github.com/trezor/python-trezor/issues/277\n[#280]: https://github.com/trezor/python-trezor/issues/280", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/KomodoPlatform/python-trezor", "keywords": "", "license": "LGPLv3", "maintainer": "", "maintainer_email": "", "name": "trezor-komodo", "package_url": "https://pypi.org/project/trezor-komodo/", "platform": "", "project_url": "https://pypi.org/project/trezor-komodo/", "project_urls": { "Homepage": "https://github.com/KomodoPlatform/python-trezor" }, "release_url": "https://pypi.org/project/trezor-komodo/0.10.2.post1/", "requires_dist": null, "requires_python": ">=3.3", "summary": "Python library for communicating with TREZOR Hardware Wallet", "version": "0.10.2.post1" }, "last_serial": 5630514, "releases": { "0.10.2.post0": [ { "comment_text": "", "digests": { "md5": "770977d63137216ea0017dc81f9b012e", "sha256": "ebfe8f515720814f03f5138f5de0d8d249136f5fd63205ed6191ee4d7096013f" }, "downloads": -1, "filename": "trezor-komodo-0.10.2.post0.tar.gz", "has_sig": false, "md5_digest": "770977d63137216ea0017dc81f9b012e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.3", "size": 3781592, "upload_time": "2019-07-29T08:14:57", "url": "https://files.pythonhosted.org/packages/b8/ae/dccc6c1604d8000218274f3273a85569056979937b6ca9e2093c2de17e48/trezor-komodo-0.10.2.post0.tar.gz" } ], "0.10.2.post1": [ { "comment_text": "", "digests": { "md5": "c258010458b9425f0809c2281c13b7c9", "sha256": "2c2455d488acfd0c47967229799bad34a68c424f4d48c4e1621c1a29c25ae77c" }, "downloads": -1, "filename": "trezor-komodo-0.10.2.post1.tar.gz", "has_sig": false, "md5_digest": "c258010458b9425f0809c2281c13b7c9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.3", "size": 3787619, "upload_time": "2019-08-04T12:37:42", "url": "https://files.pythonhosted.org/packages/77/56/66c36a7211d6212490c6625051eeba8df78298b0188c5913f0319c26fb75/trezor-komodo-0.10.2.post1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c258010458b9425f0809c2281c13b7c9", "sha256": "2c2455d488acfd0c47967229799bad34a68c424f4d48c4e1621c1a29c25ae77c" }, "downloads": -1, "filename": "trezor-komodo-0.10.2.post1.tar.gz", "has_sig": false, "md5_digest": "c258010458b9425f0809c2281c13b7c9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.3", "size": 3787619, "upload_time": "2019-08-04T12:37:42", "url": "https://files.pythonhosted.org/packages/77/56/66c36a7211d6212490c6625051eeba8df78298b0188c5913f0319c26fb75/trezor-komodo-0.10.2.post1.tar.gz" } ] }