Skip to main content

Typed HTML in my Python?

H.2215 (Ferrer) | Day 1 | 12:50 - 13:05 | Speakers: Athena Wolfskämpf (she/her)

Typed HTML in my Python?
A picture of a talk at FOSDEM 2024
Open in browser
Get involved in the conversation!Join the chat

Notes

Abstract

Not everything needs to become a string! At least not so fast. Don't lose your typing information when building templates for Django, Flask, FastAPI or even without any framework.

With htpy you can write templates just like you write Python, including full support for mypy or pyright checks.

I will show you how to get started with htpy and show you some patterns that make your components reusable and typesafe.

Attachments

Speakers

Athena Wolfskämpf (she/her)

Notice: The placeholder video image is licensed under CC BY-SA 4.0. The original image can be found hereChanges made to the image are: Cropped the image to a new ratio, part of the image was cut off.