Skip to main content

Pudding

Coverage Status Documentation Status

Pudding converts text files into structured formats such as XML, JSON, or YAML. The syntax and parsing rules are defined using a custom DSL in .pud files.

The idea is based on Gelatin.

Features

  • Convert text to XML, JSON, and YAML
  • Custom grammar and rule definitions (.pud files)
  • Modular and extensible design
  • Supports complex parsing and output operations

Usage

CLI

pudding -s <SYNTAX> -f <FORMAT> <INPUT>
  • <SYNTAX>: Path to the syntax file
  • <FORMAT>: "xml", "json", or "yaml"
  • <INPUT>: File to convert

Python

Import convert_file, convert_files or convert_string:

from pudding import convert_file, convert_files, convert_string

Or directly import the Compiler, Context and Processor classes and create your own functions, statements or Writer.

Example

See files in tests/data folder.

Release files for pudding 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pudding 1.1.0
File Size Uploaded
pudding-1.1.0.tar.gz 40.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pudding 1.1.0
File Interpreter ABI Platform
pudding-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 98.7 kB

Release files / pudding-1.1.0.tar.gz

Download URL pudding-1.1.0.tar.gz
Size 40.1 kB
Tags Source
SHA-256 checksum
How to use checksums
49122f473fae572a6f2248f80c84102488ecb7f25af228c37a3e86132c1dc85b
BLAKE2b-256 checksum
How to use checksums
7ca590387c0963a23b8863c0ade4ca2b947f2a5b11b0fe8f386e4c58d13ae8ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2026.

Transparency log

Release files / pudding-1.1.0-py3-none-any.whl

Download URL pudding-1.1.0-py3-none-any.whl
Size 58.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2ea7110059d790c3b51b1ed6f412f38e5bc16e657eca902efe721cf0f804b4e
BLAKE2b-256 checksum
How to use checksums
4aff72981bab6ac5ba4ea67e15d79061fff0b39cda09aab01164286a78843e6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page