Friendly Dogecoin JSON-RPC API binding for Python 3
Project description
Python Dogecoin
This is a fork of a dogecoin-python library focused on a Python 3 support only. Note that you are looking for python-dogecoin
version on PyPI instead of original dogecoin-python
.
This package allows performing commands such as listing the current balance and sending coins to the Satoshi (original) client from Python. The communication with the client happens over JSON-RPC.
:book: Documentation for the library can be found here.
:lemon: This project uses podmena library to add fancy icons to commit messages.
Installation
$ pip install python-dogecoin
Usage
Connect to blockchain daemon locally and make a simple request
"""
Checks whether address provided is a valid Dogecoin wallet
"""
import dogecoinrpc
client = dogecoinrpc.connect_to_local()
address = 'D6cobCBMtRoJNw8kxAWJ8GtRbbaxSAB37u'
result = conn.validateaddress(address)
print(result)
For other examples and code snippets check documentation.
Development
pyenv is used to easily create virtual environment for the development. Use pyenv-installer to quickly setup it locally.
$ pyenv virtualenv 3.8.1 python-dogecoin
$ pyenv activate python-dogecoin
$ pip install --upgrade pip
$ pip install -e .
Formatting your code after adding changes
$ pyenv activate python-dogecoin
$ pip install -e ".[dev]"
$ make format
Testing
To launch basic set of unittests
$ pyenv activate python-dogecoin
$ pip install -e ".[test]"
$ pytest -sv tests/
$ flake8 . # lint code to spot any other errors
To launch integration tests you need Dogecoin server to be up and running and configured to use testnet
.
$ pytest -sv tests/ --run-integration
Much donations
If you love Dogecoin and want to support the project you can send coins to this wallet
D7DA74qzZUyh9cctCxWovPTEovUSjGzL2S
:dog2: :rocket: :full_moon:
Project details
Release history Release notifications | RSS feed
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 python-dogecoin-0.0.4.tar.gz
.
File metadata
- Download URL: python-dogecoin-0.0.4.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 008580f2cb9a52a9ad18ecc8f03b913881f3a236bb8ba2b755ed6921d6404d38 |
|
MD5 | 03da1acf3294df33ae697e900eee1827 |
|
BLAKE2b-256 | 87b0a095dab818497d1b0d1a2c464acd71421de66868ca6b2bd105747b1c37d7 |
File details
Details for the file python_dogecoin-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: python_dogecoin-0.0.4-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42613957d483c347a07fdfda369671b2e614e47497afc9c8890e10487020d8ce |
|
MD5 | 5d39e0db5896351fadefde1243c521ec |
|
BLAKE2b-256 | 474f0bec980cdcdf8bae8483211d8da1ce857a9f11f893712f6a519efc5bfc61 |