Transmog Documentation¶
Transforms nested JSON data into flat, tabular formats while preserving relationships between parent and child records.
Overview¶
Transmog flattens nested objects, extracts arrays into separate tables, generates unique identifiers, and supports CSV, Parquet, ORC, and Avro output formats with configurable error handling and batch processing.
Example¶
import transmog as tm
data = {"company": "TechCorp", "employees": [{"name": "Alice", "role": "Engineer"}]}
result = tm.flatten(data, name="companies")
print(result.main) # Main company data
print(result.tables) # Employee data in separate table
Documentation¶
Getting Started - Installation and tutorial
Configuration - Configuration parameters and logging
Array Handling - Array processing modes
ID Management - ID generation strategies
Error Handling - Exception types and error handling
Output Formats - CSV, Parquet, ORC, and Avro output
Streaming - Large dataset processing
API Reference - Function and class documentation
Contributing - Development guide