Python to interac with Nicehash API v2
Project description
pynicehash
This is a library to interact with the nicehash API v2 in python.
feature
For now pynicehash support only rig management, get and set mining rig state.
usage
nh = pynicehash.NiceHash(api_url, organisation_id, api_key, api_secret)
rigs = nh.get_rigs()
for rig in rigs:
print (rig.name)
for device in rig.devices:
print (device.name)
configuration
When creating the NiceHash object you have to pass your connection credential. api_url you have two choice:
- https://api-test.nicehash.com for testing, in testing you probably will not have any mining rig.
- https://api2.nicehash.com for production.
organisation_id The organisation_id is the the id you can find in you page where you create you api key.
api_key You have to select miningg rig permission when creating the API key The key you generate in you account profile
api_secret The secret you generate in you account profile
screenshot
Here is a screen shot of the location for the organisation id and where to create the API key.
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
Built Distribution
File details
Details for the file pynicehash-0.0.13.tar.gz
.
File metadata
- Download URL: pynicehash-0.0.13.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d53db085a8ac9fc9131c84e2005556dbf1cb3030032386a6d792bf1d69757cca |
|
MD5 | 896b3e004cf5427149afe8546683b81a |
|
BLAKE2b-256 | 12f8c3c204208b837775ee6b3ef1cc85cce58fc5fed86a4ddda6bc983e5fdbd2 |
File details
Details for the file pynicehash-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: pynicehash-0.0.13-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c77c67f89ad6b398eaafb3b585df7f422823720aee6957331dfb7e9d951ec82 |
|
MD5 | acbf4f99fdb3e263267bbdb9899a331f |
|
BLAKE2b-256 | c3ffea472cc0f3d17d48f90b12118a24763f0de9f7023ad1f6431f2dd5c5dba3 |