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 docs in docs/development/contributing.md.

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.1.tar.gz (60.3 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.1-py3-none-any.whl (63.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: extended_data_types-6.2.1.tar.gz
  • Upload date:
  • Size: 60.3 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.1.tar.gz
Algorithm Hash digest
SHA256 f8034fc26041dab498635c0797c742f7b996fdc2f71e54158ad42b04aa9ff07b
MD5 792c46eafbb8f6a753a89baf3bcf6d19
BLAKE2b-256 4e93d9de692ac438fad8cd89221f713bd9bcfba434dd13af480d3d0a02f475f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: extended_data_types-6.2.1-py3-none-any.whl
  • Upload date:
  • Size: 63.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5712212f33ab698722fce2f5447c73d4021e6268280000fe1312a00c3b80eaf2
MD5 481007b5d81717ecc37312b3bb3f24a3
BLAKE2b-256 debc1bc4092b06639e0762c1cd849aebf23305ddc4263b9c0154d93e2d4b0e45

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