cirrina is an opinionated asynchronous web framework based on aiohttp.
Features:
- HTTP Server
- Websocket Server
- JSON RPC Server
- Shared sessions between used servers
from cirrina import Server
app = Server()
# Define HTTP route for static files
app.static("/static", Server.DEFAULT_STATIC_PATH)
# enable websocket communication
app.enable_websockets()
if __name__ == '__main__':
app.run('0.0.0.0')
Use pip to install cirrina:
pip install cirrina