Pintext#

Date: Aug 27, 2026 | Version: 0.1.1

Extend Pint with unit contexts.

Pintext lets an application decide, at runtime, how unitless values are interpreted. Optional class-framework integrations for attrs and pydantic building on that core are provided.

User guide

Read the user guide.

User guide
API reference

Browse the API reference.

pintext
Porting guide

Migrate from Pinttrs.

Porting from Pinttrs
Developer guide

Contribute to and maintain Pintext.

Contributing
Changelog

Release history and migration notes.

Release notes
GitHub

Browse the source code.

https://github.com/leroyvn/pintext/

Pintext is distributed under the terms of the MIT license. It is written and maintained by Vincent Leroy, with development supported by Rayference, and is a component of the Eradiate radiative transfer model.