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.0rc3.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for frequenz-quantities-1.0.0rc3.tar.gz
Algorithm Hash digest
SHA256 5f6312abac250fa1a309a577c91d1bb080960dc16d55c82877b9964c7e3ecbc5
MD5 a317a490e7bdf26e95cc1a101c4bb338
BLAKE2b-256 ec16a0d3b6ac74a9f43237071b1bbdac10295addc138868c04f49f093ea48f35

See more details on using hashes here.

Provenance

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

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

Attestations:

File details

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

File metadata

File hashes

Hashes for frequenz_quantities-1.0.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 bb5039db4ec0e0ae69c7ab1027ac0fd85c20c0a09526309fdfdbed76b0c2262f
MD5 61e590a09e609a923862432fd25ef984
BLAKE2b-256 f6135076a58e6fe890931646af7c5692ae6f5b0e23a0f76c44720649d0cb3068

See more details on using hashes here.

Provenance

The following attestation bundles were made for frequenz_quantities-1.0.0rc3-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