BitcoinPython
Bitcoin Cash Python library
Quickstart
BitcoinPython is so easy to use, in fact, you can do this:
>>> from bitcoinpython import Key
>>>
>>> k = Key()
>>> k.address
'bitcoincash:qp0hamw9rpyllkmvd8047w9em3yt9fytsunyhutucx'
>>>
>>> k.get_balance('usd')
'2'
>>>
>>> # Let's donate a dollar to CoinSpice.io
>>> outputs = [
>>> ('bitcoincash:qz69e5y8yrtujhsyht7q9xq5zhu4mrklmv0ap7tq5f', 1, 'usd'),
>>> # you can add more recipients here
>>> ]
>>>
>>> k.send(outputs)
'6aea7b1c687d976644a430a87e34c93a8a7fd52d77c30e9cc247fc8228b749ff'
Done ✅ Here is the transaction:
https://explorer.bitcoin.com/bch/tx/6aea7b1c687d976644a430a87e34c93a8a7fd52d77c30e9cc247fc8228b749ff
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
- 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.
- Standard P2PKH transactions
Installation
BitcoinPython is distributed on PyPI and is available on Linux/macOS and Windows with Python 3.5+
$ pip3 install bitcoinpython
Credits
Forked from Ofek's Bit and Teran McKinney's bitcash
- ofek for the original bit codebase
- teran-mckinney for the bitcash fork
- bjarnemagnussen for his segwit code for the necessary BIP-143 support
Metadata
Release files for bitcoinpython 0.5.3
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 |
|---|---|---|---|---|
| bitcoinpython-0.5.3.tar.gz | 31.8 kB | Without provenance | Details for bitcoinpython-0.5.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bitcoinpython-0.5.3-py3-none-any.whl | Python 3 | none | any | Details for bitcoinpython-0.5.3-py3-none-any.whl |
Total release size: 71.1 kB
Release files / bitcoinpython-0.5.3.tar.gz
| Download URL | bitcoinpython-0.5.3.tar.gz |
|---|---|
| Size | 31.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e9768dd445a0ef21c2431f95388c59c7c0bb921366a4c4bbf396337e900fd6a
|
|
BLAKE2b-256 checksum How to use checksums |
8e8396b03fe4f86ca17aea69a648ca097ae48e86993ca326ca4e6d34a4f362b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Release files / bitcoinpython-0.5.3-py3-none-any.whl
| Download URL | bitcoinpython-0.5.3-py3-none-any.whl |
|---|---|
| Size | 39.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c9d47bea54e2bd13c4caa379b67a44a19d93dd8874937d6c43c50b75e1778db
|
|
BLAKE2b-256 checksum How to use checksums |
d55e81ddb6853c6abd47a229776c161795b0aabba9a82dd5c81474bd7130d347
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for bitcoinpython 0.5.3
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.