unxts.parametric
Dimension-parametrized quantities for unxt.
This is the canonical package (unxts.parametric). It provides quantity types parametrized by physical dimension, enabling static and runtime enforcement of dimensional constraints.
Install
pip install unxts.parametric
Usage
ParametricQuantity (alias PQ) encodes its physical dimension in its type, so — unlike the default unxt.Quantity — it checks the dimension at construction:
import unxts.parametric as up
up.PQ([1, 2, 3], "m") # dimension inferred from the unit
up.PQ["length"](1, "m") # dimension checked against the unit
# A unit that doesn't match the declared dimension raises:
try:
up.PQ["length"](1, "s")
except ValueError as e:
print(e) # Physical type mismatch.
Metadata
Release files for unxts.parametric 2.0.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 | |
|---|---|---|---|
| unxts_parametric-2.0.1.tar.gz | 23.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unxts_parametric-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.8 kB
Release files / unxts_parametric-2.0.1.tar.gz
| Download URL | unxts_parametric-2.0.1.tar.gz |
|---|---|
| Size | 23.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f54c62a89f8e17cd025f616aa7f0f631c6f080813125820aa781c9321bace9b2
|
|
BLAKE2b-256 checksum How to use checksums |
fd009fb274ca41d7e93845245ec27679ecd29b261552eee6260d64cb8afbfd16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 10, 2026.
Transparency logRelease files / unxts_parametric-2.0.1-py3-none-any.whl
| Download URL | unxts_parametric-2.0.1-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efe76bb12d4701ebd057c937e2a69b47a1a11ded30ad67bbbb74d1ef38962011
|
|
BLAKE2b-256 checksum How to use checksums |
48c72b7995933dc349d74e2d5f7e19761979c98d98196a1c15a3087180f030e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 10, 2026.
Transparency log