{"id":13419595,"url":"https://github.com/ofek/bit","last_synced_at":"2025-05-14T18:02:11.719Z","repository":{"id":44962842,"uuid":"73567304","full_name":"ofek/bit","owner":"ofek","description":"Bitcoin made easy.","archived":false,"fork":false,"pushed_at":"2024-06-28T16:50:04.000Z","size":1234,"stargazers_count":1291,"open_issues_count":64,"forks_count":218,"subscribers_count":44,"default_branch":"master","last_synced_at":"2025-05-14T18:01:55.737Z","etag":null,"topics":["bitcoin","cryptocurrencies","libraries","payments","python"],"latest_commit_sha":null,"homepage":"https://ofek.dev/bit/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ofek.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-12T17:23:15.000Z","updated_at":"2025-05-14T10:55:13.000Z","dependencies_parsed_at":"2023-11-13T06:28:15.681Z","dependency_job_id":"6e615799-ed4d-4d76-8750-331686eba6ed","html_url":"https://github.com/ofek/bit","commit_stats":{"total_commits":343,"total_committers":18,"mean_commits":"19.055555555555557","dds":"0.34985422740524785","last_synced_commit":"45ce495338f86bac8ee85b88aaa75813cdd50808"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofek%2Fbit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofek%2Fbit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofek%2Fbit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofek%2Fbit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ofek","download_url":"https://codeload.github.com/ofek/bit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198453,"owners_count":22030964,"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":["bitcoin","cryptocurrencies","libraries","payments","python"],"created_at":"2024-07-30T22:01:18.174Z","updated_at":"2025-05-14T18:02:11.616Z","avatar_url":"https://github.com/ofek.png","language":"Python","readme":"Bit: Bitcoin made easy.\n=======================\n\n.. image:: https://img.shields.io/pypi/v/bit.svg?style=flat-square\n    :target: https://pypi.org/project/bit\n\n.. image:: https://img.shields.io/travis/ofek/bit.svg?branch=master\u0026style=flat-square\n    :target: https://travis-ci.org/ofek/bit\n\n.. image:: https://img.shields.io/codecov/c/github/ofek/bit.svg?style=flat-square\n    :target: https://codecov.io/gh/ofek/bit\n\n.. image:: https://img.shields.io/pypi/pyversions/bit.svg?style=flat-square\n    :target: https://pypi.org/project/bit\n\n.. image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square\n    :target: https://en.wikipedia.org/wiki/MIT_License\n\n-----\n\nBit is Python's `fastest \u003chttps://ofek.github.io/bit/guide/intro.html#why-bit\u003e`_\nBitcoin library and was designed from the beginning to feel intuitive, be\neffortless to use, and have readable source code. It is heavily inspired by\n`Requests \u003chttps://github.com/requests/requests\u003e`_ and\n`Keras \u003chttps://github.com/keras-team/keras\u003e`_.\n\n**Bit is so easy to use, in fact, you can do this:**\n\n.. code-block:: python\n\n    \u003e\u003e\u003e from bit import Key\n    \u003e\u003e\u003e\n    \u003e\u003e\u003e my_key = Key(...)\n    \u003e\u003e\u003e my_key.get_balance('usd')\n    '12.51'\n    \u003e\u003e\u003e\n    \u003e\u003e\u003e # Let's donate!\n    \u003e\u003e\u003e outputs = [\n    \u003e\u003e\u003e     # Wikileaks\n    \u003e\u003e\u003e     ('1HB5XMLmzFVj8ALj6mfBsbifRoD4miY36v', 0.0035, 'btc'),\n    \u003e\u003e\u003e     # Internet Archive\n    \u003e\u003e\u003e     ('1Archive1n2C579dMsAu3iC6tWzuQJz8dN', 190, 'jpy'),\n    \u003e\u003e\u003e     # The Pirate Bay\n    \u003e\u003e\u003e     ('129TQVAroeehD9fZpzK51NdZGQT4TqifbG', 3, 'eur'),\n    \u003e\u003e\u003e     # xkcd\n    \u003e\u003e\u003e     ('14Tr4HaKkKuC1Lmpr2YMAuYVZRWqAdRTcr', 2.5, 'cad')\n    \u003e\u003e\u003e ]\n    \u003e\u003e\u003e\n    \u003e\u003e\u003e my_key.send(outputs)\n    '9f59f5c6757ec46fdc7440acbeb3920e614c8d1d247ac174eb6781b832710c1c'\n\nHere is the transaction `\u003chttps://blockchain.info/tx/9f59f5c6757ec46fdc7440acbeb3920e614c8d1d247ac174eb6781b832710c1c\u003e`_.\n\nFeatures\n--------\n\n- Python's fastest available implementation (100x faster than closest library)\n- Seamless integration with existing server setups\n- Supports keys in cold storage\n- Fully supports 25 different currencies\n- First class support for storing data in the blockchain\n- Deterministic signatures via RFC 6979\n- Access to the blockchain (and testnet chain) through multiple APIs for redundancy\n- Exchange rate API, with optional caching\n- Optimal transaction fee API, with optional caching\n- Compressed public keys by default\n- Multiple representations of private keys; WIF, PEM, DER, etc.\n- Legacy P2PKH and Segwit nested-P2WPKH transactions\n- Legacy P2SH and Segwit nested-P2WSH transactions\n\nIf you are intrigued, continue reading. If not, continue all the same!\n\nInstallation\n------------\n\nBit is distributed on `PyPI`_ as a universal wheel and is available on Linux/macOS\nand Windows and supports Python 3.5+ and PyPy3.5-v5.7.1+. ``pip`` \u003e= 8.1.2 is required.\n\n.. code-block:: bash\n\n    $ pip install bit\n\nDocumentation\n-------------\n\nDocs are `hosted by Github Pages`_ and are automatically built and published\nby Travis after every successful commit to Bit's ``master`` branch.\n\nCredits\n-------\n\n- Logo courtesy of `\u003chttps://textcraft.net\u003e`_\n- `Gregory Maxwell`_ (Bitcoin core dev) for teaching me a bit of `ECC`_ math\n- `arubi`_ in #bitcoin for helping me understand transaction gotchas\n- `fuzeman`_ for bestowing me the name ``bit`` on the `Python Package Index`_\n\n.. _PyPI: https://pypi.org/project/bit\n.. _hosted by Github Pages: https://ofek.github.io/bit\n.. _Gregory Maxwell: https://github.com/gmaxwell\n.. _ECC: https://en.wikipedia.org/wiki/Elliptic_curve_cryptography\n.. _arubi: https://github.com/fivepiece\n.. _fuzeman: https://github.com/fuzeman\n.. _Python Package Index: https://pypi.org\n","funding_links":[],"categories":["☤ Cool Coin/Blockchain Stuff","Python"],"sub_categories":["Physical Coin Wallets"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofek%2Fbit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fofek%2Fbit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofek%2Fbit/lists"}