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.
Metadata
Release files for quantium 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quantium-0.1.1.tar.gz | 1.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quantium-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.5 MB
Release files / quantium-0.1.1.tar.gz
| Download URL | quantium-0.1.1.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2cf3db382676db4d5dea6065b322ea2949335cab54889cfd272501665c535d86
|
|
BLAKE2b-256 checksum How to use checksums |
173ffb9e4e84d9b19fc73a401d9aeadf6b5533888e4f62acbd5b7d9ff06fa5e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2025.
Transparency logRelease files / quantium-0.1.1-py3-none-any.whl
| Download URL | quantium-0.1.1-py3-none-any.whl |
|---|---|
| Size | 26.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff5c094126b3d6b3176df8be21096d77cf76bd090535be89087103ea28ab48dc
|
|
BLAKE2b-256 checksum How to use checksums |
bcca4c36a757b7c80dca3fb67e4821a4502af5a0e5a11e8b58969bb5150122bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2025.
Transparency log