Skip to content

Air Reference

Here is the Air reference documentation. It explains how to do things, as well as providing reference details for nearly every object in the Air code.

  • Applications - The app instantiator for Air
  • Background Tasks - Background tasks for Air
  • Exception Handlers - Exceptions are returned to the user, specifically 404 and 500
  • Exceptions - Sometimes it's good to know exactly what is breaking
  • Ext - Functionality for Air that requires extra dependencies
    • Auth - Authentication tools for OAuth and eventually email and magic link.
    • SQLModel - Utilities for connecting to relational databases like PostgreSQL, MySQL, and SQLite for use with SQLModel. SQLAlchemy can also be used through this module, but this does require the sqlmodel dependency.
  • Forms - Receive and validate data from users on web pages
  • Layouts - Utilities for building layout functions and two example layouts for css microframeworks (mvcss and picocss)
  • Middleware - Middleware for Air
  • Requests - HTMX utility function that can be used with dependency injection
  • Responses - AirResponse for normal responses and SSEResponse for Server Sent Events
  • Routing - For compositing multiple apps inside each other
  • SVG - Reference for all the entire SVG tags specification, all of which are supported by Air
  • Tags - Reference for all the entire HTML tags specification, all of which are supported by Air
  • Templating - Describes Jinja and Air Tag renderers for use in both projects and third-party installable packages
  • Utils - Utilities that don't fall into one of the above categories