<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>IO on Ometeotl, an abstract decision meta-model</title><link>https://kakchouch.github.io/ometeotl/documentation/class-reference/io/</link><description>Recent content in IO on Ometeotl, an abstract decision meta-model</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://kakchouch.github.io/ometeotl/documentation/class-reference/io/index.xml" rel="self" type="application/rss+xml"/><item><title>World export</title><link>https://kakchouch.github.io/ometeotl/documentation/class-reference/io/world-export/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://kakchouch.github.io/ometeotl/documentation/class-reference/io/world-export/</guid><description>&lt;p&gt;Source:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/kakchouch/ometeotl/blob/main/src/ometeotl_core/io/exporters.py"&gt;src/ometeotl_core/io/exporters.py&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Local role:
Canonical JSON and YAML serialization of a &lt;code&gt;World&lt;/code&gt; instance.&lt;/p&gt;
&lt;p&gt;Big-picture role:
The IO export layer is a thin orchestration wrapper. It calls &lt;code&gt;World.to_dict()&lt;/code&gt; for the canonical payload, normalizes all guarded container subclasses to plain Python dicts and lists via &lt;code&gt;_deep_plain_copy&lt;/code&gt;, then formats the result to the requested text format. This keeps serialization ownership in &lt;code&gt;model&lt;/code&gt; and format ownership in &lt;code&gt;io&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="public-functions"&gt;Public functions&lt;/h2&gt;
&lt;h3 id="world_to_mappingworld"&gt;&lt;code&gt;world_to_mapping(world)&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Returns the canonical plain-dict payload for a world.
Uses &lt;code&gt;_deep_plain_copy&lt;/code&gt; to strip guarded subclasses before returning, so the result is safe to pass to any serializer.&lt;/p&gt;</description></item><item><title>World import</title><link>https://kakchouch.github.io/ometeotl/documentation/class-reference/io/world-import/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://kakchouch.github.io/ometeotl/documentation/class-reference/io/world-import/</guid><description>&lt;p&gt;Source:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/kakchouch/ometeotl/blob/main/src/ometeotl_core/io/importers.py"&gt;src/ometeotl_core/io/importers.py&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Local role:
Validated reconstruction of a &lt;code&gt;World&lt;/code&gt; from JSON text, YAML text, or an already-parsed mapping.&lt;/p&gt;
&lt;p&gt;Big-picture role:
The import pipeline composes the existing &lt;code&gt;SyntacticValidator&lt;/code&gt;, &lt;code&gt;StructuralValidator&lt;/code&gt;, and &lt;code&gt;ValidationPipeline&lt;/code&gt; from &lt;code&gt;ometeotl_core.validation&lt;/code&gt; with &lt;code&gt;World.from_dict&lt;/code&gt; from &lt;code&gt;ometeotl_core.model&lt;/code&gt;. It keeps parse, validate, and reconstruct as separate internal steps so each failure mode is individually diagnosable. Business logic and serialization rules remain in &lt;code&gt;model&lt;/code&gt;; validation rules remain in &lt;code&gt;validation&lt;/code&gt;; IO only orchestrates.&lt;/p&gt;
&lt;h2 id="worldimportresult"&gt;&lt;code&gt;WorldImportResult&lt;/code&gt;&lt;/h2&gt;
&lt;p&gt;Frozen dataclass returned by every import helper.&lt;/p&gt;</description></item></channel></rss>