A lightweight, educational client for the Nostr decentralized social network protocol, developed as a project for the Internet of Things Based Smart Systems course.
- Connect to Nostr relays via WebSockets
- Subscribe to and display text notes (kind 1 events)
- Publish simple text notes to the network
- Command-line interface for basic interaction
git clone https://github.com/danterolle/pydecentralize.git
cd pydecentralizepython -m venv env
source env/bin/activate
pip install websocket-clientpython main.pyAfter starting the client:
- The application will connect to a default relay (wss://relay.damus.io)
- Recent messages will be displayed
- You can type any text messages to publish to the network
- Type 'exit' to close the application
You may get the error that the websocket module has not been imported even though it is installed. Use sudo to run the script.
