Structs§
- CsvParser
Config - Configuration for CSV parsing and analysis.
- Encoding
Diagnostic - What
diagnose_non_utf8found about a file that failed UTF-8 decoding. - Memory
Mapped CsvReader - Memory-mapped CSV reader for efficient processing of large files.
- Quote
Outcome - Shared answer from a
QuoteTrackingReader, readable after the reader has been moved into a parser. - Quote
Tracking Reader - Pass-through reader that records whether its source ended inside a quoted field. See the module docs.
Functions§
- analyze_
csv_ file - Analyze a CSV file, returning a full
ProfileReport. - analyze_
csv_ from_ reader - Analyze CSV data from any
Readsource using streaming statistics. - detect_
delimiter - Detect the most likely CSV delimiter by sampling 4 KB of data, or more
when the header record is longer (see
detect_delimiter_with_head). - detect_
delimiter_ detailed detect_delimiter, returning what detection saw with the delimiter it chose (seedetect_delimiter_detailed_with_head).- detect_
delimiter_ detailed_ with_ head detect_delimiter_with_head, returning what detection saw with the delimiter it chose: the header’s field count and a candidate that read the sampled records as well, so a report can say when the choice was not clear (#1100).- detect_
delimiter_ from_ path - Detect the most likely CSV delimiter from a file path.
- detect_
delimiter_ with_ head - Detect the delimiter of a source and return it with the bytes read to detect it, so a caller that cannot rewind the source can chain them back in front of the rest.
- detection_
byte - The delimiter byte of a detection. Detection only ever chooses one of the ASCII candidates, so the recorded character is that byte.
- diagnose_
non_ utf8 - Inspect a file that failed UTF-8 decoding and guess its encoding.
- unterminated_
quote_ error - The error strict mode (
flexible = false) raises for a source that ended inside a quoted field.