🐍 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
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 flexpoolapi-1.2.7.post2.tar.gz.
File metadata
- Download URL: flexpoolapi-1.2.7.post2.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a78478812c022f926a93d5a05cf4f32eb496185787b393ade2d0e744466e99b9
|
|
| MD5 |
7dce8e75fff5d7de2f3b8017e68194ff
|
|
| BLAKE2b-256 |
198a1aa94a43648cbbfb37ea3f4087e3ceb58d241eb013695ad5ed44838ed6c9
|
File details
Details for the file flexpoolapi-1.2.7.post2-py3-none-any.whl.
File metadata
- Download URL: flexpoolapi-1.2.7.post2-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8d2ed68e258b7b945d91a684f59eaee68385cabec43bbfb21ab5a04525ec261
|
|
| MD5 |
6bb7a7d24577c70ca0856d88ea3c23b3
|
|
| BLAKE2b-256 |
25c0e12762ab5f19632cfe8d87f61650f51858dbb3d6a0853b39de2d53b25039
|