Skip to main content

Shared deterministic runtime types for the Xian stack

Project description

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.

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

Project details


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.2.tar.gz (7.9 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.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xian_tech_runtime_types-0.1.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xian_tech_runtime_types-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c93075001b13033f4d1253976ca4d9fb6844989424a398e30e36273b164f5f90
MD5 f3d3547002f1673b29e4f17bc0ac88ac
BLAKE2b-256 960b7114403b3c33615da8a660593e8b374251a55002e45109843897c983d768

See more details on using hashes here.

Provenance

The following attestation bundles were made for xian_tech_runtime_types-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for xian_tech_runtime_types-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e876088cbcfcc66238003cfd58832be2cf4b7c2b36acc45fd584abcf67237d22
MD5 1ebc8c2eda79347cf001fa88601d1a48
BLAKE2b-256 46163b13679f846b086e3a8a0648fc1d189c3ba1b8f6fc660a61c5df39d153aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for xian_tech_runtime_types-0.1.2-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.

Supported by

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