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 clearnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@ This plugin aims to prefer usage over clearnet connections.
It does so by disconnecing TOR connections when there are known and usable
clearnet addresses.

# 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/clearnet.py
```

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

# Options

# Methods
Expand Down
10 changes: 9 additions & 1 deletion clearnet/clearnet.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"
# ]
# ///

import socket
from contextlib import closing

Expand Down
18 changes: 18 additions & 0 deletions clearnet/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[project]
name = "clearnet"
version = "0.1.0"
description = "Prefer usage over clearnet connections"
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 clearnet/requirements.txt

This file was deleted.

Loading
Loading