Python wrapper for DragonMint T1 REST API
Project description
dragon-rest
Python wrapper for DragonMint T1 REST API
If you use Halong Mining's DragonMint T1, 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.1.0.tar.gz
(4.6 kB
view details)
File details
Details for the file dragon-rest-0.1.0.tar.gz
.
File metadata
- Download URL: dragon-rest-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | def8cd061d88556576bf28c3b5f733f9263e16ad0eb42696da20f38a7f8d62e9 |
|
MD5 | 65bf5808055b88302c7987c1f6570034 |
|
BLAKE2b-256 | 24f9e468f6b76713b74159226be1bf607f1275aa3b57adda38b301f224afdca0 |