Skip to main content

XMRig-API

XMRig-API is a Python module that enables seamless interaction with the XMRig API, offering a range of features designed to enhance usability, flexibility, and reliability. Detailed documentation is available here, and can also be built locally if needed.

Getting Started

To get started with XMRig-API, visit the Usage page for a quick installation and usage guide. For an in-depth overview of the module’s capabilities, consult the reference pages available at the documentation site.

For more examples, visit the Examples page. Additionally, you can refer to the Logging section for details on how to enable and configure logging.

Features

XMRig-API includes several powerful features:

  • Support for Multiple Miners: Configure and manage multiple miners from a single instance.
  • Data Persistence: Store and manage miner data in a database to ensure resilience and prevent data loss during API or miner restarts.
  • Getting Started Examples: Practical examples to help new users quickly understand and use the tool.
  • Reference Documentation: Detailed documentation to guide you through all features and functions.
  • Logging: Configurable logging for better debugging and monitoring.
  • Custom Exceptions: Specific exceptions for handling API errors, authorization errors, and connection errors.
  • API Interaction: Fetch status, manage configurations, and control the mining process.
  • Data Caching: Retrieve and cache various properties and statistics from the XMRig miner's API responses.
  • Database Operations: Insert and delete miner-related data in the database.
  • Enhanced Data Persistence: Improved database support with more detailed data storage and retrieval options.
  • XMRig-MO API Coverage: Support for additional XMRig API data and functionalities from the MoneroOcean fork of XMRig.
  • Advanced Configuration Management: More flexible and powerful configuration management capabilities.
  • Test Coverage: A basic test suite for enhanced reliability and easier development.

Planned Features

  • Extended API Coverage: Support for additional XMRig API endpoints, data and functionalities from other forks, e.g. xmrig-proxy.
  • Performance Optimization: Enhancements to improve the performance and efficiency of the module.
  • Improved Error Handling: More robust error handling and recovery mechanisms.
  • Comprehensive Test Coverage: A robust test suite for enhanced reliability and easier development.

These features make XMRig-API an ideal solution for both miners and developers seeking a user-friendly and robust tool.

Contributing

Contributions are always welcome and greatly appreciated! To learn more about how you can contribute, check out the Contributing page.

Credits and Acknowledgments

XMRig-API originated as a fork of the python-xmrig project. While the original project provided the foundation, XMRig-API has evolved into a distinct tool with its own unique features and direction.

Special thanks to the creators of python-xmrig for their foundational work, which inspired the development of this project.

Donations

If you find XMRig-API useful and would like to support its development, consider sending a donation in XMR to the following address:

49ipjnJgoRnPsX8v5LVzUvfpSou6agomvKZnqD8zqFVqG6aqeUvKPyJ4WXhodiBPSvAuPNEmhF5QSiaJ59ZgFKwq9bXzCjz

Your support is greatly appreciated!

Metadata

Release files for xmrig-api 0.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xmrig-api 0.2.7
File Size Uploaded Provenance
xmrig_api-0.2.7.tar.gz 55.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for xmrig-api 0.2.7
File Interpreter ABI Platform
xmrig_api-0.2.7-py3-none-any.whl Python 3 none any Details

Total release size: 86.1 kB

Release files / xmrig_api-0.2.7.tar.gz

Download URL xmrig_api-0.2.7.tar.gz
Size 55.1 kB
Tags Source
SHA-256 checksum
How to use checksums
536ed233a2b234f81f54e800998ce65ea9491dcb317ff5ed4325e172d5191d64
BLAKE2b-256 checksum
How to use checksums
f2fe3dcc4c5db42381c19cb12acde412f174c73657e8928e0d714d32d0e2bc32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 11, 2025.

Transparency log

Release files / xmrig_api-0.2.7-py3-none-any.whl

Download URL xmrig_api-0.2.7-py3-none-any.whl
Size 31.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0cfa369ae21a79bd4ddad9375b20f0eb3a636a7e2ccbc24ded70c7b36223cdd2
BLAKE2b-256 checksum
How to use checksums
ec13c5b3a8ef2deaf7b01a7f8f3cc113c9486b2ee1c7e2e6644949924ab75061
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 11, 2025.

Transparency log

Security for xmrig-api 0.2.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xmrig_api-0.2.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 11, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page