Skip to main content

A modern Python library for dimensional analysis and unit-safe scientific computation.

Project description

Quantium

Quantium logo

PyPI version License: MIT Python Version Documentation Status Build Status Checked with mypy Ruff Test Coverage License: MIT PyPI Downloads GitHub last commit

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**2 is displayed as N).

  • Beautiful Formatting: Renders all units into a clean, human-readable format using Unicode dots for multiplication and superscripts for exponents (e.g., kg*m**2 becomes kg·m²).

  • SI Prefix Support: Easily convert between base units and their prefixed forms (e.g., a Quantity of 1000 m can be converted to 1 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quantium-0.1.1.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quantium-0.1.1-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

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

Hashes for quantium-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2cf3db382676db4d5dea6065b322ea2949335cab54889cfd272501665c535d86
MD5 edbbcb08954ef69356633dc06f98b2f6
BLAKE2b-256 173ffb9e4e84d9b19fc73a401d9aeadf6b5533888e4f62acbd5b7d9ff06fa5e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for quantium-0.1.1.tar.gz:

Publisher: release.yml on parneetsingh022/quantium

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for quantium-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff5c094126b3d6b3176df8be21096d77cf76bd090535be89087103ea28ab48dc
MD5 585acad32308a1df2584dff88c5a0d32
BLAKE2b-256 bcca4c36a757b7c80dca3fb67e4821a4502af5a0e5a11e8b58969bb5150122bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for quantium-0.1.1-py3-none-any.whl:

Publisher: release.yml on parneetsingh022/quantium

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page