htmltools 0.7.0


pip install htmltools

  Latest version

Released: May 21, 2026


Meta
Author: Carson Sievert
Requires Python: >=3.10

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Programming Language
  • Python
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14
  • Python :: Implementation :: PyPy

Topic
  • Internet :: WWW/HTTP :: Dynamic Content
  • Software Development :: Libraries :: Python Modules
  • Text Processing :: Markup :: HTML

htmltools

Tools for creating, manipulating, and writing HTML from Python.

Installation

pip install htmltools

To install the latest development version from this repository:

uv pip install https://github.com/posit-dev/py-htmltools/tarball/main

Development

This project uses uv for managing the Python dev environment. Install uv, then:

make setup        # creates .venv and installs all dev/test deps
make ai-setup     # like setup, but also installs the pre-commit hook
make help         # list available targets
make check        # format + type + test checks
make format       # auto-fix formatting

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
typing-extensions (>=4.12.0)
packaging (>=20.9)