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.

Development uses uv. To set up a checkout, run the tests, and run the same checks as CI:

$ uv sync
$ uv run prek install
$ uv run pytest
$ uv run prek run --all-files

prek runs ruff, codespell, loq, and pyright. To build the documentation:

$ uv run mkdocs build

Issues Pull Requests

Metadata

Release files for measured 0.13.1

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.1
File Size Uploaded Provenance Actions
measured-0.13.1.tar.gz 252.7 kB With provenance Details for measured-0.13.1.tar.gz

Built distribution (wheel)

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

Total release size: 332.5 kB

Release files / measured-0.13.1.tar.gz

Download URL measured-0.13.1.tar.gz
Size 252.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5530896bcd551a2d76ae210bfa36f1255ec7570eff030447e04f10300b65bc8d
BLAKE2b-256 checksum
How to use checksums
fa0c27113d3540c2a2321036341821ec68993f4f5351931083dd8e8d43db984b
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.1-py3-none-any.whl

Download URL measured-0.13.1-py3-none-any.whl
Size 79.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
552cc89b671b14e00816659211df76333351d39f40fc6331e90ca9ecc5506000
BLAKE2b-256 checksum
How to use checksums
c19f680ad9b75ad5c196424897d293336ce51cb2a224ebdd22cacad450042c68
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.1

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.1.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.1 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