Skip to main content

Dimvexa

dimvexa (Python)

Python binding for Dimvexa: Exact factors. Loud failures. Zero guessing. A thin PyO3 layer; all conversion logic is in the Rust core.

import dimvexa

dimvexa.convert(10.0, "m/s", "km/h")  # 36.0
c = dimvexa.conversion("m", "km")  # parse once ...
c(numpy_array)  # ... apply to float64 arrays, lists or floats

try:
    dimvexa.convert(1.0, "gal", "L")
except dimvexa.DimvexaError as e:
    e.code, e.candidates  # 'ambiguous_symbol', ['gal_us', 'gal_imp']

Configs, densities and constants work as in the CLI (dimvexa-config does the loading):

dimvexa.convert(1.0, "ton", "kg", configs=["us"])  # 907.18474; a name or a file path
dimvexa.convert(1.0, "L", "kg", density="998.2067kg/m3")  # never assumed, only when asked
dimvexa.convert(1.0, "L", "kg", configs=["water"], density="water_25C")
dimvexa.constants(config_texts=[toml_text])  # pi, h_P, e, k_B, N_A, then your own
dimvexa.quantity("1 L", density="998.2067kg/m3").to("kg")  # exact; quantity() takes the same options
dimvexa.units(configs=["us"]), dimvexa.unit_info("bbl_oil", config_texts=[toml_text])  # config units too

Every refusal is a DimvexaError (a ValueError) with a stable code, suggestions and candidates. exact=True routes through the exact rational path, rounded once.

Build and test

This crate is its own workspace (it needs PyO3 and NumPy from the registry; the main workspace is std-only and offline). It is not part of cargo xtask ci.

cd bindings/python
python -m venv .venv && . .venv/bin/activate
pip install maturin pytest numpy
maturin develop
pytest

Wheels are abi3 (Python 3.9+). No performance claim is made until a dated benchmark run exists (docs/benchmarking.md).

Metadata

Release files for dimvexa 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 dimvexa 0.6.0
File Size Uploaded Provenance Actions
dimvexa-0.6.0.tar.gz 12.9 kB With provenance Details for dimvexa-0.6.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for dimvexa 0.6.0
File Actions
dimvexa-0.6.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for dimvexa-0.6.0-cp39-abi3-win_amd64.whl
dimvexa-0.6.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for dimvexa-0.6.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
dimvexa-0.6.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for dimvexa-0.6.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
dimvexa-0.6.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for dimvexa-0.6.0-cp39-abi3-macosx_11_0_arm64.whl
dimvexa-0.6.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for dimvexa-0.6.0-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 2.0 MB

Release files / dimvexa-0.6.0.tar.gz

Download URL dimvexa-0.6.0.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
918438dcd03a35278f12f5025b6bd425aee99319d38c8cbad32c3d53f2a87be5
BLAKE2b-256 checksum
How to use checksums
4f9431dab1758c65d49949192377a28ecd723f0fcce87a7d6c0c2a1ab52d8348
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 Nov 12, 2026.

Transparency log

Release files / dimvexa-0.6.0-cp39-abi3-win_amd64.whl

Download URL dimvexa-0.6.0-cp39-abi3-win_amd64.whl
Size 340.3 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0a96b558b0cb56833cc6261e8a1932bb3051462d3abcf7b3613c9c69b90eeb04
BLAKE2b-256 checksum
How to use checksums
6f302c3c9a8ea5812ca237c06ba07cb6879361b92bb7c52e6c5fe90f0fec18ca
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 Nov 12, 2026.

Transparency log

Release files / dimvexa-0.6.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL dimvexa-0.6.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 421.3 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
e6f9aa815eb0bd7a2f8db423198af9af4289ea758c7dc179921beeb84b2798e3
BLAKE2b-256 checksum
How to use checksums
844b428dab69aaa76b9b777eaa1dc4e1b7271d88f92096d31be0a4a93c51d096
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 Nov 12, 2026.

Transparency log

Release files / dimvexa-0.6.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL dimvexa-0.6.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 404.0 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
d927be2b1b57c84285b114d010ad87d6511ee866a8c65c7e66e84c26787ac580
BLAKE2b-256 checksum
How to use checksums
848e74db9bc18db5e26b4ff33197370ae6e4bf89ea382d7cabfb2566cea1e58e
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 Nov 12, 2026.

Transparency log

Release files / dimvexa-0.6.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL dimvexa-0.6.0-cp39-abi3-macosx_11_0_arm64.whl
Size 412.4 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
98821f4ecc85bebcd89e90bcbb6956c09c36d343405adaff28d6d43f94c1f934
BLAKE2b-256 checksum
How to use checksums
b4d0cc6004f265e7770a6db3165e627191c03b575722be07aaffcc76ea918f94
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 Nov 12, 2026.

Transparency log

Release files / dimvexa-0.6.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL dimvexa-0.6.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 423.9 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
5918a76cd1f11dda0e3537233b53b3c6af16f3770adada1654514676632d1055
BLAKE2b-256 checksum
How to use checksums
5a1b4bb717e6407bb088dbfd50e5975fb8454520e350dd5ec232819b70112e36
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 Nov 12, 2026.

Transparency log

Security for dimvexa 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

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for dimvexa-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 Nov 12, 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