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.11+:

$ 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

Metadata

Release files for measured 0.13.0

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.13.0
File Size Uploaded Provenance Actions
measured-0.13.0.tar.gz 298.1 kB With provenance Details for measured-0.13.0.tar.gz

Built distribution (wheel)

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

Total release size: 377.7 kB

Release files / measured-0.13.0.tar.gz

Download URL measured-0.13.0.tar.gz
Size 298.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2fa422e424c905ff72aeba423f1a3e47bd70dd66db1fa64d313e8c7cd96fd310
BLAKE2b-256 checksum
How to use checksums
98f9bd30319c6c938c9625fb548582e33cf056bc71def77dcdd92cdcf2bc3387
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

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

Download URL measured-0.13.0-py3-none-any.whl
Size 79.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e01abdbfbaef39793143fdcaade77cad432c87185a1cfa814dc9b6cb9911e72d
BLAKE2b-256 checksum
How to use checksums
5a900a67f480dccd838eb761be06ea4eeb0697975ae75967ce407f0392a96269
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for measured 0.13.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for measured-0.13.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.13.0 This release

2 release files Full provenance

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