unxt-api
Note: As of v2.0.0,
unxt-apiis a backward-compatible shim forunxts.api— the new canonical location for this package. No code changes are required:import unxt_apicontinues to work exactly as before. New projects should preferpip install unxts.apiandimport unxts.api.
Abstract dispatch API for unxt.
unxt-api defines the abstract dispatch interfaces that unxt and other packages implement. It provides a minimal dependency foundation for packages that want to define or use unxt's multiple-dispatch-based API without pulling in the full unxt implementation.
Installation
pip install unxt-api # legacy name — continues to work long-term
pip install unxts.api # canonical name going forward
Migration
If you currently depend on unxt-api, you have two options:
-
Do nothing —
unxt-apire-exports the full public API fromunxts.apiand will be maintained long-term. Existing code requires no changes. -
Migrate to
unxts.api— change your dependency and imports:- pip install unxt-api + pip install unxts.api
- import unxt_api as uapi + import unxts.api as uapi
All public symbols (
uconvert,ustrip,unit,dimension, etc.) are identical — the canonical package is the source of truth and the shim simply re-exports from it.
Core API
- Dimensions —
dimension,dimension_of - Units —
unit,unit_of - Quantities —
uconvert,uconvert_value,ustrip,is_unit_convertible,wrap_to - Unit Systems —
unitsystem_of
Documentation
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unxt_api-2.0.0.tar.gz.
File metadata
- Download URL: unxt_api-2.0.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
164ae14673bde98c7358fba12e3e94080a26c979c72e2e8ad1298fd1531026fb
|
|
| MD5 |
01dafb70bef60003671744b2b941dd3f
|
|
| BLAKE2b-256 |
dd054fdcf04277ca3237d19388ee0c4902f5c52061f713316a9a7d0808b30ebe
|
Provenance
The following attestation bundles were made for unxt_api-2.0.0.tar.gz:
Publisher:
cd-publish-unxt-api.yml on GalacticDynamics/unxt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
unxt_api-2.0.0.tar.gz -
Subject digest:
164ae14673bde98c7358fba12e3e94080a26c979c72e2e8ad1298fd1531026fb - Sigstore transparency entry: 2236664334
- Sigstore integration time:
-
Permalink:
GalacticDynamics/unxt@26f8c18bde22a8f54aeb59bfb9382ce43a8e27d1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/GalacticDynamics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd-publish-unxt-api.yml@26f8c18bde22a8f54aeb59bfb9382ce43a8e27d1 -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file unxt_api-2.0.0-py3-none-any.whl.
File metadata
- Download URL: unxt_api-2.0.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10e19f7c31b29a8be6e54f266b0dd0bd8c861482ac1f46d0fecaddf5a29be160
|
|
| MD5 |
a2a8a45edede8b9e70d0dcb585de54fb
|
|
| BLAKE2b-256 |
29acb1faf16701501fde6241ab5df42f12a339d069b9d84b607f607d897fd1a9
|
Provenance
The following attestation bundles were made for unxt_api-2.0.0-py3-none-any.whl:
Publisher:
cd-publish-unxt-api.yml on GalacticDynamics/unxt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
unxt_api-2.0.0-py3-none-any.whl -
Subject digest:
10e19f7c31b29a8be6e54f266b0dd0bd8c861482ac1f46d0fecaddf5a29be160 - Sigstore transparency entry: 2236664681
- Sigstore integration time:
-
Permalink:
GalacticDynamics/unxt@26f8c18bde22a8f54aeb59bfb9382ce43a8e27d1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/GalacticDynamics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd-publish-unxt-api.yml@26f8c18bde22a8f54aeb59bfb9382ce43a8e27d1 -
Trigger Event:
workflow_run
-
Statement type: