Skip to main content

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; raises ValueError on 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)

Source distribution for serp-csv 0.2.0
File Size Uploaded
serp_csv-0.2.0.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for serp-csv 0.2.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page