Skip to main content

Bitcoin Cash made easier.

Project description

BitCash

Bitcoin Cash made easy

BitCash PyPi version Build status Code Coverage Python Versions MIT license

Forked from Ofek's awesome Bit library.

BitCash is so easy to use, in fact, you can do this:

>>> from bitcash 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
  • Access to the blockchain (and testnet chain) through multiple APIs for redundancy
  • Exchange rate API, with optional caching
  • Compressed public keys by default
  • Multiple representations of private keys; WIF, PEM, DER, etc.
  • Standard P2PKH transactions

If you are intrigued, continue reading. If not, continue all the same!

Installation

BitCash 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 bitcash  # pip3 if pip is Python 2 on your system.

Documentation

Docs are hosted by Github Pages and are automatically built and published by Travis after every successful commit to BitCash's master branch.

Read the documentation

Credits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitcash-0.5.3.4.tar.gz (33.1 kB view details)

Uploaded Source

Built Distribution

bitcash-0.5.3.4-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

File details

Details for the file bitcash-0.5.3.4.tar.gz.

File metadata

  • Download URL: bitcash-0.5.3.4.tar.gz
  • Upload date:
  • Size: 33.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.3

File hashes

Hashes for bitcash-0.5.3.4.tar.gz
Algorithm Hash digest
SHA256 a8d6364268df07b90d2f6cedda2e5f0386e213332672207c097f11669823d746
MD5 91275992c43f33a3b5d1d3ed3eeea16d
BLAKE2b-256 43174341c210883cecba84ad442a1c583a32b10e780eeb532d2906c117ac1341

See more details on using hashes here.

File details

Details for the file bitcash-0.5.3.4-py3-none-any.whl.

File metadata

  • Download URL: bitcash-0.5.3.4-py3-none-any.whl
  • Upload date:
  • Size: 40.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.3

File hashes

Hashes for bitcash-0.5.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4fde11ec53b6f045d5c013ff79831bfc66e0b6dab974925491b1c9f31e1fe680
MD5 24a03a8d82112d4ad55ca680fc2927f7
BLAKE2b-256 9a7e58933a7b4e477870376b5f55a256cd408ed660ddc2fc7cd71789674c2be8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page