A Python wrapper for the TurtleCoin JSON-RPC interface
Project description
A Python wrapper for the TurtleCoin JSON-RPC API.
It integrates with Walletd and TurtleCoind and works with TurtleCoin 0.4.2.
Example
wallet.get_address()
'TRTLv1abcdef...'
wallet.get_balance()
{'availableBalance': 50, 'lockedAmount': 0}
recipients = [{'address': 'TRTLv3abcd123...', 'amount': 50}]
wallet.send_transaction(transfers=recipients)
'dc1221181e574...'
Installation
You can install the latest version from PyPI:
$ pip install turtlecoin
Documentation
The documentation is available at http://turtlecoin-python.readthedocs.io
Developer setup
Clone the repo and install the dependencies with …pipenv:
$ git clone ...
$ cd turtlecoin-python
$ pipenv install --dev
To generate the HTML documentation you need to have the turtlecoin module in your PYTHONPATH. This is used to automatically generate the api docs. Afterwards you can run the makefile target:
$ pipenv run python setup.py develop
$ pipenv run make html
The documentation on readthedocs is automatically updated on each push to the master branch (via webhook).
To release a new version on PyPI, increment the version number in turtlecoin/__version__.py and docs/conf.py and run:
$ pipenv run python setup.py upload
This will also create a git tag with the version number.
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
Built Distribution
File details
Details for the file turtlecoin-0.0.2.tar.gz
.
File metadata
- Download URL: turtlecoin-0.0.2.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d007c0c1d7f70105ef7e9b01d9dd1c22b269c401a5ca92ab65d1cef1324d1b7d |
|
MD5 | d4a136eaa9153fc7fd7011a77d670601 |
|
BLAKE2b-256 | 29b4a29e05b7affdcad149eb2834e28a6c6142efc019b9d99c9c31a93358cfde |
File details
Details for the file turtlecoin-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: turtlecoin-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 103dbc98730ade930160e89bd44be92d9d947fd4cc8188fcbff0f6a0ea28673f |
|
MD5 | 6964058072b29dcf4f0b154cf0f358a6 |
|
BLAKE2b-256 | 9debe9c3a8ce297b43a3e22e6154ed42dc230dbd31bdca2aa21820298c7ebe64 |