Skip to main content

A python package for easy in line interfacing with XMRig Miner HTTP API

Project description

xmrig-python

PyPi Python PyPI - Downloads License

A wrapper for the XMRig HTTP API and client manager

Installing xmrig-python

Building From Source

git clone https://github.com/CoulterStutz/python-xmrig.git && cd python-xmrig

After installing from source, use poetry to install the package

poetry install

After that the package will be avalible to use!

Using Pip or Poetry

Using Pip

pip install xmrig

Poetry

poetry install xmrig

Example Usage

Here is a basic implementation of the API Wrapper now dubbed XMRigAPI in 1.1

import xmrig
x = xmrig.XMRigAPI(ip="127.0.0.1", port="5545", access_token="example")
print(x.hashrate)  # Prints out the current hashrate
print(x.accepted_jobs)  # Prints out the accepted_jobs counter
print(x.rejected_jobs)  # Prints out the rejected_jobs counter
print(x.current_difficulty)  # Prints out the current difficulty

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

xmrig-1.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xmrig-1.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file xmrig-1.1.0.tar.gz.

File metadata

  • Download URL: xmrig-1.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for xmrig-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b227a555deb5828104b68366b054eeef773c46d0133cd1b4217d9629dd7ca6e6
MD5 7e0126824b5d6205aac11b790f8f502e
BLAKE2b-256 f83aec5bb6d93516dc0ccbe9d32a74dec9a7f8ccfd53211e1adcfbf2b71cd487

See more details on using hashes here.

File details

Details for the file xmrig-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: xmrig-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for xmrig-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa5054a4f48ffe5ec599ab2532db208b9514694db817e74a8e0b6c9a9df950a1
MD5 f3ccff3146fd63e2097f7cebdca2c67a
BLAKE2b-256 80e389603ead36ebdf7ae545ba42ae1f81348d9e4274408af5f0765b8c915681

See more details on using hashes here.

Supported by

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