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
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
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
pymempool-0.0.5.tar.gz
(14.2 kB
view details)
Built Distribution
File details
Details for the file pymempool-0.0.5.tar.gz
.
File metadata
- Download URL: pymempool-0.0.5.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed3198d0257f5406617d24532628ad2a0066f5b7f0419ee92abb2baff3abdd18 |
|
MD5 | 914b4f73c670930ec0ea3a1d854a5255 |
|
BLAKE2b-256 | a2937c015041a1a70daa441baed7f8eecb4cd57e32e270f4f8ba523d3afbf937 |
File details
Details for the file pymempool-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: pymempool-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62b3288c9c6b854796498b6c21734af31a9de47ec657eb01d9696df32fcb62d7 |
|
MD5 | e9cbd62d7e606793756a78a99857fdf5 |
|
BLAKE2b-256 | 4c99eddda463eed03f0d0864b6b0a9dba8f1d44eb8f468fb8a9c107363f3ffe2 |