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
Release files for unit-system 1.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| unit_system-1.1.7.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unit_system-1.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / unit_system-1.1.7.tar.gz
| Download URL | unit_system-1.1.7.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48c8748ab9c2d7168da77ec542533776bb5cff7d6c9a7405591932da81f91d2c
|
|
BLAKE2b-256 checksum How to use checksums |
3ac6c2510ea65a96b6d0e2f5f475f267af892c42d28a91aa35662570d5077ae2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / unit_system-1.1.7-py3-none-any.whl
| Download URL | unit_system-1.1.7-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a7d9b7851eeff8b88660c68a4eff3fee17957dad8accd94dd6c1468cf729eab
|
|
BLAKE2b-256 checksum How to use checksums |
36a9fceaf848c55c3d26d5081d9704a8d7cb93767c0e44404ad3728614481869
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|