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.1.tar.gz (5.1 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.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xmrig-1.1.1.tar.gz
Algorithm Hash digest
SHA256 765c99999b23187b7d5242fec7424265d0074ab00f27c93bfd892c4d643cf3c0
MD5 a51da41cd0d17be8fabfd8a2d8cb03da
BLAKE2b-256 9eb3646863fad52dc9fe80615d57ef1dca0feeb98a011fc42c7bfaa0f8841016

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xmrig-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cef51785489ae1ebc8b289dac7663804ca202b626be703f7a0eafac24ed3c290
MD5 7196816698a0b0b49b7578db8d9b339f
BLAKE2b-256 f5717b65975d30eb5123a6a6dbacf731a616e66000fdcd39a53c1b144f5e4462

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