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.32.tar.gz
(9.8 kB
view hashes)
Built Distribution
Close
Hashes for unit_system-1.0.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22fe2cb92db48f76529b30e2daedb5c15a679d6c6a347cc366166e7f4335943f |
|
MD5 | 2a1bc88478344a22bcd032c7f0c94d6c |
|
BLAKE2b-256 | 7c4e86954b1fd34a2a9225136945b3ae279080f1de980c5091ce29485ac3405a |