Units of Measure
Project description
Units of Measure
as defined in Unit of Measurement.
- Python library:
units-of-measure
- Python package:
unitsofmeasure
Objective
- Relate units of measure to the International System of Units (SI) to define their dimension and magnitude.
- Relate objects to units. Currently, some types of objects cannot be mapped to units, because that would create error-prone states.
- Get the unit that an object is mapped to.
Motivation
First, I used the library forallpeople
,
but that ran into issues with large scales like megatonnes and gigatonnes.
Based on my objectives I decided to create a new library that does exactly that and does not deal with quantities (yet).
Get Started
To start from the beginning, open the Jupyter notebook start_here.ipynb
.
This link is relative, so it might not work in all contexts.
There is no dependency to the package jupyter
, neither at buildtime nor at runtime.
Consequently this library does not declare jupyter
as dependency.
You can view the notebook on GitHub or in Visual Studio Code.
Beyond that there are several alternatives to view notebooks.
If you want to run or edit it, then you need something like package jupyter
or Miniconda.
Download and install the library with python -m pip install units-of-measure
.
Develop
- Clone with
git clone https://github.com/gerald-scharitzer/units-of-measure.git
- Test with
pytest
- Document with
pydoc -w unitsofmeasure
- Build with
python -m build
- Check with
python -m twine check dist/*
- Publish with
python -m twine upload dist/*
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 units-of-measure-0.0.1rc2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cda57f909e0a3a10a40a18578b85054180f2c67ec16d73d6e027f35251ea511 |
|
MD5 | 38132690329d8809d046dfc696213311 |
|
BLAKE2b-256 | 4ef3fa642d41c6869ed3956a8f374949693f77b923e4117545756d2c3d09fd3a |
Hashes for units_of_measure-0.0.1rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef7f14d651a745b0f9254dbd9f7a5521f983c9f6e412dd2b9b383ad02cc496d1 |
|
MD5 | 32c51e3fb029d3b0b27b246fb014b9eb |
|
BLAKE2b-256 | b4c0290cdbb54ce29035e1df5a94fbf58ebf928a3bfe1ebfa7f3f802436fcee3 |