Skip to main content

unxt-hypothesis

Note: As of v2.0.0, unxt-hypothesis is a backward-compatible shim for unxts.hypothesis — the new canonical location for this package. No code changes are required: import unxt_hypothesis continues to work exactly as before. New projects should prefer pip install unxts.hypothesis and import unxts.hypothesis.

Hypothesis strategies for property-based testing with unxt.

Installation

pip install unxt-hypothesis       # legacy name — continues to work long-term
pip install unxts.hypothesis      # canonical name going forward

Migration

If you currently depend on unxt-hypothesis, you have two options:

  1. Do nothing — unxt-hypothesis re-exports the full public API from unxts.hypothesis and will be maintained long-term. Existing code requires no changes.

  2. Migrate to unxts.hypothesis — change your dependency and imports:

    - pip install unxt-hypothesis
    + pip install unxts.hypothesis
    
    - import unxt_hypothesis as ust
    + import unxts.hypothesis as ust
    

    All public strategies (quantities, units, angles, unitsystems, etc.) are identical — the canonical package is the source of truth and the shim simply re-exports from it.

Strategies

  • named_dimensions() — physical dimensions from Astropy's catalogue
  • units(dimension) — random Unit objects
  • derived_units(base) — dimensionally-equivalent units
  • quantities(*, shape, dtype, unit) — random Quantity objects
  • unitsystems(*units) — random UnitSystem objects
  • angles(*, wrap_to) — random Angle objects
  • wrap_to(quantity, min, max) — range-constrained quantities

Quick Start

from hypothesis import given
import unxt as u
import unxts.hypothesis as ust  # or: import unxt_hypothesis as ust


@given(q=ust.quantities(unit="km/s"))
def test_velocity(q):
    assert q.unit == u.unit("km/s")

Documentation

Metadata

Release files for unxt-hypothesis 2.2.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 unxt-hypothesis 2.2.0
File Size Uploaded Provenance Actions
unxt_hypothesis-2.2.0.tar.gz 4.6 kB With provenance Details for unxt_hypothesis-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unxt-hypothesis 2.2.0
File Interpreter ABI Platform Actions
unxt_hypothesis-2.2.0-py3-none-any.whl Python 3 none any Details for unxt_hypothesis-2.2.0-py3-none-any.whl

Total release size: 8.4 kB

Release files / unxt_hypothesis-2.2.0.tar.gz

Download URL unxt_hypothesis-2.2.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bb3f0d59553fad3ec2cc54faef7c59c4a7534a8dbcd8c8abaf44978ce748a2d4
BLAKE2b-256 checksum
How to use checksums
4e43667b3e3f61776d2234f3f7a1615bb05d46fb9ef91ac7e78b4ca397787e66
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 18, 2026.

Transparency log

Release files / unxt_hypothesis-2.2.0-py3-none-any.whl

Download URL unxt_hypothesis-2.2.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f89ead5df2052d19a68739d97194e0b58a3e1a34f6cc9ccf407de2580a64579
BLAKE2b-256 checksum
How to use checksums
77bb96fecbd45a90c32ce83bcc59c66aa79202dd0ae0608828292639f62049e3
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 18, 2026.

Transparency log

Security for unxt-hypothesis 2.2.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 unxt_hypothesis-2.2.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 18, 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