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.4.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.4-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xian_tech_runtime_types-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 d139253516e6f37d070c7f8eae7deb6fbc4c3ad90dfbcaeb128b7c83d0142a9b
MD5 379b9e1398a54a57f5083025a13e2536
BLAKE2b-256 1b84a0a424edaf8b9130e4b222be58ee7bf87fdbb353d5d7ce5eaba94462ee54

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xian_tech_runtime_types-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 02019fc20f9810d21d94a06f888115871501dec6373b903b90207bac49920542
MD5 d7c164992d83ad88697a42f6ed8ccebe
BLAKE2b-256 ea8420ada02a5dcfd7dcb9eb4bb6af4ed0caead1893856567a542134650e42ab

See more details on using hashes here.

Provenance

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