Start building

Files, storage and batch

XML and fixed-width: union and stable partitions

Native large-file ETL with owned streams and bounded buffers. Gallery fixtures are small synthetic data; the same stages operate on operator-approved large files. No AI or remote network calls.

  • XML → CSV
  • via Fixed-width, Files
  • Advanced
  • 20 min

Last verified 2026-10-31 at f4ce7d0 — simulation fixtures

Try this template in Studio

Studio activation is a one-time payment of USD 20.

Flow

Drawn at build time from the node positions in the template's process definitions. Numbered markers are the walkthrough stages.

Main processXML + fixed-width → union → partitions → profile11 activities

Scroll sideways to see the whole flow.

Flow diagram of XML + fixed-width → union → partitions → profile11 activities and 10 transitions: Start, Xml File, Xml, Fixed File, Fixed, United, Partitioned, Profile, Csv, Save, End.StartstartXml Filestream.open_fileXmletl.read1Fixed Filestream.open_fileFixedetl.readUnitedetl.union2Partitionedetl.partition3Profileetl.profileCsvetl.writeSavestream.to_fileEndend
List the 11 activities and 10 transitions

Activities

  1. Start start
  2. Xml File stream.open_file
  3. Xml etl.read
  4. Fixed File stream.open_file
  5. Fixed etl.read
  6. United etl.union
  7. Partitioned etl.partition
  8. Profile etl.profile
  9. Csv etl.write
  10. Save stream.to_file
  11. End end

Transitions

  • Start → Xml File (on success)
  • Xml File → Xml (on success)
  • Xml → Fixed File (on success)
  • Fixed File → Fixed (on success)
  • Fixed → United (on success)
  • United → Partitioned (on success)
  • Partitioned → Profile (on success)
  • Profile → Csv (on success)
  • Csv → Save (on success)
  • Save → End (on success)

Walkthrough

  1. Parse XML rowsSAX extracts configured paths without loading a DOM.
  2. Unify recordsExplicit compatible field names before union.
  3. Partition deterministicallyThe same key stays in one of four partitions. No distributed workers are launched.

What you will practise

  • Pass stream references instead of complete arrays.
  • Use explicit row and byte buffers plus operator disk/deadline quotas.
  • Preserve data integrity and inspect rejects before publication.
  • Run pinned native subprocesses; no alternative execution engine.

Sample cases

1 case with 2 assertions, run with python -m server.integration examples --all in simulation.

Unify

Passed

Deterministic synthetic example with assertions.

Expected result Every listed check must pass; simulation writes do not publish real files.

2/2 assertions

  • Run status
  • /rows

This sample run only; not a production certification.

Prerequisites

Runtime
Cohuno runtime 1.27.0, the version recorded when these cases last passed.
Starter
Manual start; no listener.
Optional dependencies
  • Large-file ETL dependencies (requirements-large-batch.txt) needed in every run, simulation included
Selected for this closure by the same rules as runtime packaging.
Simulation fixtures
  • large_files file · stream.open_file, stream.to_file
Every sample run replaces these connections with the fixtures defined in its case. A live run needs an operator to configure an authorized connection for each.
Verification details

Provenance

What was verified, and when. The content part changes whenever the pack, a process in its closure, the runtime version or a case result changes; the gallery check then fails until the gallery is regenerated and the changed templates are verified again.

Verified content

Pack SHA-256
169dd90419d54f1a755f77bc2d948fbc2bd8241006c306830a334db8f50a45ee
Closure SHA-256
c602a9165a94abe79c9701da371fe308c9fa2537b59c811e2745586f4979cbef
Runtime
1.27.0
Results
1/1 cases, 2/2 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/large_xml_fixed_lab.json
  • server/integration/templates/lb_xml_unify.json

Verification event

Commit
f4ce7d08eedc90267b405ed1974344153a8b3a34
Verified at (UTC)
2026-10-31T21:19:21Z

How the Cohuno team reproduces this check

PYTHONPATH=. python -m server.integration examples --example large_xml_fixed_lab
PYTHONPATH=. python scripts/export_public_gallery.py --check