https://github.com/frequenz-floss/frequenz-quantities-python
Types for holding quantities with units
https://github.com/frequenz-floss/frequenz-quantities-python
conversion frequenz lib library python quantities unit
Last synced: 9 months ago
JSON representation
Types for holding quantities with units
- Host: GitHub
- URL: https://github.com/frequenz-floss/frequenz-quantities-python
- Owner: frequenz-floss
- License: mit
- Created: 2024-06-13T09:12:47.000Z (over 1 year ago)
- Default Branch: v1.x.x
- Last Pushed: 2025-04-14T10:54:25.000Z (9 months ago)
- Last Synced: 2025-04-14T11:38:57.124Z (9 months ago)
- Topics: conversion, frequenz, lib, library, python, quantities, unit
- Language: Python
- Homepage: https://frequenz-floss.github.io/frequenz-quantities-python/
- Size: 2.43 MB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Frequenz Quantities Library
[](https://github.com/frequenz-floss/frequenz-quantities-python/actions/workflows/ci.yaml)
[](https://pypi.org/project/frequenz-quantities/)
[](https://frequenz-floss.github.io/frequenz-quantities-python/)
## 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](https://frequenz-floss.github.io/frequenz-quantities-python/).
## 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](CONTRIBUTING.md).