Skip to main content

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

MIT License

Copyright Ⓒ 2021 Yuval Adam

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

lndpy-0.1.0.tar.gz (110.7 kB view hashes)

Uploaded Source

Built Distribution

lndpy-0.1.0-py3-none-any.whl (121.1 kB view hashes)

Uploaded Python 3

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