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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for frequenz-quantities-1.0.0rc2.tar.gz
Algorithm Hash digest
SHA256 0f0a3bb84c3ffaf236c51dbabed80a1f8d3e6f7d432c44c15626221801b94c71
MD5 62de70b535389b9bee420261716c1cf8
BLAKE2b-256 53a53a3a3a190508badf3d8caa0035a126728020625c629c29c23dd88b91c1c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for frequenz_quantities-1.0.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 bc5fd6eb2d73ccce90f5354d651b1ddb820d8bbd28807416ad0e18952c4a01ef
MD5 522c7ca99542f4492f76730d7f7265d9
BLAKE2b-256 8f118397b7d53dd1d802292b5e564fe33e208cd50563935ae72f69829ad89c01

See more details on using hashes here.

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