Code Monkey home page Code Monkey logo

python-dogecoin's Introduction

Python Dogecoin

PyPI Downloads Documentation Status Code style: black Tests

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

๐Ÿ• ๐Ÿš€ ๐ŸŒ•

python-dogecoin's People

Contributors

adrianlzt avatar alfetopito avatar aviad avatar benfbat avatar bmwant avatar chopachom avatar driftingon avatar ghughes avatar haraldschilly avatar jcsaaddupuy avatar jkoelker avatar jurev avatar laanwj avatar munikes avatar pbharrin avatar poelzi avatar sjuxax avatar tinku99 avatar tykling avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.