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 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.34.tar.gz
(9.9 kB
view hashes)
Built Distribution
Close
Hashes for unit_system-1.0.34-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e561e16ac4a987eebbe47ac9a2d19f3d9827ae905c061c489ea90a2e6ee453a8 |
|
MD5 | c86c8d0d4f1875ebd634987a30fad470 |
|
BLAKE2b-256 | 7d1500c179ceeddb021529e09849c1b8cd55979ec3500f51c128ae1ae08c1297 |