Skip to main content

pyDuinoCoin is a simple python integration for the DuinoCoin REST API, that allows developers to communicate with DuinoCoin Master Server.

Project description

PyDuinoCoin

Build Status

PyDuinoCoin is a simple python integration for the DuinoCoin REST API, that allows developers to communicate with DuinoCoin Main Server.

Install

PyDuinoCoin is available on the Python Package Index (PyPI): https://pypi.python.org/pypi/pyduinocoin

You can install PyDuinoCoin using pip.

$ pip install pyduinocoin

Making queries

You can use the DuinoClient object instance to perform queries.

Most methods of the DuinoClient class have the same name as the REST API endpoints.

Check out the REST API Documentation: https://github.com/revoxhere/duco-rest-api

All responses will return a DictObj object or a list object. All dict objects in the response will be transformed into DictObj. You can access to the data of a DictObj object as you would with a dict object, or do it through the attributes. An example to illustrate this:

client = DuinoClient()
response = client.user('example')

# It is the same::
for response['balance']['username']
for response.balance['username']
for response['balance'].username
for response.balance.username # I love this one

# DictObj is iterable:
for key, value in response.items():
    print(key)
    print(value)

Examples

Usage examples can be found in the /examples folder of the project

Tests

You can run the tests via the command line.

Place your terminal at the root of the project and run the following command.

$ python -m unittest discover tests "*_test.py"

Greetings

@revoxhere by duco-rest-api for the REST API documented. @dansinclair25 by duco-rest-api for the original REST API.

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

pyduinocoin-1.0.5.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

pyduinocoin-1.0.5-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file pyduinocoin-1.0.5.tar.gz.

File metadata

  • Download URL: pyduinocoin-1.0.5.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/28.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.55.0 importlib-metadata/4.10.0 keyring/21.7.0 rfc3986/1.4.0 colorama/0.4.4 CPython/3.9.0

File hashes

Hashes for pyduinocoin-1.0.5.tar.gz
Algorithm Hash digest
SHA256 7950ba5d5fae71cd84a898cae525db3c7fe43228e3c04b045755a16f9e9c502a
MD5 e76e3a4858802a137a17ad38cdd841b9
BLAKE2b-256 378b99a0eee5bb777101acdcf95212083da60f626def0299c7a4a946bd45bc25

See more details on using hashes here.

File details

Details for the file pyduinocoin-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: pyduinocoin-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/28.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.55.0 importlib-metadata/4.10.0 keyring/21.7.0 rfc3986/1.4.0 colorama/0.4.4 CPython/3.9.0

File hashes

Hashes for pyduinocoin-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6b2971b01dbb2c2d4ca6b359e3d4af65256addf50f7c669d5042bfe445190f9e
MD5 79a16e63ee70a41e6547e922549ad820
BLAKE2b-256 745ec7910ec611fb5c8f40ea1c55e4c9a5ec314f32d8dbadb158015e57c5633a

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