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
12 changes: 12 additions & 0 deletions persistent-channels/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# 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/persistent-channels.py
```

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

# Persistent Channels plugin

`lightningd` automatically tracks channels internally and will make
Expand Down
10 changes: 9 additions & 1 deletion persistent-channels/persistent-channels.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/usr/bin/env python3
#!/usr/bin/env -S uv run --script

# /// script
# requires-python = ">=3.9.2"
# dependencies = [
# "pyln-client>=24.11"
# ]
# ///

from pyln.client import Plugin, RpcError
from threading import Timer
import os
Expand Down
18 changes: 18 additions & 0 deletions persistent-channels/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[project]
name = "persistent-channels"
version = "0.1.0"
description = "Describe a number of channels you'd like to have open at any time"
readme = "README.md"
requires-python = ">=3.9.2"

dependencies = ["pyln-client>=24.11"]

[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",
]
1 change: 0 additions & 1 deletion persistent-channels/requirements.txt

This file was deleted.

Loading
Loading