Robyn is an async Python backend server with a runtime written in Rust, btw.
Python server running on top of of Rust Async RunTime.
Check out the talk at PyCon Sweden 2021 about Robyn: An async python web framework with a Rust runtime
You can simply use Pip for installation.
pip install robyn
from robyn import Robyn
app = Robyn(__file__)
@app.get("/")
async def h():
return "Hello, world!"
app.start(port=5000)
Feel free to open an issue for any clarification or for any suggestions.
To read about the detailed architecture, you can read here.
- Activate a virtual environment
- Install maturin:
pip3 install maturin
- Create a Debug build:
maturin develop
- Test it out:
python3
import robyn
dir(robyn)
python3 app.py
python3 app.py --dev=true
Special thanks to the PyO3 community and Andrew from PyO3-asyncio for their amazing libraries and their support for my queries. 💖