SI unit system implementation enabling physical quantity math
Project description
unit_system
The unit_system package provides a way to do physical quantity math in Python that replicates Mathcad's unit system. The implementation conforms to the SI standard.
Installation
$ pip install unit_system
Usage
>>> from unit_system import Quantity
>>> V = Quantity(1, "V")
>>> A = Quantity(1, "A")
>>> 1*V / (1*A)
1.0 Ω
You can load predefined units like the ones in Mathcad.
>>> from unit_system.predefined_units import *
>>> 1*mΩ * 1*A
0.001 V
Documentation
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
unit_system-1.0.7.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for unit_system-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9555e8460e50954ad80284a0ea065ad6380343cc6ed4ccaaa5339333c4483e96 |
|
MD5 | d3169e22bf4a62b45417f440c1712c9c |
|
BLAKE2b-256 | 6cb5395c6d8c4889d50e8df9751a1281cd74d19fe3aed5c4632b8d84d6e4b30b |