跳转到主要内容

mempool.space的Python API

项目描述

mempool.space API包装器

codecov PyPi Version

Python3包装器,用于mempool.space API (V1)(mempool.space

安装

PyPI

pip install pymempool

或从源代码安装

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

用法

from pymempool import MempoolAPI
mp = MempoolAPI()

API文档

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

测试套件

设置测试环境

安装测试运行器依赖项

pip3 install -r requirements-test.txt

然后通过将本地开发目录作为可编辑模块安装,使pymempool python模块对测试可见/可导入

# from the repo root
pip3 install -e .

运行测试套件

运行整个测试套件

# from the repo root
pytest

运行特定的测试文件

pytest test/test_this_file.py

运行特定的测试

pytest test/test_this_file.py::test_this_specific_test

使用tox运行测试

安装tox

pip install tox

运行测试

tox

许可证

MIT

预提交配置

安装

$ pip install pre-commit

使用homebrew

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

安装git钩子脚本

$ pre-commit install

对所有文件运行

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

更新pre-commit yaml中的包版本

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

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。

源分发

pymempool-0.1.3.tar.gz (17.0 kB 查看哈希值)

上传时间

构建分发

pymempool-0.1.3-py3-none-any.whl (11.9 kB 查看哈希值)

上传时间 Python 3

支持者