Skip to main content

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.1.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 unxts.parametric 2.1.0
File Size Uploaded Provenance Actions
unxts_parametric-2.1.0.tar.gz 27.0 kB With provenance Details for unxts_parametric-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unxts.parametric 2.1.0
File Interpreter ABI Platform Actions
unxts_parametric-2.1.0-py3-none-any.whl Python 3 none any Details for unxts_parametric-2.1.0-py3-none-any.whl

Total release size: 44.1 kB

Release files / unxts_parametric-2.1.0.tar.gz

Download URL unxts_parametric-2.1.0.tar.gz
Size 27.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fc513cc5a69a3413e089bba8775bb1f5315223b8468fc1a19ea4babd4829af1f
BLAKE2b-256 checksum
How to use checksums
63cfff4bcf270684c9e96f29fc2e0a2238e5b853ba8edc97d717cb0b99ce0d83
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 Nov 13, 2026.

Transparency log

Release files / unxts_parametric-2.1.0-py3-none-any.whl

Download URL unxts_parametric-2.1.0-py3-none-any.whl
Size 17.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a3b7b6f06f521880a51684c75c2ff6615ddcbff7e5cc1ee8c99aaf6d52271fe
BLAKE2b-256 checksum
How to use checksums
ed5432e9251342e32008476e2145f65f239aded190e4b371fcc7ac31045a032e
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 Nov 13, 2026.

Transparency log

Security for unxts.parametric 2.1.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 unxts_parametric-2.1.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 Nov 13, 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