PyRelay is a python implementation of a NOSTR Relay, using asyncio. Don't know whats NOSTR is? check it out here.
PyRelay require python 3.11. I suggest setting up virtual env before running locally.
Install using git
git clone https://github.com/johnny423/pyrelay
cd pyrelaydocker compose upInstall dependencies, without dev dependencies
pip install -r requirements.txtIf you have trouble with installing secp256k1 try executing
pip install wheelthen
python setup.py bdist_wheel and rerun
pip install -r requirements.txtpython ./pyrelay/relay/server.pyDownload and install the latest version of git.
Configure git with your username and email.
git config --global user.name 'your name'
git config --global user.email 'your email'Make sure you have a GitHub account.
Clone the repository locally.
git clone https://github.com/johnny423/pyrelay
cd pyrelayInstall dependencies, include dev dependencies
pip install -r requirements.txt -r requirements-dev.txt -r requirements-test.txtInstall pre-commit
pre-commit installThen, before committing, make sure Run git hooks is checked.
You can run the tests with the scripts
./scripts/test.sh