Examples¶
Runnable example scripts demonstrating etcion features. All scripts are in the examples/ directory and can be run directly:
python examples/quick_start.py
Example Gallery¶
| Example | File | Features |
|---|---|---|
| Pet Shop | examples/pet_shop.py |
Full model across all layers, XML export |
| Quick Start | examples/quick_start.py |
Minimal 4-element model with validation |
| Validation Demo | examples/validation_demo.py |
Invalid relationships, error inspection, custom rules |
| XML Round-Trip | examples/xml_roundtrip.py |
Export to XML, reimport, compare with diff |
| Viewpoint Filter | examples/viewpoint_filter.py |
Apply predefined viewpoint, create a filtered view |
| Profile Extension | examples/profile_extension.py |
Custom specializations and extended attributes |
| Query Builder | examples/query_builder.py |
Filter by type, layer, name; relationship traversal |
| Model Diff | examples/model_diff.py |
Compare two model versions, inspect changes |