Skip to main content

Simple python bindings to libsecp256k1

Project description

btclib_libsecp256k1

python pypi downloads status license imports: isort code style: black lint: flake8 lint: pylint type-check: mypy type-check: pyright security: bandit pre-commit.ci status build test

Follow on Twitter


Browse GitHub Code Repository


Simple python bindings to libsecp256k1 (v0.2.0). It is intended to be used with the 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 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.

$ git submodule init
Submodule 'secp256k1' (git@github.com:bitcoin-core/secp256k1.git) registered for path 'secp256k1'
$ git submodule update
Cloning into 'secp256k1'...

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

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

btclib_libsecp256k1-0.2.1.tar.gz (7.7 MB view hashes)

Uploaded Source

Built Distributions

btclib_libsecp256k1-0.2.1-py3-none-win_amd64.whl (2.7 MB view hashes)

Uploaded Python 3 Windows x86-64

btclib_libsecp256k1-0.2.1-py3-none-manylinux2010_x86_64.whl (1.3 MB view hashes)

Uploaded Python 3 manylinux: glibc 2.12+ x86-64

btclib_libsecp256k1-0.2.1-py3-none-any.whl (1.2 MB view hashes)

Uploaded Python 3

btclib_libsecp256k1-0.2.1-cp36-abi3-manylinux2010_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.12+ x86-64

btclib_libsecp256k1-0.2.1-cp36-abi3-macosx_10_15_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.6+ macOS 10.15+ x86-64

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