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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for xian_tech_runtime_types-0.1.4b1.tar.gz
Algorithm Hash digest
SHA256 7b382239944be7e34856682a39857b0ded97632e0a7797b60d3b6928f49751d0
MD5 dd5616c72719fe1c678c08338cbe307f
BLAKE2b-256 a12cc77a6d8205d347f600f3b6a6ec1ce2ca4a5a3fa1758d1013a3a9cc290f2b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for xian_tech_runtime_types-0.1.4b1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c7d26c213c68ad59f733966cd4ac45064c07daa91ee9205dab99cf1798b573a
MD5 00175e69e09481fc6d0eb0f7dae563e0
BLAKE2b-256 c5788067e32ad4c3e9c96e9b5ed8559cbe9bd96d0278b963029888b540d80c45

See more details on using hashes here.

Provenance

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