A python package for the Duino Coin REST API
Project description
duco
DUCO (Duino Coin) is a cryptocurrency created to be mined on small low powered, low cost devices such as Arduino (hence (Ar)Duino Coin). More about the coin can be found on the website.
This is a simple Python package that helps you connect to the REST API, allowing you to get all data about current miners, balances, transactions, and server statistics.
Installation
python3 -m pip install duco
Usage
from duco import DUCO
d = DUCO()
balances = d.fetch_balances()
Fetch Miners
-
Description: The function used to retrieve all miners from the REST API.
-
Signature:
fetch_miners(self, filters: List[Filter] = None) -
Arguments:
filters: a list ofFilterobjects used to narrow down results. (Optional)
- Returns:
Fetch Miner
- Description:
The function used to retrieve a single miner by it's
threadidfrom the REST API. - Signature:
def fetch_miner(self, threadid: str) - Arguments:
-
threadid: the thread id of the miner you wish to get - Returns:
- a
Minerobject
Fetch Transactions
- Description: The function used to retrieve all transactions from the REST API.
- Signature:
def fetch_transactions(self, filters: List[Filter] = None, sort: Sort = None, limit: Limit = None) - Arguments:
-
filters: a list ofFilterobjects used to narrow down results. (Optional) -sort: a singleSortobject detailing how the response should be sorted. (Optional) -limit: a singleLimitobject detailing how many objects should be in the response. (Optional) - Returns:
- a list of
Transactionobjects
Fetch Transaction
- Description:
The function used to retrieve a single transaction by it's
hashfrom the REST API. - Signature:
def fetch_transaction(self, hash_id: str) - Arguments:
-
hash_id: the hash of the transaction you wish to get - Returns:
- a
Transactionobject
Fetch Balances
-
Description: The function used to retrieve all balances from the REST API.
-
Signature:
def fetch_balances(self, filters: List[Filter] = None, sort: Sort = None, limit: Limit = None) -
Arguments: -
filters: a list ofFilterobjects used to narrow down results. (Optional) -sort: a singleSortobject detailing how the response should be sorted. (Optional) -limit: a singleLimitobject detailing how many objects should be in the response. (Optional) -
Returns: - a list of
Balanceobjects
Fetch Balance
- Description: The function used to retrieve a single balance for a user from the REST API.
- Signature:
def fetch_balance(self, username: str) - Arguments:
-
username: the username of the balance you wish to get - Returns:
- a
Balanceobject
Fetch Statistics
- Description: The function used to retrieve the statistics from the REST API.
- Signature:
def fetch_statistics(self) - Returns:
- a
Statisticsobject
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file duco-0.1.12.tar.gz.
File metadata
- Download URL: duco-0.1.12.tar.gz
- Upload date:
- Size: 5.9 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.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fedfeed5c8b42dd9d9a19e22c2f088fe4c44a2b0bc2d6dd530392f2b462ea1a
|
|
| MD5 |
533a65ce4e015aadb95a13ccf6467049
|
|
| BLAKE2b-256 |
8757077da29123fe958d2d6884c18d563003bb594ca388e6a137bb9515c3f524
|
File details
Details for the file duco-0.1.12-py3-none-any.whl.
File metadata
- Download URL: duco-0.1.12-py3-none-any.whl
- Upload date:
- Size: 6.7 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.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0030788a3c72e328907d2a714c3684c9d402add857d146023ffadc36e54a49f7
|
|
| MD5 |
da6601b84d87168035c6f5ea38f63349
|
|
| BLAKE2b-256 |
e8c217f6ce1afeefd7220f2ab5e52405aecb6076b499dd7b66cddc1796b18c53
|