Skip to main content

Types for holding quantities with units

Reason this release was yanked:

This release has breaking changes

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.1.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

frequenz_quantities-1.0.1-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file frequenz_quantities-1.0.1.tar.gz.

File metadata

  • Download URL: frequenz_quantities-1.0.1.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for frequenz_quantities-1.0.1.tar.gz
Algorithm Hash digest
SHA256 637eb2811105f67b809381112865b83482d260beecef93932bd8c593f0488ba7
MD5 a6797f7b721fd5630164ea2e6bac1071
BLAKE2b-256 74fb0604691bb1204d04c1e8e2e16ec4acb92382542cd73cac17a48d1645be28

See more details on using hashes here.

Provenance

The following attestation bundles were made for frequenz_quantities-1.0.1.tar.gz:

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for frequenz_quantities-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1beb093819eee2d9e680eb9fc0497c28f0573fe49a7fe1849b976de367e48b40
MD5 f55d946da1cf84a6c44c412677decebd
BLAKE2b-256 13c925ea3a3efc82e64f16832a2439fed6416dac94f5413bd08ca81be3e054c4

See more details on using hashes here.

Provenance

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

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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