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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lndpy-0.1.0.tar.gz.
File metadata
- Download URL: lndpy-0.1.0.tar.gz
- Upload date:
- Size: 110.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7641554b536431b94f7c4f92dba97fb157897b964f4daef97786aee13a5ee6c1
|
|
| MD5 |
c582540bf473dfedfdc13b3b82800426
|
|
| BLAKE2b-256 |
0006b5c7dff4e3aac651ae35a3a9db12fe337433a2399ce9ca91961236f9f5cc
|
File details
Details for the file lndpy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lndpy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 121.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc32172bfc66217b3495e760a572ab8c2e8fa03927134362b4e3d6ae126018dd
|
|
| MD5 |
0b2fa1202dd7522bc3b29e80a17e0443
|
|
| BLAKE2b-256 |
9c168cbae318ebc71a493a9054627e110d647aeda94dff3803c5e68bb56decc6
|