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
Metadata
Release files for lndpy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| lndpy-0.1.0.tar.gz | 110.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lndpy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 231.8 kB
Release files / lndpy-0.1.0.tar.gz
| Download URL | lndpy-0.1.0.tar.gz |
|---|---|
| Size | 110.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7641554b536431b94f7c4f92dba97fb157897b964f4daef97786aee13a5ee6c1
|
|
BLAKE2b-256 checksum How to use checksums |
0006b5c7dff4e3aac651ae35a3a9db12fe337433a2399ce9ca91961236f9f5cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / lndpy-0.1.0-py3-none-any.whl
| Download URL | lndpy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 121.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc32172bfc66217b3495e760a572ab8c2e8fa03927134362b4e3d6ae126018dd
|
|
BLAKE2b-256 checksum How to use checksums |
9c168cbae318ebc71a493a9054627e110d647aeda94dff3803c5e68bb56decc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for lndpy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.