Code Issues Releases

Releases

v1.0.0 — Initial Release

v1.0.0 · August 27, 2026

main

csv-to-json v1.0.0

A lightweight, zero-dependency Python CSV-to-JSON converter designed for AI agent and developer workflows.

Features

  • Type inference — automatically converts CSV values to int, float, bool, or null
  • Nested key expansion — dot-notation headers (e.g. user.name) become nested JSON objects
  • Streaming mode — process large CSV files row-by-row without loading into memory
  • Flexible input — accepts file paths, raw CSV strings, or stdin
  • CLI and library — use standalone from the command line or import into Python projects
  • Custom delimiters — supports comma, tab, pipe, or any single-character separator

Usage

python src/csv_converter.py data.csv -o output.json
cat data.csv | python src/csv_converter.py - --expand-keys --compact

Requirements

  • Python 3.10+
  • No external dependencies