Metadata-Version: 2.4
Name: hotchpotch
Version: 0.1.8
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: General
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
License-File: LICENSE
Summary: Fast Rust-powered serialization format for embedding Python objects in CSV fields
Keywords: csv,serialization,parser,rust,pyo3
Author-email: gebz97 <gebz97@proton.me>
License-Expression: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/gebz97/hotchpotch
Project-URL: Issues, https://github.com/gebz97/hotchpotch/issues
Project-URL: Repository, https://github.com/gebz97/hotchpotch

# hotchpotch

Fast Rust-powered serialization for embedding Python objects in CSV fields.

## Format
```
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.

## Install
```bash
pip install hotchpotch
```

## Usage
```python
import 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"}
```

## Custom delimiters
```python
cfg = hotchpotch.FormatConfig(field_sep='&', kv_sep=':', list_sep=',')
```
