Skip to content

๐Ÿฒ Python wrapper for DragonMint/Innosilicon REST API ๐Ÿ‰

License

Notifications You must be signed in to change notification settings

weyzem/dragon-rest

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

68 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Build Status Maintainability Test Coverage PyPI version Documentation Status Dependabot Status

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.

Dragon at rest

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/

About

๐Ÿฒ Python wrapper for DragonMint/Innosilicon REST API ๐Ÿ‰

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%