Skip to content

cirrina is an opinionated asynchronous web framework based on aiohttp

License

Notifications You must be signed in to change notification settings

neolynx/cirrina

Repository files navigation

cirrina

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')

Installation

Use pip to install cirrina:

pip install cirrina