# alan-turing-institute/CleverCSV

CleverCSV is a Python package for handling messy CSV files. It provides a drop-in replacement for the builtin CSV module with improved dialect detection, and comes with a handy command line application for working with CSV files.

Repository: https://github.com/alan-turing-institute/CleverCSV
Canonical: https://ross.abutalabs.com/products/clevercsv
Homepage: https://clevercsv.readthedocs.io
Language: Python
License: MIT
License Family: permissive
Topics: csv, csv-reader, csv-format, csv-parsing, csv-files, csv-parser, csv-import, csv-converter, csv-reading, csv-export, python, python3, python-library, data-science, datascience, data-mining, data-analysis, machine-learning
Last push: 2026-08-10T18:22:43+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 51, longevity 100
- inputs: {"age_days": 2772, "days_push": 23, "days_rel": 114, "gap_med": 259.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1333, forks 82 (observed 2026-08-28T04:04:24.584835+00:00)

## What it is
CleverCSV is a Python package that provides a drop-in replacement for the built-in csv module with improved dialect detection for messy CSV files. It also includes a command-line tool for standardizing messy files and generating Python import code.

## Use cases
- detect the delimiter of a messy csv file
- parse csv files with unknown formatting in python
- standardize inconsistent csv files
- generate python code to import a csv file
- replace python csv module with better dialect detection
- clean up csv files before data analysis

## When to choose
- you need to read CSV files with unknown or inconsistent dialects
- you want a drop-in replacement for Python's csv module
- you need CLI utilities to normalize or inspect CSV files

## When to avoid
- you only handle well-formed, consistent CSV files
- you need CSV handling in a language other than Python

## Facets
- artifact type: library
- maturity: active
- function: parser, csv, cli, data-science
- domain: data-science, files, developer-tools, parsers
- platform: python, cli, cross-platform
- tags: csv-dialect-detection, drop-in-replacement, messy-data, data-wrangling

## Member repositories
- alan-turing-institute/CleverCSV (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:24.584835+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:44:40.230872+00:00, confidence not recorded.
  - readme: https://github.com/alan-turing-institute/CleverCSV (fetched 2026-08-28T04:04:24.584835+00:00, sha e74fcef9b3f2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
