turtlecoin-python
A Python wrapper for the TurtleCoin JSON-RPC API.
It integrates with Walletd and TurtleCoind and works with TurtleCoin 0.5.0.
Example
wallet.get_addresses()
'TRTLv1abcdef...'
{'id': 0, 'jsonrpc': '2.0', 'result': {'addresses': ['TRTLv2R....']}}
wallet.get_balance()
{'id': 0, 'jsonrpc': '2.0', 'result': {'availableBalance': 50, 'lockedAmount': 0}}
recipients = [{'address': 'TRTLv3abcd123...', 'amount': 50}]
wallet.send_transaction(transfers=recipients)
{'id': 0, 'jsonrpc': '2.0', 'result': {'transactionHash': 'ae57e...'}}
Installation
You can install the latest version from PyPI:
$ pip3 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 run:
$ pipenv run python setup.py upload
This will also create a git tag with the version number.
Metadata
Release files for turtlecoin 0.2.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 | Actions |
|---|---|---|---|---|
| turtlecoin-0.2.2.tar.gz | 9.8 kB | Without provenance | Details for turtlecoin-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| turtlecoin-0.2.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for turtlecoin-0.2.2-py2.py3-none-any.whl |
Total release size: 24.8 kB
Release files / turtlecoin-0.2.2.tar.gz
| Download URL | turtlecoin-0.2.2.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19fae9099e38098bcf307e980cf826f2df12edc386f55333d071f878949dc664
|
|
BLAKE2b-256 checksum How to use checksums |
9cad3ae4ca2fb8e69a9215637aebaf464179297fdd88e88f2f7ec6b901b6399c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.2 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4
|
Release files / turtlecoin-0.2.2-py2.py3-none-any.whl
| Download URL | turtlecoin-0.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
abe2d99d0877b1d2465c7bcf6d229f645b2a1612b3bb55e49d627b8b85847cef
|
|
BLAKE2b-256 checksum How to use checksums |
61193370dc9a13ceda498370258fd722b7f048fb282f436aa5eef83b6b254915
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.2 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4
|
Security for turtlecoin 0.2.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.