Modern pythonic bindings for the lightning network daemon
Project description
lndpy
Modern pythonic bindings for the lightning network daemon (lnd).
Features
- Standard lnd gRPC bindings built natively as part of the CI pipeline from the latest released version. No more copy-pasta.
- Supports Python 3.6+
- Pythonic interface to auto-generated gRPC functions (coming soon)
- Documentation generated automatically from gRPC binding docs (coming soon)
Installation
Install as usual with pip
or any other packaging tool of choice from PyPI:
$ pip install lndpy
Usage
Example usage:
from lndpy import Lnd
info = Lnd().get_info()
print(info)
Development
pipenv
is the recommended tool of choice for local development. First, checkout the git repository. Then, create and sync a new virtualenv with the development dependencies:
$ git clone https://github.com/yuvadm/lndpy
$ cd lndpy
$ pipenv sync --dev
As an optional step, install pre-commit hooks:
$ pipenv run pre-commit install
Next, fetch and build the lnd proto files:
$ pipenv run buildprotos
In order to build the gRPC .proto files you will also need https://github.com/googleapis/googleapis checked out next to lndpy.
Run the tests to ensure they were built properly:
$ pipenv run test
License
Copyright Ⓒ 2021 Yuval Adam
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.