Skip to main content

Extended functionality for data types

Project description

Extended Data Types

Typed utilities for serialization, repository-aware file workflows, YAML and HCL interoperability, and automation-friendly transformation pipelines.

CI Status PyPI Package latest release Supported versions

Supported Python Versions

extended-data-types supports Python 3.10, 3.11, 3.12, 3.13, and 3.14.

Public API Model

  • extended_data_types is the backward-compatible root convenience surface.
  • extended_data_types.transformations.numbers and extended_data_types.transformations.strings expose the richer namespaced transformation APIs.
  • extended_data_types.yaml_utils is the documented advanced surface for tagged YAML values and lower-level YAML helpers.

Key Features

  • Serialization helpers for YAML, JSON, TOML, HCL, and Base64.
  • Repository-aware file helpers for reading, writing, decoding, and path resolution.
  • Map, list, and type utilities for normalization and deep composition.
  • String and number transformations for case conversion, words, ordinals, and fractions.
  • Predictable read/decode/write boundaries for larger automation and agentic systems.

Quick Start

from extended_data_types import decode_file, encode_hcl2, encode_yaml, read_file, write_file

config = {"service": "api", "enabled": True}
write_file("config.yaml", config, tld=".")

yaml_text = read_file("config.yaml", tld=".")
decoded = decode_file(yaml_text, file_path="config.yaml")

terraform = {"locals": [{"region": "us-east-1"}]}
hcl_text = encode_hcl2(terraform)

print(encode_yaml(decoded))
print(hcl_text)

Documentation

Contributing

Contributions are welcome. See the shared Contributing Guidelines.

Project Links

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

extended_data_types-6.2.2.tar.gz (51.2 kB view details)

Uploaded Source

Built Distribution

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

extended_data_types-6.2.2-py3-none-any.whl (50.2 kB view details)

Uploaded Python 3

File details

Details for the file extended_data_types-6.2.2.tar.gz.

File metadata

  • Download URL: extended_data_types-6.2.2.tar.gz
  • Upload date:
  • Size: 51.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for extended_data_types-6.2.2.tar.gz
Algorithm Hash digest
SHA256 d2cbb5f0b714ab7d1af2e39be0d37eff0b1ce1cc9f8ec11f7bb76d18f2dfab64
MD5 33dcf12073e0c37bc66374783a7c6c4b
BLAKE2b-256 d7e2b69829c40c3a797a729003e9fb7f9d178a9ba25a4aca826878021d2b33d2

See more details on using hashes here.

File details

Details for the file extended_data_types-6.2.2-py3-none-any.whl.

File metadata

  • Download URL: extended_data_types-6.2.2-py3-none-any.whl
  • Upload date:
  • Size: 50.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for extended_data_types-6.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 085397bd3ac201e0069338720b6f22691ad08ece5b7e77192598967a848b7c1c
MD5 aa106a76135e238ae6bc786574292b77
BLAKE2b-256 843d2cd6f8bb0b8122d32d7c4c3632529c0f41831f1519e2ff89dcc535421473

See more details on using hashes here.

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