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.1.3.tar.gz
(17.0 kB
view details)
Built Distribution
pymempool-0.1.3-py3-none-any.whl
(11.9 kB
view details)
File details
Details for the file pymempool-0.1.3.tar.gz
.
File metadata
- Download URL: pymempool-0.1.3.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0fd101fd611196cb54088df5cff146c8194bc2cf78d7d42b0c4b057c2c9dc4a |
|
MD5 | 0ffa019e490f355d61436b06e20c5e30 |
|
BLAKE2b-256 | c77b4b25805099b9ca5bc1e55737e910e9c3750ef816ad5af2d4ddbc584caec9 |
File details
Details for the file pymempool-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pymempool-0.1.3-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16773d955f142fb3ed0b3bd69dde0c32962bec969e9485d84ef587eddd65fa2d |
|
MD5 | 64609032d7af755ad9b357175c0a5da4 |
|
BLAKE2b-256 | 2176cdd5bab0e138ce24589937a287013f9ff5eb55f424b53a47fe9161f7ecea |