Skip to main content

xian-tech-runtime-types

Shared deterministic runtime types for the Xian stack.

Contents

  • decimal.py: fixed-precision ContractingDecimal and decimal bounds
  • time.py: deterministic Datetime and Timedelta
  • collections.py: deterministic set and frozenset implementations
  • encoding.py: JSON encoding/decoding for runtime storage values

These types are used by xian-contracting and other packages that need the same deterministic value semantics without importing the full contract runtime.

The encoder and convert_dict normalize nested lists and dictionaries recursively. Large integers use __big_int__ at every depth; booleans retain their JSON type.

Validation

The package is covered by the root test suite:

uv run pytest -q tests/unit/test_decimal.py tests/unit/test_datetime.py \
  tests/unit/test_timedelta.py tests/unit/test_contracting_collections.py \
  tests/unit/test_encode.py

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xian_tech_runtime_types-0.1.5.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

xian_tech_runtime_types-0.1.5-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file xian_tech_runtime_types-0.1.5.tar.gz.

File metadata

  • Download URL: xian_tech_runtime_types-0.1.5.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xian_tech_runtime_types-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f26b11b3d58a40ca2e7536d0a76e92f982040349c6cd1f433a1956a31fb73923
MD5 29c5987aa27b05e319c7637463b23099
BLAKE2b-256 261e892c284a958f0e229755f06e8302f32a8ef4bcdd5f4c84a903e5ee20ceed

See more details on using hashes here.

Provenance

The following attestation bundles were made for xian_tech_runtime_types-0.1.5.tar.gz:

Publisher: release.yml on xian-technology/xian-contracting

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

File details

Details for the file xian_tech_runtime_types-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for xian_tech_runtime_types-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b62775b6275661c61708f04b02b162691158a364a98b374e161d0281ac77adf4
MD5 56d6a9e39aa340265fc711c376a7bdbc
BLAKE2b-256 5e808b105198d7f65053897b015882899856347b094c9884522bb63ee9e75e9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for xian_tech_runtime_types-0.1.5-py3-none-any.whl:

Publisher: release.yml on xian-technology/xian-contracting

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

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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