Skip to main content

LombokCSV — Python port

Python implementation of the LombokCSV contract: RFC 4180 CSV parsing, column type detection, safe HTML tables, JSON export and GROUP BY aggregation. Zero runtime dependencies.

Item Value
Package lombokcsv (PyPI)
Version 1.1.0
Contract SPEC
Vectors runs all 152 cases in vectors/lombokcsv-vectors-v1.json
Acceptance every vector case passes with byte-identical results (GP-11)
Python >= 3.9

Installation

pip install lombokcsv

The package has not been published to PyPI yet; until then install from the repository root (pip install ./python).

Quick start

from lombokcsv import CSV, AggregationOptions

csv = CSV("Region,Product,Qty\nWest,Rice,120\nWest,Corn,80\nEast,Rice,95")

csv.get_headers()  # ['Region', 'Product', 'Qty']
csv.get_types()    # ['string', 'string', 'number']
csv.to_json()      # [{'Region': 'West', 'Product': 'Rice', 'Qty': '120'}, ...]
csv.to_html()

csv.aggregate(AggregationOptions(group_by="Region", sum=["Qty"], avg=["Qty"], count=True))
# [{'Region': 'West', 'Qty_sum': 200.0, 'Qty_avg': 100.0, 'count': 2},
#  {'Region': 'East', 'Qty_sum': 95.0, 'Qty_avg': 95.0, 'count': 1}]

The Python API mirrors the TypeScript reference with PEP 8 names: toJSON → to_json, getHeaders → get_headers, className → class_name, hasHeader → has_header. Behaviour, error codes (INVALID_OPTION, UNKNOWN_COLUMN) and the [CODE] message texts are identical across ports (SPEC section 7).

Development

python -m pip install pytest coverage
python -m coverage run --branch --source=lombokcsv -m pytest -q
python -m coverage report -m --fail-under=90

Contributions are welcome; see CONTRIBUTING.md.

Metadata

Release files for lombokcsv 1.1.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 lombokcsv 1.1.0
File Size Uploaded Provenance Actions
lombokcsv-1.1.0.tar.gz 11.4 kB With provenance Details for lombokcsv-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lombokcsv 1.1.0
File Interpreter ABI Platform Actions
lombokcsv-1.1.0-py3-none-any.whl Python 3 none any Details for lombokcsv-1.1.0-py3-none-any.whl

Total release size: 21.7 kB

Release files / lombokcsv-1.1.0.tar.gz

Download URL lombokcsv-1.1.0.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
06ce4aa95b5b5c284a90c3ea5708aa7e8a1513aad418493d4251689b325e5c29
BLAKE2b-256 checksum
How to use checksums
bbbb4ace5c16704278e41f232b10eb2c591dcf923d8ec339df7199ba31d24823
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / lombokcsv-1.1.0-py3-none-any.whl

Download URL lombokcsv-1.1.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ad02197ffc0dd8385cd4b6e35704e44c3c778162f549656316d18a160070c93
BLAKE2b-256 checksum
How to use checksums
361e962005b1b8aaec0ad85ac2da7b214a956444981fbbf5166f291038994d5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for lombokcsv 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lombokcsv-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files Full provenance

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