Types for holding quantities with units
Project description
Frequenz Quantities Library
Introduction
This library provide types for holding quantities with units. The main goal is to avoid mistakes while working with different types of quantities, for example avoiding adding a length to a time.
It also prevents mistakes when operating between the same quantity but in different units, like adding a power in Joules to a power in Watts without converting one of them.
Quantities store the value in a base unit, and then provide methods to get that quantity as a particular unit.
Documentation
For more information on how to use this library and examples, please check the Documentation website.
Supported Platforms
The following platforms are officially supported (tested):
- Python: 3.11
- Operating System: Ubuntu Linux 20.04
- Architectures: amd64, arm64
Contributing
If you want to know how to build this project and contribute to it, please check out the Contributing Guide.
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
File details
Details for the file frequenz-quantities-1.0.0rc1.tar.gz
.
File metadata
- Download URL: frequenz-quantities-1.0.0rc1.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67dd39b533a15a154289e9bbc083edf6a03a486265505463f2dce70425a2b918 |
|
MD5 | 764a16b217c08f263daa0983c4fbe30f |
|
BLAKE2b-256 | c1fc96efec053f2b872c30f4ec68c021eeb9961142c6f907cafcd7ac38d360ae |
File details
Details for the file frequenz_quantities-1.0.0rc1-py3-none-any.whl
.
File metadata
- Download URL: frequenz_quantities-1.0.0rc1-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3390175412f36d67bf224bb758f4db82cf0c8f6a89899c11077e25973f7fb81b |
|
MD5 | 1ed10d65f35a48a1b6ce621cda1a98f9 |
|
BLAKE2b-256 | a726c8f8478b92da7d414fd5acf5f2ae3a8b6d453361d1eba5e133f7b6d0b07a |