Skip to main content

unxt-api

Note: As of v2.0.0, unxt-api is a backward-compatible shim for unxts.api — the new canonical location for this package. No code changes are required: import unxt_api continues to work exactly as before. New projects should prefer pip install unxts.api and import 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:

  1. Do nothingunxt-api re-exports the full public API from unxts.api and will be maintained long-term. Existing code requires no changes.

  2. 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

  • Dimensionsdimension, dimension_of
  • Unitsunit, unit_of
  • Quantitiesuconvert, uconvert_value, ustrip, is_unit_convertible, wrap_to
  • Unit Systemsunitsystem_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

unxt_api-2.0.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unxt_api-2.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

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

Hashes for unxt_api-2.0.0.tar.gz
Algorithm Hash digest
SHA256 164ae14673bde98c7358fba12e3e94080a26c979c72e2e8ad1298fd1531026fb
MD5 01dafb70bef60003671744b2b941dd3f
BLAKE2b-256 dd054fdcf04277ca3237d19388ee0c4902f5c52061f713316a9a7d0808b30ebe

See more details on using hashes here.

Provenance

The following attestation bundles were made for unxt_api-2.0.0.tar.gz:

Publisher: cd-publish-unxt-api.yml on GalacticDynamics/unxt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for unxt_api-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10e19f7c31b29a8be6e54f266b0dd0bd8c861482ac1f46d0fecaddf5a29be160
MD5 a2a8a45edede8b9e70d0dcb585de54fb
BLAKE2b-256 29acb1faf16701501fde6241ab5df42f12a339d069b9d84b607f607d897fd1a9

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page