Skip to main content

SI unit system implementation enabling physical quantity math

Project description

Build Status Code Coverage Version


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.


$ pip install unit_system


>>> 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* * 1*A
0.001 V


Project details

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.1.7.tar.gz (4.2 kB view hashes)

Uploaded source

Built Distribution

unit_system-1.1.7-py3-none-any.whl (5.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page