Pity: Peercoin made easy
Forked from Ofek's awesome Bit library.
Pity is based on Bit, the Python's fastest Bitcoin library and was designed from the beginning to feel intuitive, be effortless to use, and have readable source code.
Pity is so easy to use, in fact, you can do this:
>>> from bit import Key
>>>
>>> my_key = Key(wif="...")
>>> my_key.get_balance('eur')
'12.51'
>>> # Let's pity the fool! Umm,... Let's donate!
>>> outputs = [
>>> # the Peercoin Foundation
>>> ('p92W3t7YkKfQEPDb7cG9jQ6iMh7cpKLvwK', 10, 'usd'),
>>> # Beer for willy, PeerExplorer <https://peercoinexplorer.net/charts/>
>>> ('PA3VZmupxdsX5TuS1PyXZPsbbhZGT2htPz', 3, 'eur')
>>> ]
>>>
>>> my_key.send(outputs)
'1da615c003bb1bd98354378fa5e95287993dab152d876fa0cc3980566ce6d7ee'
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 pity
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
- ofek for the original bit codebase.
- backpacker for help with the porting.
- Additional
Metadata
Release files for pity 0.5.2
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 | |
|---|---|---|---|---|
| pity-0.5.2.tar.gz | 52.3 kB | Without provenance | Details |
Release files / pity-0.5.2.tar.gz
| Download URL | pity-0.5.2.tar.gz |
|---|---|
| Size | 52.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0bd32a3a0cce05b81928f8db288cc8fb1982a6817b434fbd61375ce8ce28ef8
|
|
BLAKE2b-256 checksum How to use checksums |
1802da88513dfbc5d0d2d4d474018eedd581dc11218567c378648c7e21b967ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.7
|
Security for pity 0.5.2
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.