lncm/lnd-rpc
TODO: Describe the point of this repo better
tl;dr
You can:
- download
- generate-go
- generate-python
Each of these is possible in two ways:
- Run the script directly
- Via
docker run
Download all .protos
Run directly
./scripts/download --help
download v1.0.0
Download all .proto files necessary to build lnd's gRPC client libraries
Usage: ./scripts/download [options] LND_VERSION
Where LND_VERSION is in a form: [v]MAJOR.MINOR.PATCH (ex: v0.9.0), or "all" to download all versions
Options:
-h, --help, help Show this help message
-G, --no-google Skip download of google/api/* and google/protobuf/*
-S, --strip-version Don't include lnd version in the path (only works if LND_VERSION != "all")
-o, --output Download to a specified dir (will be created, if doesn't exist)
Examples:
./scripts/download all # Download all lnd versions, and all google/* protos
./scripts/download --no-google v0.4.2 # Only download protos for lnd v0.4.2, and no google/* protos
./scripts/download -G -S -o=~/last-lnd/ v0.9.0 # Only download protos for lnd v0.9.0, and save them to last-lnd/
# in user's HOME directory w/o the /LND_VERSION/ segment in path
github: github.com/lncm/lnd-rpc/
Run in Docker
NOTE: this one requires DOCKER_BUILDKIT=1 due to --target= being used
# Build with:
DOCKER_BUILDKIT=1 docker build . \
--target=protos-downloader
--tag=lnd-rpc-downloader
# Run with:
docker run --rm -it \
--volume=$(pwd)/:/protos/ \
lnd-rpc-downloader # [VERSION|all]
Generate Go
Run directly
./scripts/generate-go --help
generate-go v1.0.0
Compile all .proto definitions into importable .go files
Usage: generate-go [options] LND_VERSION
Where LND_VERSION is in a form: [v]MAJOR.MINOR.PATCH (ex: v0.9.0), or "all" to generate for all versions
Options:
-h, --help, help Show this help message
-S, --strip-version Don't include lnd version in the path (only works if LND_VERSION != "all")
-o, --output Save generated files to a specified dir (created, if doesn't exist)
Examples:
./generate-go all
./generate-go -o /tmp/last/ v0.9.0
github: github.com/lncm/lnd-rpc/
Run in Docker
docker build . \
--build-arg="LANG=go" \
--tag=lnd-rpc-go
docker run --rm -it \
--volume=$(pwd):/data/go/ \
lnd-rpc-go # [VERSION|all]
Metadata
Release files for lnd-rpc 0.6.1.post3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lnd-rpc-0.6.1.post3.tar.gz | 57.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lnd_rpc-0.6.1.post3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 110.7 kB
Release files / lnd-rpc-0.6.1.post3.tar.gz
| Download URL | lnd-rpc-0.6.1.post3.tar.gz |
|---|---|
| Size | 57.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c60d05d27225c652c4de9ffccf51b540549a134a031039ac3d3a169ae1d36c9
|
|
BLAKE2b-256 checksum How to use checksums |
65d8bb5aa1784bd71e14c7e00bdb6ccdf13380b00c203bc2f241b52e2b32e613
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1
|
Release files / lnd_rpc-0.6.1.post3-py3-none-any.whl
| Download URL | lnd_rpc-0.6.1.post3-py3-none-any.whl |
|---|---|
| Size | 53.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3e6281976cf86ac891e66e75a8683e3392b62fcf9a3b1de45d994ce346bf3b1
|
|
BLAKE2b-256 checksum How to use checksums |
c453537e8ef5ab0551d73a26dca580dafa8fb1e76f51289367a8283308c3656b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1
|