Skip to main content

Python Api for mempool.space

Project description

mempool.space API wrapper

Python3 wrapper around the mempool.space API (V1)

Installation

PyPI

pip install pymempool

or from source

git clone https://github.com/holgern/pymempool.git
cd pymempool
python3 setup.py install

Usage

from pymempool import MempoolAPI
mp = MempoolAPI()

API Documentation

https://mempool.space/docs/api/rest

Test Suite

Set up the test environment

Install the test-runner dependencies:

pip3 install -r requirements-test.txt

Then make the pymempool python module visible/importable to the tests by installing the local dev dir as an editable module:

# from the repo root
pip3 install -e .

Running the test suite

Run the whole test suite:

# from the repo root
pytest

Run a specific test file:

pytest test/test_this_file.py

Run a specific test:

pytest test/test_this_file.py::test_this_specific_test

Running tests with tox

Install tox

pip install tox

Run tests

tox

License

MIT

Pre-commit-config

Installation

$ pip install pre-commit

Using homebrew:

$ brew install pre-commit
$ pre-commit --version
pre-commit 2.10.0

Install the git hook scripts

$ pre-commit install

Run against all the files

pre-commit run --all-files
pre-commit run --show-diff-on-failure --color=always --all-files

Update package rev in pre-commit yaml

pre-commit autoupdate
pre-commit run --show-diff-on-failure --color=always --all-files

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

pymempool-0.0.4.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

pymempool-0.0.4-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file pymempool-0.0.4.tar.gz.

File metadata

  • Download URL: pymempool-0.0.4.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pymempool-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7d1f763344bff8f53938c8af6187c56a3f1dc68cc374357e3f24e68d0dfa73fb
MD5 89bc71722b2633e2f3a7e951119edf3f
BLAKE2b-256 4a952574b837c3b3e775117fcc1473f08768456412b6b44f6dbd4d7a19438bcc

See more details on using hashes here.

File details

Details for the file pymempool-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pymempool-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pymempool-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fcd376ea01077190c643de902c2bdd0c24841e2bbb704ab2dc369a992733b388
MD5 8fb0032e65763b2ee8b8fa20b4658364
BLAKE2b-256 89247ccfb1f09f30e633272ed07ec45f0cc16ac9a26cf0c12e604376520e776a

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