mixle.data.sources.text_source module¶
Text connectors – CSV / JSON / JSONL (NDJSON) into a DataSource.
Pure standard library: usable in the base install with no extra. A Schema
turns the raw strings into the Python types encoders expect (CSV columns are all strings until coerced).
- read_csv(path, columns=None, *, structure=EXCHANGEABLE, schema=None)[source]
Read a CSV file (header row required) into a lazy DataSource of scalar/tuple records.
- read_jsonl(path, columns=None, *, structure=EXCHANGEABLE, schema=None)[source]
Read NDJSON / JSONL (one JSON object per line) into a lazy DataSource of dict/tuple records.