pybsv
Wrapping bitsv - https://github.com/AustEcon/bitsv
Description: An easy to use Python BSV library.
Install:
pip install pybsv
Usage:
from pybsv import PyBSVClient
# SUPPORTED_NETWORKS = [MAIN_NETWORK_TYPE, SCALING_NETWORK_TYPE, TEST_NETWORK_TYPE]
client = PyBSVClient('Your WIF Private Key Here', network=pybsv.TEST_NETWORK_TYPE)
# SUPPORTED_CURRENCIES = [BSV_CURRENCY_KEY, USD_CURRENCY_KEY]
client.get_balance(pybsv.BSV_CURRENCY_KEY)
from pybsv import PyBSVClient, BSV_CURRENCY_KEY, USD_CURRENCY_KEY, TEST_NETWORK_TYPE
# SUPPORTED_NETWORKS = [MAIN_NETWORK_TYPE, SCALING_NETWORK_TYPE, TEST_NETWORK_TYPE]
client = PyBSVClient('Your WIF Private Key Here', network=TEST_NETWORK_TYPE)
# SUPPORTED_CURRENCIES = [BSV_CURRENCY_KEY, USD_CURRENCY_KEY]
print(client.get_balance(BSV_CURRENCY_KEY))
print(client.get_address())
trans_id = client.send_bsv('Destination Wallet Address Here', 0.10, USD_CURRENCY_KEY) # Send $0.10 worth of BSV
print(trans_id)
Upload to PyPi:
python setup.py sdist
python setup.py bdist_wheel
twine upload dist/*whl dist/*gz
*Do this from the root of this project.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pybsv-0.0.5.tar.gz
(2.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pybsv-0.0.5-py3-none-any.whl
(3.1 kB
view details)
File details
Details for the file pybsv-0.0.5.tar.gz.
File metadata
- Download URL: pybsv-0.0.5.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c11a831dc7ed764343bbc3f7eeda1cf4a96a49e8d605d45a6103e115333793f2
|
|
| MD5 |
90fbc620cc25947d6a2367aa2989944c
|
|
| BLAKE2b-256 |
5c4e15c82e133735d59babe42df9481764b6bb1509370bf1f820d41e8c895aaf
|
File details
Details for the file pybsv-0.0.5-py3-none-any.whl.
File metadata
- Download URL: pybsv-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.1 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/40.6.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b9728c6b318cf6ae95016ef4af95fca67b5637707376e92bb4545f1ffc4f40e
|
|
| MD5 |
974eb72a71eb2177b50347ed9578d42a
|
|
| BLAKE2b-256 |
6d13a81fe07ada0fb5a1fbc3c7db530af71a4a1a9247592af1b7837138f393bb
|