Pint meets attrs
Project description
Pinttrs
Pint meets attrs
Motivation
The amazing attrs
library is a game-changer when it
comes to writing classes. Its initialisation sequence notably allows for
automated conversion and verification of attribute values. This package is an
attempt at designing a system to apply units automatically and reliably to
attributes with Pint.
Features
- Automatic attachment of predefined units to unitless values
- Verification of units compatibility for unit-ed values
- Dynamic fetching of units from a registry
- Unit-enabled dict-based initialisation of objects
License
Pinttrs is distributed under the terms of the MIT license.
About
Pinttrs is written and maintained by Vincent Leroy.
The development is supported by Rayference.
Pinttrs is a component of the Eradiate radiative transfer model.
The Pinttrs logo is based on
Agus Nugroho's glass icon and parts of
the attrs
logo.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pinttrs-0.1.0.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0309816d99f07fbe730ba9c25ba51ded8f40fa6b691b76767945588ef64edf7a |
|
MD5 | ad14dba899d3dfd826b6910a80942ccb |
|
BLAKE2b-256 | 656377c68cd76d1274637707e204023f97ed12de3b7aebf630d7a55ad4ff484d |