Application

The Application constructor expects one or more Unit modules to be registered with the instance.

class aioli.Application(units, **kwargs)[source]

Aioli application core

Parameters:
  • config – Configuration dictionary
  • units – List of units
Variables:
  • log – Aioli Application logger
  • registry – ImportRegistry instance
  • config – Application config

Example – Guestbook Web API making use of the aioli_rdbms extension

import aioli_guestbook
import aioli_rdbms

import toml

from aioli import Application

app = Application(
    config=toml.load("aioli.cfg"),
    units=[
        aioli_guestbook,
        aioli_rdbms,
    ]
)