Bit: Bitcoin made easy.
Bit is Python’s fastest Bitcoin library and was designed from the beginning to feel intuitive, be effortless to use, and have readable source code. It is heavily inspired by Requests and Keras.
Bit is so easy to use, in fact, you can do this:
>>> from bit import Key
>>>
>>> my_key = Key(...)
>>> my_key.get_balance('usd')
'12.51'
>>>
>>> # Let's donate!
>>> outputs = [
>>> # Wikileaks
>>> ('1HB5XMLmzFVj8ALj6mfBsbifRoD4miY36v', 0.0035, 'btc'),
>>> # Internet Archive
>>> ('1Archive1n2C579dMsAu3iC6tWzuQJz8dN', 190, 'jpy'),
>>> # The Pirate Bay
>>> ('129TQVAroeehD9fZpzK51NdZGQT4TqifbG', 3, 'eur'),
>>> # xkcd
>>> ('14Tr4HaKkKuC1Lmpr2YMAuYVZRWqAdRTcr', 2.5, 'cad')
>>> ]
>>>
>>> my_key.send(outputs)
'9f59f5c6757ec46fdc7440acbeb3920e614c8d1d247ac174eb6781b832710c1c'
Here is the transaction https://blockchain.info/tx/9f59f5c6757ec46fdc7440acbeb3920e614c8d1d247ac174eb6781b832710c1c.
Features
Python’s fastest available implementation (100x faster than closest library)
Seamless integration with existing server setups
Supports keys in cold storage
Fully supports 25 different currencies
First class support for storing data in the blockchain
Deterministic signatures via RFC 6979
Access to the blockchain (and testnet chain) through multiple APIs for redundancy
Exchange rate API, with optional caching
Optimal transaction fee API, with optional caching
Compressed public keys by default
Multiple representations of private keys; WIF, PEM, DER, etc.
Legacy P2PKH and Segwit nested-P2WPKH transactions
Legacy P2SH and Segwit nested-P2WSH transactions
If you are intrigued, continue reading. If not, continue all the same!
Installation
Bit is distributed on PyPI as a universal wheel and is available on Linux/macOS and Windows and supports Python 3.5+ and PyPy3.5-v5.7.1+. pip >= 8.1.2 is required.
$ pip install bit
Documentation
Docs are hosted by Github Pages and are automatically built and published by Travis after every successful commit to Bit’s master branch.
Credits
Logo courtesy of https://textcraft.net
Gregory Maxwell (Bitcoin core dev) for teaching me a bit of ECC math
arubi in #bitcoin for helping me understand transaction gotchas
fuzeman for bestowing me the name bit on the Python Package Index
Metadata
Release files for bit-JCO 0.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bit-JCO-0.8.1.tar.gz | 63.3 kB | Without provenance | Details for bit-JCO-0.8.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bit_JCO-0.8.1-py3-none-any.whl | Python 3 | none | any | Details for bit_JCO-0.8.1-py3-none-any.whl |
Total release size: 132.5 kB
Release files / bit-JCO-0.8.1.tar.gz
| Download URL | bit-JCO-0.8.1.tar.gz |
|---|---|
| Size | 63.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7ab2afe4f68d88a53aeb6a2e25542d90f0a372d468e2d1d2a941a4f8df77f53
|
|
BLAKE2b-256 checksum How to use checksums |
32fe68aaf1c702032010978e6cd6f08ca8b56004b3b7ae5f97d0730c75e6e4ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / bit_JCO-0.8.1-py3-none-any.whl
| Download URL | bit_JCO-0.8.1-py3-none-any.whl |
|---|---|
| Size | 69.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2491a4a103761fd5db1361c04e5d2ab015101c1481992382c1fdbd110201a28
|
|
BLAKE2b-256 checksum How to use checksums |
5493ede5ab4f977ee9c3314ddceebb9451785461bbbfb43718ed0d2f17f0c30a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for bit-JCO 0.8.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.