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.1.7.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file unit_system-1.1.7.tar.gz
.
File metadata
- Download URL: unit_system-1.1.7.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48c8748ab9c2d7168da77ec542533776bb5cff7d6c9a7405591932da81f91d2c |
|
MD5 | d9da77d3711f2fa3b457086022183322 |
|
BLAKE2b-256 | 3ac6c2510ea65a96b6d0e2f5f475f267af892c42d28a91aa35662570d5077ae2 |
File details
Details for the file unit_system-1.1.7-py3-none-any.whl
.
File metadata
- Download URL: unit_system-1.1.7-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a7d9b7851eeff8b88660c68a4eff3fee17957dad8accd94dd6c1468cf729eab |
|
MD5 | a80da10c08679b3e03df808bbf629430 |
|
BLAKE2b-256 | 36a9fceaf848c55c3d26d5081d9704a8d7cb93767c0e44404ad3728614481869 |