Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions summary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ otherwise normal ASCII.

## Installation

You need [uv](https://docs.astral.sh/uv/getting-started/installation/) to run this
plugin like a binary. After `uv` is installed you can simply run

```
lightning-cli plugin start /path/to/summary.py
```

For general plugin installation instructions see the repos main
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)

Expand Down
16 changes: 16 additions & 0 deletions summary/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[project]
name = "summary"
version = "0.1.0"
description = "Show a summary of your node, including fiat amounts"
readme = "README.md"
requires-python = ">=3.9.2"

[dependency-groups]
dev = [
"pytest>=7.4,<9",
"pytest-xdist>=3.7,<4",
"pytest-timeout>=2.4,<3",
"pyln-testing>=24.11.1",
"pyln-client>=24.11.1",
"pyln-proto>=24.11.1",
]
4 changes: 0 additions & 4 deletions summary/requirements.txt

This file was deleted.

12 changes: 11 additions & 1 deletion summary/summary.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#!/usr/bin/env python3
#!/usr/bin/env -S uv run --script

# /// script
# requires-python = ">=3.9.2"
# dependencies = [
# "pyln-client>=24.11",
# "requests[socks]>=2.10.0",
# "packaging>=14.1",
# ]
# ///

from pyln.client import Plugin, Millisatoshi
from packaging import version
from collections import namedtuple
Expand Down
Loading