{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/3"}],"enrichment":{"capability":"Reads and writes CSV files using Python dataclasses, with automatic type conversion, validation, and error reporting tied to specific CSV line numbers.","skillfed_tags":["csv-parsing","dataclass-mapping","type-validation"],"use_cases":["Load CSV data into typed objects for data processing pipelines where type safety and early error detection matter","Validate CSV imports before storing in a database, with line-number feedback for fixing malformed rows","Export application data to CSV by passing a list of dataclass instances to DataclassWriter","Map CSV columns with non-standard names to dataclass fields without manual column indexing","Parse datetime or numeric fields from CSV with automatic conversion and format control"],"what_it_does":"Dataclass CSV bridges Python's dataclasses and CSV file handling by reading CSV rows directly into typed dataclass instances instead of dictionaries. It performs automatic type conversion and validation based on dataclass field annotations, catching type mismatches and reporting the exact CSV line where errors occur. The library also provides a writer to serialize dataclass instances back to CSV.\n\nThe package is designed to reduce boilerplate: instead of manually looping through CSV rows, converting strings to the correct types, validating data, and applying defaults, you define a dataclass with type hints and let DataclassReader handle the rest. It supports field mapping for mismatched column names, default values, and datetime formatting via decorators.","worth_installing":"Yes. Zero runtime dependencies, active maintenance, permissive license, and no known vulnerabilities make it a low-risk choice. Install it if you work with CSV files and want type safety and cleaner code than dict-based approaches; skip it only if you need advanced CSV features (e.g., streaming very large files, complex nested structures) beyond the library's scope."},"id":"dataclass-csv","links":{"html":"https://skillfed.io/packages/dataclass-csv","md":"https://skillfed.io/packages/dataclass-csv.md","pypi":"https://pypi.org/project/dataclass-csv/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-02-01","license_spdx":null,"license_treatment":"permissive","name":"dataclass-csv","python_support":"supports_current","summary":"Map CSV data into dataclasses"},"popularity":{"monthly_downloads":133250,"position":11524,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.4.1"}
