Skip to main content

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:

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. api_creation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynicehash-0.0.6.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

pynicehash-0.0.6-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pynicehash-0.0.6.tar.gz.

File metadata

  • Download URL: pynicehash-0.0.6.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0rc1

File hashes

Hashes for pynicehash-0.0.6.tar.gz
Algorithm Hash digest
SHA256 cf9f35779d7df6bd6017185e0f068aae813daabfd84ed9f69ab83754ed4ca17a
MD5 35a1a6e3e2e7b8a97dae50d4ec305df5
BLAKE2b-256 6f5767daf5bdb2928c38274b902801ae0da917cf93b56fe9d0f8c3e2db7ce180

See more details on using hashes here.

File details

Details for the file pynicehash-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: pynicehash-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0rc1

File hashes

Hashes for pynicehash-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9c2e9b9dcf03393db3b6a9ee4f13f338cb10a7f2acfed88c6ce71a4079adfca6
MD5 c09106c39e9f4987f0d17c77241580f8
BLAKE2b-256 d806e95f0c2024de4edd2ff2f375db9f26a0c717feb0e30c9e771e21960d45d0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page