Skip to main content

SI unit system implementation enabling physical quantity math

Project description

Build Status Code Coverage Version

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

Documentation

https://l-johnston.github.io/unit_system/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for unit-system, version 1.0.16
Filename, size File type Python version Upload date Hashes
Filename, size unit_system-1.0.16-py3-none-any.whl (10.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size unit_system-1.0.16.tar.gz (8.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page