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.0rc4.tar.gz
.
File metadata
- Download URL: frequenz-quantities-1.0.0rc4.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af35d8d5d7694ff6cd0883a3719316ae3f691d29d17b70b6b9f80e7e751c11b8 |
|
MD5 | 151534013940190fbef049e2bbd29710 |
|
BLAKE2b-256 | c5f12f4495a92739c5705ef22e9363bdd45d3df9e4b3a42ff493021d23428bdf |
Provenance
The following attestation bundles were made for frequenz-quantities-1.0.0rc4.tar.gz
:
Publisher:
ci.yaml
on frequenz-floss/frequenz-quantities-python
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
frequenz_quantities-1.0.0rc4.tar.gz
- Subject digest:
af35d8d5d7694ff6cd0883a3719316ae3f691d29d17b70b6b9f80e7e751c11b8
- Sigstore transparency entry: 149089140
- Sigstore integration time:
- Predicate type:
File details
Details for the file frequenz_quantities-1.0.0rc4-py3-none-any.whl
.
File metadata
- Download URL: frequenz_quantities-1.0.0rc4-py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55175e70b160265aba1b769b6d8816d80b168baec57fefa2a0d3657a13f0e4b5 |
|
MD5 | ff1b94e77c74b797e0a9bccd7971d1d3 |
|
BLAKE2b-256 | e71c0148d42ea928bb0692d063ca721f33093231b798caa37e6c4357303b40d5 |
Provenance
The following attestation bundles were made for frequenz_quantities-1.0.0rc4-py3-none-any.whl
:
Publisher:
ci.yaml
on frequenz-floss/frequenz-quantities-python
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
frequenz_quantities-1.0.0rc4-py3-none-any.whl
- Subject digest:
55175e70b160265aba1b769b6d8816d80b168baec57fefa2a0d3657a13f0e4b5
- Sigstore transparency entry: 149089141
- Sigstore integration time:
- Predicate type: