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 Pint quantity values
- Interpretation of units in dictionaries
- Dynamic fetching of units from a registry
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.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d231fc3943825828ae6d6f12b47b8b8bdb040ea044015e187d1dccc8c66cfd62 |
|
MD5 | 16d2ffd2700383a4ba3c7cdb6107b91e |
|
BLAKE2b-256 | 2bdf10d98eb62a5c46fe7fd8093fe662546bcb49245d57aa4cd088d6003806ea |