btclib-libsecp256k1-0.2.1
توضیحات
Simple python bindings to libsecp256k1
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | btclib-libsecp256k1-0.2.1 |
| نام | btclib-libsecp256k1 |
| نسخه کتابخانه | 0.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Giacomo Caironi |
| ایمیل نویسنده | giacomo.caironi@gmail.com |
| آدرس صفحه اصلی | https://btclib.org |
| آدرس اینترنتی | https://pypi.org/project/btclib-libsecp256k1/ |
| مجوز | MIT |
# btclib_libsecp256k1
[](https://pypi.python.org/pypi/btclib_libsecp256k1/)
[](https://pypi.python.org/pypi/btclib_libsecp256k1/)
[](https://pepy.tech/project/btclib_libsecp256k1)
[](https://pypi.python.org/pypi/btclib_libsecp256k1/)
[](https://github.com/btclib-org/btclib_libsecp256k1/blob/master/LICENSE)
[](https://pycqa.github.io/isort/)
[](https://github.com/psf/black)
[](https://flake8.pycqa.org)
[](https://github.com/PyCQA/pylint)
[](http://mypy-lang.org/)
[](https://github.com/microsoft/pyright)
[](https://github.com/PyCQA/bandit)
[](https://results.pre-commit.ci/latest/github/btclib-org/btclib_libsecp256k1/master)
[](https://github.com/btclib-org/btclib_libsecp256k1/actions/workflows/build.yml)
[](https://github.com/btclib-org/btclib_libsecp256k1/actions/workflows/test.yml)
[](https://twitter.com/intent/follow?screen_name=btclib)
---
[Browse GitHub Code Repository](https://github.com/btclib-org/btclib_libsecp256k1/)
---
Simple python bindings to
[libsecp256k1](https://github.com/bitcoin-core/secp256k1)
([v0.2.0](https://github.com/bitcoin-core/secp256k1/releases/tag/v0.2.0)).
It is intended to be used with the
[btclib](https://github.com/btclib-org/btclib) library.
To install (and/or upgrade):
python -m pip install --upgrade btclib_libsecp256k1
## Build, test, develop, and contribute
Some development tools are required to develop and test btclib_libsecp256k1;
they can be installed with:
python -m pip install --upgrade -r requirements-dev.txt
The btclib_libsecp256k1 project includes
[libsecp256k1](https://github.com/bitcoin-core/secp256k1)
as submodule in the secp256k1 folder.
By default, when cloning a project you get the directories that contain
submodules, but none of the files within them.
You must run `git submodule init` to initialize
your local configuration file,
and `git submodule update` to fetch the submodule data
and check out the appropriate commit.
<!-- markdownlint-disable MD013 -->
$ git submodule init
Submodule 'secp256k1' (git@github.com:bitcoin-core/secp256k1.git) registered for path 'secp256k1'
$ git submodule update
Cloning into 'secp256k1'...
<!-- markdownlint-enable MD013 -->
To build:
python setup.py sdist
python setup.py bdist_wheel --py-limited-api=cp36
Developers might also consider installing btclib_libsecp256k1 in editable way::
python -m pip install --upgrade -e ./
To test:
pytest
To measure the code coverage provided by tests:
pytest --cov-report term-missing:skip-covered --cov=btclib_libsecp256k1
Pre-commit hooks are provided, please check before a PR
pre-commit run --all-files
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0.0 | cffi |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl btclib-libsecp256k1-0.2.1:
pip install btclib-libsecp256k1-0.2.1.whl
نصب پکیج tar.gz btclib-libsecp256k1-0.2.1:
pip install btclib-libsecp256k1-0.2.1.tar.gz