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

Uploaded Python 3

File details

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

File metadata

  • Download URL: xian_tech_runtime_types-0.1.3.tar.gz
  • Upload date:
  • Size: 7.8 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.3.tar.gz
Algorithm Hash digest
SHA256 2df6805b91d6ce01f5f5c82f1198b6fe79951f1466a6cf87ff50a92a0e98af9b
MD5 f168cc40e718709dbc467d5e4ba4cdb3
BLAKE2b-256 5ff70b0cfd0409b56d4ca823bd0efe4083f161a8e004b77bedd3483ff6c21739

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xian_tech_runtime_types-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d21ab7f7cd1d87faf676a54cb85c065a601c10bf672d2c9465ed504017d44f66
MD5 6631b53ecb5a123c2e9f8935d9caa4ab
BLAKE2b-256 b2f05ae93729383b0becc8ca82f6a0c0ece483e6e341bcaac6849bbc6160d943

See more details on using hashes here.

Provenance

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