🐍 Pythonic wrapper for Flexpool Public API
Project description
py-flexpoolapi
Structured Python wrapper for Flexpool API.
Installation
Install py-flexpoolapi.
Using pip
pip3 install flexpoolapi
Build from source
git clone https://github.com/flexpool/py-flexpoolapi.git
cd py-flexpoolapi
pip3 install -r requirements.txt
make install # or `python3 setup.py install`
Usage
Quick example:
>>> import flexpoolapi
# Pool
>>> flexpoolapi.pool.hashrate()
{'EU1': 21818049812367, 'US1': 19274829582345, 'total': 41092879394712}
>>> flexpoolapi.pool.miners_online()
47192
>>> flexpoolapi.pool.workers_online()
253194
# Miner
>>> miner = flexpoolapi.miner("0x8B82eE62Ae306BF1bE085458a08241759d1d7E20")
>>> miner.balance()
575311819007598793
>>> effective_hashrate, reported_hashrate = miner.current_hashrate()
(532256937, 497730709)
For better understanding, we recommend reading the documentation. If you don't like reading documentation, you can always refer to the examples directory.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flexpoolapi-1.2.5.tar.gz
(8.0 kB
view details)
Built Distribution
File details
Details for the file flexpoolapi-1.2.5.tar.gz
.
File metadata
- Download URL: flexpoolapi-1.2.5.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 405e33c6d57ff4d3c6f630a4f84a904c3a1579f9a6597ad62b3c67f98b4ccd7d |
|
MD5 | 1572041c64911069fac11ea9cc25207f |
|
BLAKE2b-256 | 233d564396e08906686ebe0534c1f542d4a0b7055d60c1368d148c87aa4bed3b |
File details
Details for the file flexpoolapi-1.2.5-py3-none-any.whl
.
File metadata
- Download URL: flexpoolapi-1.2.5-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67036e8157f5bf9285276ec00a7084f300aea590b4f015918fbeb6ec716d5c33 |
|
MD5 | 660d2962c0ea8a5ce2121469db292943 |
|
BLAKE2b-256 | a4e14d830c7cd2db31182b2fb0a0eb1c1f72840ddfeff59af3e493c3de14d0fd |