Skip to main content

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

Documentation

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

Metadata

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)

Source distribution for unit-system 1.1.7
File Size Uploaded Provenance Actions
unit_system-1.1.7.tar.gz 4.2 kB Without provenance Details for unit_system-1.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unit-system 1.1.7
File Interpreter ABI Platform Actions
unit_system-1.1.7-py3-none-any.whl Python 3 none any Details for unit_system-1.1.7-py3-none-any.whl

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

Security for unit-system 1.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.7 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page