{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/2"}],"enrichment":{"capability":"CleverCSV detects CSV file dialects automatically and provides a drop-in replacement for Python's csv module, plus a command-line tool for standardizing messy CSV files and generating import code.","skillfed_tags":["csv-parsing","data-wrangling","cli-tool"],"use_cases":["Automatically import a CSV file without manual dialect inspection or trial-and-error parameter tuning.","Batch-process a directory of CSV files with varying formats and detect each one's dialect programmatically.","Generate boilerplate Python code to import a messy CSV file, then integrate it into a data pipeline.","Use the command-line tool to standardize or explore a CSV file before loading it into a database or data analysis tool.","Handle CSV files from external sources where format is unknown or inconsistent."],"what_it_does":"CleverCSV is a Python library that automatically detects the dialect (delimiter, quote character, escape character, etc.) of CSV files using pattern-based machine learning trained on real-world data. It wraps the standard library's csv module with improved dialect detection and adds convenience functions like read_table(), read_dataframe(), and read_dicts() that handle dialect and encoding detection automatically. The package also includes a command-line tool for detecting dialects, generating Python import code, and exploring CSV files interactively.\n\nThe core problem it solves is the brittleness of manual CSV parsing: the Python csv module's Sniffer often fails on non-standard or messy files because it has no way to distinguish between valid but unusual dialects. CleverCSV uses row-length patterns and inferred data types to make more robust decisions, achieving high accuracy even on files with inconsistent formatting, missing headers, or unusual delimiters.","worth_installing":"Yes. CleverCSV is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and solves a real problem\u2014automatic dialect detection for messy CSV files. The package shows solid adoption with 1332 GitHub stars. Install friction is medium but manageable. It's worth installing if you regularly work with CSV files from untrusted or varied sources, or if you want to avoid manual dialect inspection."},"id":"clevercsv","links":{"html":"https://skillfed.io/packages/clevercsv","md":"https://skillfed.io/packages/clevercsv.md","pypi":"https://pypi.org/project/clevercsv/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-11","license_spdx":null,"license_treatment":"permissive","name":"clevercsv","python_support":"supports_current","summary":"A Python package for handling messy CSV files"},"popularity":{"monthly_downloads":461088,"position":6535,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.8.5"}
