Fast and Pythonic library for working with measurements and quantities
Project description
measured
measured
is a library for measurements and quantities.
>>> 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.
Installing
measured
is available on PyPi, and is tested with
with Python and PyPy 3.8+:
$ pip install measured
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for measured-0.12.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9822f34186af12116a435056e06a017db8d2b6729fddfa39c614318d907ffbd1 |
|
MD5 | 54b4537d1c4b44b9a8d519138c976aa4 |
|
BLAKE2b-256 | d2c5ca50dc2e8e1fd69049c6684c8348237ddc65a6b3e37ec6ec422eb73272c7 |