Skip to content

cullinan.app

Note (v0.90): The application lifecycle is now managed by ApplicationContext. For the new IoC/DI 2.0 lifecycle, see Dependency Injection Guide. Use ApplicationContext.refresh() and ApplicationContext.shutdown() for lifecycle management.

Summary: placeholder for cullinan.app module documentation. Describe entry-points and how to create app instances.

Public symbols to document: App, main (if present)

Public API (auto-generated)

cullinan.app

Name Kind Signature / Value
CullinanApplication class CullinanApplication(shutdown_timeout: int = 30)
create_app function create_app(shutdown_timeout: int = 30) -> cullinan.app.CullinanApplication

Example: create and run an application

# Quick (recommended): use the framework entrypoint in the process entry script
from cullinan import application

if __name__ == '__main__':
    application.run()

# Advanced (optional): programmatic control (e.g., tests or adding shutdown handlers)
from cullinan.app import create_app

application_instance = create_app()
# application_instance.startup()/application_instance.shutdown() or application_instance.add_shutdown_handler(...)
# application_instance.run()  # call at the process entrypoint