serp-csv
CSV reader/writer written in the Serpentine subset, following RFC 4180.
API
parse(text) -> list[list[str]]— handles quoted fields, embedded commas, doubled-quote escapes, newlines inside quotes, LF / CRLF records; raisesValueErroron an unterminated quote.parse_line(line) -> list[str]— first record only.format_field(s)/needs_quoting(s)— QUOTE_MINIMAL-style quoting.format_row(list[str]) -> str— one record, no terminator.format_rows(list[list[str]]) -> str— CRLF-terminated records (matches CPython csv's default lineterminator).
Install
serp add serp-csv
pip install serp-csv
Metadata
Release files for serp-csv 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| serp_csv-0.2.0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| serp_csv-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / serp_csv-0.2.0.tar.gz
| Download URL | serp_csv-0.2.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0b36ee86c0d4516de95a89e2758755952f6c1592ed9bdc6ab90ffbed1d16347
|
|
BLAKE2b-256 checksum How to use checksums |
94325947cc2d3a7a56ddee80e6b75b579741344768e843453b58198b748962ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / serp_csv-0.2.0-py3-none-any.whl
| Download URL | serp_csv-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9abbfdbed675236927094d9e35f75395c96c4b18c89d3f5684731990fe7bc3c
|
|
BLAKE2b-256 checksum How to use checksums |
9e2473ef72383d68e8527a9968c2e8f60fb16e1b341ed534bad1d80d5404a086
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|