A modern Python library for dimensional analysis and unit-safe scientific computation.
Project description
Quantium
Readable units. Reliable math.
Quantium is a lightweight Python library for unit-safe scientific and mathematical computation.
It combines a clean, dependency-minimal architecture with a powerful system for dimensional analysis — ensuring that every calculation you perform respects physical consistency.
Beyond correctness, Quantium emphasizes clarity.
Its advanced formatting engine automatically simplifies, normalizes, and beautifully renders units using Unicode superscripts, SI prefixes, and canonical symbols.
Key Features
-
Dimensional Analysis: Guarantees physical consistency in all calculations.
-
Unit Simplification: Automatically recognizes and simplifies composite units to their standard named forms (e.g.,
kg*m/s**2is displayed asN). -
Beautiful Formatting: Renders all units into a clean, human-readable format using Unicode dots for multiplication and superscripts for exponents (e.g.,
kg*m**2becomeskg·m²). -
SI Prefix Support: Easily convert between base units and their prefixed forms (e.g., a Quantity of
1000 mcan be converted to1 km). -
Extensible: Easily define your own custom units and dimensions.
Documentation
View the official Quantium documentation for installation guides, tutorials, and the complete API reference.
Installation & Setup
Quantium can be installed from the Python Package Index (PyPI):
pip install quantium
After installation, verify that Quantium is correctly installed by checking its version:
import quantium
print("Quantium version:", quantium.__version__)
To make sure Quantium is ready to use, open a Python shell and run:
>>> from quantium import u
>>> (10 * u.kg) * (5 * u.m) / (2 * u.s**2)
25 N
Requirements
Quantium is built to work seamlessly in modern environments and is compatible with current development tools and workflows.
Quantium currently supports Python 3.10 and above.
Contributing
Contributions are welcome! If you'd like to fix a bug, add a feature, or improve the documentation, please feel free to open an issue or submit a pull request.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quantium-0.1.1.tar.gz.
File metadata
- Download URL: quantium-0.1.1.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cf3db382676db4d5dea6065b322ea2949335cab54889cfd272501665c535d86
|
|
| MD5 |
edbbcb08954ef69356633dc06f98b2f6
|
|
| BLAKE2b-256 |
173ffb9e4e84d9b19fc73a401d9aeadf6b5533888e4f62acbd5b7d9ff06fa5e6
|
Provenance
The following attestation bundles were made for quantium-0.1.1.tar.gz:
Publisher:
release.yml on parneetsingh022/quantium
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quantium-0.1.1.tar.gz -
Subject digest:
2cf3db382676db4d5dea6065b322ea2949335cab54889cfd272501665c535d86 - Sigstore transparency entry: 640745148
- Sigstore integration time:
-
Permalink:
parneetsingh022/quantium@484e133ab6e7204706af568e867cd206ad8bfb52 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/parneetsingh022
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@484e133ab6e7204706af568e867cd206ad8bfb52 -
Trigger Event:
push
-
Statement type:
File details
Details for the file quantium-0.1.1-py3-none-any.whl.
File metadata
- Download URL: quantium-0.1.1-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff5c094126b3d6b3176df8be21096d77cf76bd090535be89087103ea28ab48dc
|
|
| MD5 |
585acad32308a1df2584dff88c5a0d32
|
|
| BLAKE2b-256 |
bcca4c36a757b7c80dca3fb67e4821a4502af5a0e5a11e8b58969bb5150122bc
|
Provenance
The following attestation bundles were made for quantium-0.1.1-py3-none-any.whl:
Publisher:
release.yml on parneetsingh022/quantium
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quantium-0.1.1-py3-none-any.whl -
Subject digest:
ff5c094126b3d6b3176df8be21096d77cf76bd090535be89087103ea28ab48dc - Sigstore transparency entry: 640745159
- Sigstore integration time:
-
Permalink:
parneetsingh022/quantium@484e133ab6e7204706af568e867cd206ad8bfb52 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/parneetsingh022
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@484e133ab6e7204706af568e867cd206ad8bfb52 -
Trigger Event:
push
-
Statement type: