Skip to main content


Static Badge Static Badge

NOTE: Early development. Not fully functional yet.

The qunits Python package provides a performant, verbose and generic physical unit system. Tutorials and the API documentation are available on the Homepage. Additional example scripts can be found in the example folder on GitHub.

Getting started

from qunits import u

q = 2 * u.e  # >>> 2.0 e
v = 2e5 * u.m / u.s  # >>> 200000.0 m/s
B = 0.42 * u.mT  # >>> 0.42 mT

F = q * v * B  # >>> 168000.0 e⋅m⋅mT/s
F = F.to_base_units()  # >>> 2.6916567451199998e-17 N
F = F.to(u.e * u.V / u.m)  # >>> 168.0 e⋅V/m

Dependencies

Modules

  • dimension: Contains the dimension definitions.
  • prefix: Contains resources for prefix handling.
  • registry: Contains the unit registry u.
  • unit: Contains the Unit and the Quantity classes.

Metadata

Release files for qunits 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qunits 0.6.0
File Size Uploaded Provenance Actions
qunits-0.6.0.tar.gz 13.1 kB With provenance Details for qunits-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qunits 0.6.0
File Interpreter ABI Platform Actions
qunits-0.6.0-py3-none-any.whl Python 3 none any Details for qunits-0.6.0-py3-none-any.whl

Total release size: 27.4 kB

Release files / qunits-0.6.0.tar.gz

Download URL qunits-0.6.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7b99f6d2f17d283531ed11de4ac6900b800affadee6d41bb62098d18d53ffc20
BLAKE2b-256 checksum
How to use checksums
da79f086ce82eca215bf9f651ceeb333f8f7754650f658d26716569741c2a5a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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, 2026.

Transparency log

Release files / qunits-0.6.0-py3-none-any.whl

Download URL qunits-0.6.0-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
951a843fbd2f6492784fae16e44b28c009b5b3284d320b0a716c18d80935f299
BLAKE2b-256 checksum
How to use checksums
f376e5a6dbee15a678244643dbfa3b05f08f7307997ce0df9724f9a86c8d3082
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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, 2026.

Transparency log

Security for qunits 0.6.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for qunits-0.6.0.tar.gz

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, 2026.

Transparency log

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.

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