Skip to main content

Fast and Pythonic library for working with measurements and quantities

Project description

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

measured-0.12.2.tar.gz (108.3 kB view details)

Uploaded Source

Built Distribution

measured-0.12.2-py3-none-any.whl (74.7 kB view details)

Uploaded Python 3

File details

Details for the file measured-0.12.2.tar.gz.

File metadata

  • Download URL: measured-0.12.2.tar.gz
  • Upload date:
  • Size: 108.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for measured-0.12.2.tar.gz
Algorithm Hash digest
SHA256 1ab53b7f884c38f31eb22ff90c3dc7f11d333c745a4ba4be9947f1e520a1b2c8
MD5 4fc85a1eb4f6ec0544a1dea2d6ae16c0
BLAKE2b-256 d2d46c3caef53736877871fab86eefbd6574ab2b3122e650289f36b3e7be6f8d

See more details on using hashes here.

File details

Details for the file measured-0.12.2-py3-none-any.whl.

File metadata

  • Download URL: measured-0.12.2-py3-none-any.whl
  • Upload date:
  • Size: 74.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for measured-0.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4e9bdb3c720e71c80d65bf2e95fd2305a686b5bfeed2c7410c898b95dbee0a1f
MD5 b01d96f78d9633a829e9d5f162007899
BLAKE2b-256 00894812510322a1775cfbda29d52d6bc1bb762d879eb48b6c5f457cafffab41

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