Allows interacting with the P2Pool API.
Project description
P2Pool API
This module provides the P2PoolAPI object to allow interacting with the P2Pool API.
Installation
The module can be installed from PyPi or Github with pip:
pip install p2pool-api
# or to install from the Github repository
pip install p2pool-api@git+https://github.com/hreikin/p2pool-api.git@main
Usage
API data is updated on initialization and can be updated individually or altogether using the relevant methods. Data is also available as properties to allow accessing the cached endpoint data all at once or as individual items.
import p2pool_api
api = "/path/to/p2pool/api"
x = p2pool_api.P2PoolAPI(api)
print(x._local_stratum) # Print entire reponse
print(x.local_p2p_uptime) # Print property representing individual data from the API
x.get_stats_mod() # Update individual `stats_mod` endpoint
x.get_all_data() # Update all endpoints at once
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file p2pool_api-0.0.1.tar.gz.
File metadata
- Download URL: p2pool_api-0.0.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bddcd9c3cf9242a16f3acb9d48c740428a27de929c761573598085c9d080f87a
|
|
| MD5 |
ec9064197524fcc93f6e8989322db993
|
|
| BLAKE2b-256 |
5a321a5d63d892998847465a0bea15a95e1e1150c738188e5df158d809585c30
|
File details
Details for the file p2pool_api-0.0.1-py3-none-any.whl.
File metadata
- Download URL: p2pool_api-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0755885ad2a2f70498330205e603023e1dfcf7d3b292eb3b59d8e2ec6a9c222f
|
|
| MD5 |
960b35ab77c650e13eb56bb7983bde62
|
|
| BLAKE2b-256 |
1b9cf9fe120aa0954f0c36f003cf5e5051fba5d76ac8b76b7b4585652e5020f6
|