Skip to content

Instantly share code, notes, and snippets.

View pydanny's full-sized avatar

Daniel Roy Greenfeld pydanny

View GitHub Profile

ROADMAP

I'm really proud of what we've accomplished with Air. In a few short months we've taken a sketch of an idea and built out a new web framework that is both new and exciting, yet able to plug effortlessly into the FastAPI ecosystem.

Through our own experiences and feedback from users we can say the following is working out quite well:

  • Air Tags are really popular and most people enjoy the API. That it plugs so well into IDEs and LLMs is a super power.
  • AirResponse makes writing views powered by Jinja or Air Tags easy and fast
  • Examples in all the doc strings makes it much easier for both humans and LLMs
  • Jinja + Air Tags base templates for layout and Air Tags for content is a really sweet pattern we should talk about more
@pydanny
pydanny / main.py
Last active August 1, 2025 07:30
Air+FastAPI
# Dependency: air and "fastapi[standard]""
#
import air
from fastapi import FastAPI
app = air.Air()
api = FastAPI()
@app.page
@pydanny
pydanny / not-nulls.ipynb
Last active December 28, 2024 00:24
fasthtml/not-nulls.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pydanny
pydanny / check bools.ipynb
Created December 28, 2024 00:10
fasthtml/check bools.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pydanny
pydanny / check bools.ipynb
Created December 28, 2024 00:03
fasthtml/check-bools.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pydanny
pydanny / install-notes.md
Last active October 3, 2024 12:51
New mac installation

Terminal first!

  1. Try to avoid downloading anything directly. Rather, use homebrew, uv, and gh cli to install everything.
  2. At the end of each install, add the items suggested for going into the .zshrc

Install homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@pydanny
pydanny / websockets_example.ipynb
Last active September 23, 2024 18:03
FastHTML plus Jupyter plus websockets
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pydanny
pydanny / data.ipynb
Created September 5, 2024 06:31
fasthtml-pk-search.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""Another pure FastHTML method, only dependency is python-fasthtml."""
import asyncio
import random
from fasthtml.common import *
from starlette.responses import StreamingResponse
sselink = Script(src="https://unpkg.com/htmx-ext-sse@2.2.1/sse.js")
htmx_log = Script("htmx.logAll();"),
app, rt = fast_app(hdrs=(sselink,htmx_log))