Skip to main content

measured

measured is a library for measurements and quantities.

PyPi Build and test Code Coverage Documentation Status

>>> from measured import Speed
>>> from measured.si import Meter, Second
>>> distance = 10 * Meter
>>> time = 2 * Second
>>> speed = distance / time
>>> assert speed == 5 * Meter / Second
>>> assert speed.unit is Meter / Second
>>> assert speed.unit.dimension is Speed

The goal of measured is to provide a sound foundation for recording and converting physical quantities, while maintaining the integrity of their units and dimensions.

While it aims to be the fastest library of its kind, automatically tracking the units and dimensions of quantities introduces significant overhead. You can use measured for applications where the accuracy of the units is more important than raw numerical computing speed.

measured is licenced under the MIT Licence.

MIT License

Installing

measured is available on PyPi, and is tested with with Python and PyPy 3.8+:

$ pip install measured

Python Versions

Reference

The documentation for measured is on Read the Docs.

Contributing

Contributions are welcome! Please report bug and submit pull requests to https://github.com/chrisguidry/measured.

Issues Pull Requests

Release files for measured 0.12.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for measured 0.12.2
File Size Uploaded Provenance
measured-0.12.2.tar.gz 108.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for measured 0.12.2
File Interpreter ABI Platform
measured-0.12.2-py3-none-any.whl Python 3 none any Details

Total release size: 183.0 kB

Release files / measured-0.12.2.tar.gz

Download URL measured-0.12.2.tar.gz
Size 108.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1ab53b7f884c38f31eb22ff90c3dc7f11d333c745a4ba4be9947f1e520a1b2c8
BLAKE2b-256 checksum
How to use checksums
d2d46c3caef53736877871fab86eefbd6574ab2b3122e650289f36b3e7be6f8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / measured-0.12.2-py3-none-any.whl

Download URL measured-0.12.2-py3-none-any.whl
Size 74.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e9bdb3c720e71c80d65bf2e95fd2305a686b5bfeed2c7410c898b95dbee0a1f
BLAKE2b-256 checksum
How to use checksums
00894812510322a1775cfbda29d52d6bc1bb762d879eb48b6c5f457cafffab41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for measured 0.12.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page