Peer-to-peer bidirectional TCP text editor
Project description
p2p-editor
Peer-to-peer bidirectional TCP text editor. Both peers listen and connect simultaneously — whichever socket establishes first wins.
Requirements
Python 3.10+ and tkinter. On systems where tkinter isn't bundled:
# Debian/Ubuntu
sudo apt install python3-tk
# Fedora
sudo dnf install python3-tkinter
# macOS (Homebrew)
brew install python-tk
Install
# From source (editable/dev)
pip install -e .
# From a built wheel
pip install dist/p2pmess-0.1.0-py3-none-any.whl
# Directly from GitHub
pip install git+https://github.com/yourorg/p2pmess.git
Build a wheel
pip install hatchling
python -m hatchling build
Usage
p2p-editor
Configure in the UI:
| Field | Peer A | Peer B |
|---|---|---|
| Local Port | 5001 | 5002 |
| Remote Host | 127.0.0.1 | 127.0.0.1 |
| Remote Port | 5002 | 5001 |
Click CONNECT on both peers. Type in the SEND pane, transmit with Ctrl+Enter.
Protocol
Newline-delimited JSON over TCP:
{"type": "msg", "text": "hello", "ts": "14:32:01"}
{"type": "ping"}
{"type": "ack"}
Keep-alive pings fire every 5 seconds. On disconnect, both sides automatically attempt to reconnect.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file p2pmess-0.1.0.tar.gz.
File metadata
- Download URL: p2pmess-0.1.0.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6144ae3fe6dbf1bd94aab2764667926d50fea7ae266bc3413e0382e4bd76610
|
|
| MD5 |
ca802ba7e60344663f345da241c2b475
|
|
| BLAKE2b-256 |
eece2f027d802dfffadf59e557ba9e0af56cc25b588f578ff3cd9544011da51c
|
File details
Details for the file p2pmess-0.1.0-py3-none-any.whl.
File metadata
- Download URL: p2pmess-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e448dd9574cbf4eabd238d2e64430672007a0c2056a6aa1ccfb0fff3209031f4
|
|
| MD5 |
aa8668e2f682392f39a7a58e92814b89
|
|
| BLAKE2b-256 |
cb795df7ab244e34c1583a379af9b35a0b9d8266ead392a39ff5bcd3af429912
|