An async python framework with the backend runtime written in rust
Robyn
Robyn is an async Python backend server with a runtime written in Rust, btw.
Python server running on top of of Rust Async RunTime.
Installation
You can simply use Pip for installation.
pip install robyn
Usage
from robyn import Robyn
app = Robyn()
@app.get("/")
async def h():
return "Hello, world!"
app.start()
Contributor Guidelines
Feel free to open an issue for any clarification or for any suggestions.
If you’re feeling curious. You can take a look at a more detailed architecture here.
To Run Locally
- Add more routes in the test.py file(if you like). It only supports only get requests at the moment
- Run
maturin develop
- Run
python3 test.py
- To measure the performance:
./server_test.sh
GitHub