dragon-rest
Python wrapper for DragonMint/Innosilicon REST API
If you use Halong Mining's DragonMint or Innosilicon miners, and would like to interact with it programmatically using Python, then look no further! I have implemented the full HTTP REST API for your enjoyment and pleasure.
Quickstart
Install pip package
$ pip install dragon-rest
Write the Python codes
from dragon_rest.dragons import DragonAPI
dragon_host = '10.0.0.1'
api = DragonAPI(dragon_host,
username='admin',
password='dragonadmin')
r = api.summary() # get summary
print(r)
api.upgradeUpload('t1_20180515_060842.swu') # upgrade firmware
# now you're in the big leagues, boye
Reference
API documentation: https://dragon-rest.readthedocs.io/
For details on the DragonMint API, see: https://halongmining.com/api/
Metadata
Release files for dragon-rest 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dragon-rest-0.2.3.tar.gz | 9.0 kB | Without provenance | Details for dragon-rest-0.2.3.tar.gz |
Release files / dragon-rest-0.2.3.tar.gz
| Download URL | dragon-rest-0.2.3.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57bf49617c0a488462c597ce622f61ac607cdc5bb01471d2b26c8327523194ec
|
|
BLAKE2b-256 checksum How to use checksums |
a5d942eb96833dcfc1a2afe1d86058ba8137fe833f5017570d2ccf816bdb6974
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Security for dragon-rest 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.