Fast Rust-powered serialization for embedding Python objects in CSV fields.
name=adam;hobbies=[cycling|rowing|chess];height=175cm;
Supports: strings, ints, floats, bools, None, lists, nested dicts. Special characters are backslash-escaped. All delimiters are configurable.
pip install hotchpotchimport hotchpotch
cfg = hotchpotch.FormatConfig()
s = hotchpotch.dumps({"name": "adam", "hobbies": ["cycling", "rowing"], "age": 30}, cfg)
# → "age=30;hobbies=[cycling|rowing];name=adam;"
data = hotchpotch.loads(s, cfg)
# → {"age": 30, "hobbies": ["cycling", "rowing"], "name": "adam"}cfg = hotchpotch.FormatConfig(field_sep='&', kv_sep=':', list_sep=',')