🐍 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 to read the documentation. If 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.0.0b1.tar.gz
(7.8 kB
view hashes)
Built Distribution
Close
Hashes for flexpoolapi-1.0.0b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49406079b1751ab648340f4ec79b49a13f23f56b5f846b5e3ab14fb58ab1f1a5 |
|
MD5 | 9e4dcb2abe4b10af0805cd40f92ab65c |
|
BLAKE2b-256 | 66d94e064cedb3f0299bb6ebfed16660562368aee5f885097835a8fd1d762e0a |