Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brndnmtthws/dragon-rest
🐲 Python wrapper for DragonMint/Innosilicon REST API 🐉
https://github.com/brndnmtthws/dragon-rest
dragon-rest dragonmint dragonmint-api dragonmint-t1 halongmining innosilicon
Last synced: 3 months ago
JSON representation
🐲 Python wrapper for DragonMint/Innosilicon REST API 🐉
- Host: GitHub
- URL: https://github.com/brndnmtthws/dragon-rest
- Owner: brndnmtthws
- License: apache-2.0
- Created: 2018-06-10T14:29:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-06T16:17:44.000Z (almost 3 years ago)
- Last Synced: 2024-10-06T12:37:20.511Z (3 months ago)
- Topics: dragon-rest, dragonmint, dragonmint-api, dragonmint-t1, halongmining, innosilicon
- Language: Python
- Homepage: http://dragon-rest.rtfd.io/
- Size: 902 KB
- Stars: 7
- Watchers: 4
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/brndnmtthws/dragon-rest.svg?branch=master)](https://travis-ci.org/brndnmtthws/dragon-rest) [![Maintainability](https://api.codeclimate.com/v1/badges/186a969e83fe6608c02d/maintainability)](https://codeclimate.com/github/brndnmtthws/dragon-rest/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/186a969e83fe6608c02d/test_coverage)](https://codeclimate.com/github/brndnmtthws/dragon-rest/test_coverage) [![PyPI version](https://badge.fury.io/py/dragon-rest.svg)](https://badge.fury.io/py/dragon-rest) [![Documentation Status](https://readthedocs.org/projects/dragon-rest/badge/?version=latest)](https://dragon-rest.readthedocs.io/en/latest/?badge=latest) [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=brndnmtthws/dragon-rest)](https://dependabot.com)
# [dragon-rest](https://dragon-rest.readthedocs.io/en/latest/)
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](/resting-dragon.png?raw=true)
## Quickstart
### Install pip package
```
$ pip install dragon-rest
```### Write the Python codes
```python
from dragon_rest.dragons import DragonAPIdragon_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/