Skip to main content

Friendly Dogecoin JSON-RPC API binding for Python 3

Project description

Python Dogecoin

PyPI Downloads Documentation Status Ruff EditorConfig Tests

Stand With Ukraine

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.

Installation

pip install python-dogecoin

Usage

Connect 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.

Development

Poetry is used to manage virtual environment and project's dependencies as well as building the final package.

poetry install --all-extras

Formatting your code after adding changes

make format

Testing

To 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-integration

Much donations

If you love Dogecoin and want to support the project you can send coins to this MyDoge wallet

DAMheXnR5sw9c8UEJ2LB6twnXNrZwv14c8

🐕 🚀 🌕

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

python_dogecoin-0.2.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_dogecoin-0.2.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file python_dogecoin-0.2.0.tar.gz.

File metadata

  • Download URL: python_dogecoin-0.2.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.2 Darwin/24.5.0

File hashes

Hashes for python_dogecoin-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6c5a7726bb8887be91e61c9a7b9d9cfa06257f6b48e9dff2b400456ec6c47621
MD5 c80601be56d684affb6e4ae9892c65f3
BLAKE2b-256 740eefd5cc7b29b111eebfa8a3adcffc010c236878842f611c7d24e74afa3b6e

See more details on using hashes here.

File details

Details for the file python_dogecoin-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: python_dogecoin-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.2 Darwin/24.5.0

File hashes

Hashes for python_dogecoin-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee39c975583534448fc26f1115b969f7fe6937ad403f89c522202baf3dae789a
MD5 f1852ece7dfcc01fdfd0fb69a33bff1b
BLAKE2b-256 e41816f802c545b9f71a4903e3de651a4b3a958395983af3c037aeac84ca640f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page