https://github.com/l-johnston/unit_system
SI unit system for Python
https://github.com/l-johnston/unit_system
matplotlib numpy python si-unit-system
Last synced: about 2 months ago
JSON representation
SI unit system for Python
- Host: GitHub
- URL: https://github.com/l-johnston/unit_system
- Owner: l-johnston
- License: mit
- Created: 2019-11-24T07:41:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-14T13:59:18.000Z (over 5 years ago)
- Last Synced: 2025-02-18T07:56:16.935Z (over 1 year ago)
- Topics: matplotlib, numpy, python, si-unit-system
- Language: Python
- Homepage: https://l-johnston.github.io/unit_system/
- Size: 454 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://dev.azure.com/l-johnston/unit_system/_build/latest?definitionId=8&branchName=master)  
# `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](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication811e2008.pdf).
## Installation
```linux
$ pip install unit_system
```
## Usage
```python
>>> 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.
```python
>>> from unit_system import *
>>> 1*mΩ * 1*A
0.001 V
```
## Documentation
https://l-johnston.github.io/unit_system/