Skip to main content

Types for holding quantities with units

Project description

Frequenz Quantities Library

Build Status PyPI Package Docs

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

frequenz-quantities-1.0.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

frequenz_quantities-1.0.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file frequenz-quantities-1.0.0.tar.gz.

File metadata

  • Download URL: frequenz-quantities-1.0.0.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

Hashes for frequenz-quantities-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b73327bd636852dfc1b8c200a43a2f1d44506426312a4e109c83b92f59128046
MD5 f9f72026bd4b397f3207344cd47e7aa3
BLAKE2b-256 89094df5afdaa1eefe5e6d6a1841825870a8344e5adf0b6ea1fe247685e0e482

See more details on using hashes here.

Provenance

The following attestation bundles were made for frequenz-quantities-1.0.0.tar.gz:

Publisher: ci.yaml on frequenz-floss/frequenz-quantities-python

Attestations:

File details

Details for the file frequenz_quantities-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for frequenz_quantities-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0fba4df79cd1ba954520d31ed308d8ebd5dbda73c6569c89e5156e41f741b35f
MD5 5ac85e9658734f8b83d2756139913d6c
BLAKE2b-256 3343f41ca7871e614d8d328af9d1279a9875461e2486796d8a6977994159eb15

See more details on using hashes here.

Provenance

The following attestation bundles were made for frequenz_quantities-1.0.0-py3-none-any.whl:

Publisher: ci.yaml on frequenz-floss/frequenz-quantities-python

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page