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
Metadata
Release files for flexpoolapi 1.2.7.post2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flexpoolapi-1.2.7.post2.tar.gz | 8.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flexpoolapi-1.2.7.post2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.0 kB
Release files / flexpoolapi-1.2.7.post2.tar.gz
| Download URL | flexpoolapi-1.2.7.post2.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a78478812c022f926a93d5a05cf4f32eb496185787b393ade2d0e744466e99b9
|
|
BLAKE2b-256 checksum How to use checksums |
198a1aa94a43648cbbfb37ea3f4087e3ceb58d241eb013695ad5ed44838ed6c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / flexpoolapi-1.2.7.post2-py3-none-any.whl
| Download URL | flexpoolapi-1.2.7.post2-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8d2ed68e258b7b945d91a684f59eaee68385cabec43bbfb21ab5a04525ec261
|
|
BLAKE2b-256 checksum How to use checksums |
25c0e12762ab5f19632cfe8d87f61650f51858dbb3d6a0853b39de2d53b25039
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|