Thank you to everyone who contributed code, wrote docs, reported a bug, or built something with Air. We’re especially grateful to everyone who sat down with us to work on Air at the PythonAsia sprint in Manila and the PyCon Davao sprint. And if you gave Air a try, thank you for making time for it.
We’ve archived Air’s GitHub repository and ended maintenance of the public framework. The source is still available under the MIT license.
Audrey and Daniel
AI-First · Human-Writable · Python
After AI writes your app, you’re the one who has to read and maintain it. We built Air with that moment in mind.
Ask AI for a contact form. How much code do you have to read before you can tell what happens when someone clicks Submit?
With Air, you could put the route, the form, and the markup in one Python file and let HTMX handle the browser interaction. You could follow the whole thing from top to bottom.
Here’s “Hello, Air” in Air Tags and Jinja.
Run it: air run
We made these choices to help AI generate better code and make that code easier for people to review.
We put parameter descriptions and working examples in the docstrings so AI tools could learn how to use Air from the source itself.
We made Air Tags ordinary Python so you could use the same formatters, linters, and type checkers on generated code that you used on handwritten code.
You could write HTML in Python with Air Tags, or ask AI for an HTML page and drop it into a Jinja template. We built both approaches into Air.
We named Air Tags after the HTML elements they produced so people and AI tools could tell what the Python would render. air.H1("text") renders an <h1>.
A small Air app could keep its routes and markup in one file. That gave AI fewer files to coordinate and gave you less code to review.
Air started in Manila. At two Python conferences in the Philippines, developers sat down with us to work on the framework and try it on their own apps.
Fifty developers filled the room for the Air and pandas sprint. People dug into Air’s core and sent us pull requests.
This time, we asked people to build web apps with Air. Their feedback showed us where a real app took more work than our examples suggested.
Find the source code, release history, and documentation on GitHub.