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.
📖 Documentation for the library can be found here.
🍋 This project uses podmena library to add fancy icons to commit messages.
pip install python-dogecoinConnect to the 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.
Poetry is used to manage virtual environment and project's dependencies as well as building the final package.
poetry install --all-extrasFormatting your code after adding changes
make formatTo launch basic set of unittests
make tests
# or the same underlying command
poetry run pytest -sv tests/To launch integration tests you need Dogecoin server to be up and running and configured to use testnet.
poetry run pytest -sv tests/ --run-integrationIf you love Dogecoin and want to support the project you can send coins to this MyDoge wallet
DAMheXnR5sw9c8UEJ2LB6twnXNrZwv14c8
🐕 🚀 🌕