Skip to main content

🐍 Pythonic wrapper for Flexpool Public API

Project description

py-flexpoolapi

PyPI Latest Release Tests Upload Python Package Documentation Status Coverage Status Join the chat at https://gitter.im/flexpool/py-flexpoolapi

Structured Python wrapper for Flexpool API.

Documentation

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


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.3.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

flexpoolapi-1.2.3-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file flexpoolapi-1.2.3.tar.gz.

File metadata

  • Download URL: flexpoolapi-1.2.3.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for flexpoolapi-1.2.3.tar.gz
Algorithm Hash digest
SHA256 e82bdf59106f705ecc4607d5531131a2444f02d2e5bdd3c95f7939034114c939
MD5 28e3856f18a7aadd86499c6cc183936c
BLAKE2b-256 3b118fc0cf02e0f7119cc150d378bc33ece93e05bb4dc974d5ce90b944fc8d91

See more details on using hashes here.

File details

Details for the file flexpoolapi-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: flexpoolapi-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 13.6 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for flexpoolapi-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 64f21395cacaf72df9faf7421b88b7ecd92ecc7f2556956af5cae2b4ed179a03
MD5 1450d2251d2cb6ad15f5de241e9c3ef1
BLAKE2b-256 b9d8cd788ca2241879f84e47dec9c4a75cb924b20c2d8c7185e9edef3066a2b5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page