neolynx / cirrina

cirrina is an opinionated asynchronous web framework based on aiohttp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

# enable JSON RPC communication
app.enable_rpc('/jrpc')

if __name__ == '__main__':
    app.run('0.0.0.0')

Installation

Use pip to install cirrina:

pip install cirrina

About

cirrina is an opinionated asynchronous web framework based on aiohttp

License:GNU Lesser General Public License v3.0


Languages

Language:Python 100.0%