Python wrapper for DragonMint/Innosilicon REST API
Project description
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/
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
dragon-rest-0.2.2.tar.gz
(8.9 kB
view details)
File details
Details for the file dragon-rest-0.2.2.tar.gz
.
File metadata
- Download URL: dragon-rest-0.2.2.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 778f22da5c421f1353e02d47682a593fbd890a010006db15853815ec9719dab5 |
|
MD5 | b07f80ea3b7298a87955340516a53cf5 |
|
BLAKE2b-256 | 32d059e1822498886c63b0dd3057ac4f93e44dcb2501a021988101c9201280d6 |