csvvalidator
csvvalidator copied to clipboard
A small CSV validator library for Python.
Adapts the package for python3 where _viewkeys_ is now _keys_.
Hi, Nice package! Would be nice to add a feature to silence the output of the validate function, where you can optionally omit the "record" and "value" output of "problems"...
``` def add_unique_check(self, key, code=UNIQUE_CHECK_FAILED, message=MESSAGES[UNIQUE_CHECK_FAILED]): """ Add a unique check on a single column or combination of columns. Arguments --------- `key` - a single field name (string) specifying a...
Hi, what the way to load the schema from DB?
When using a csv.reader object, the validator assumes that there is a header present and skips validation on first line.
It would be nice if validators automatically counted the number of records processed and made this available to final assert or check functions somehow.
It would be nice to be able to configure the title of the validation report produced by write_problems.
It would be nice if validators also supported a validate_dicts method in addition to the existing validate method, to support validation of a sequence of dictionaries (e.g., as provided by...
It would be nice to be able to define validators without having to fix the set of expected field names. I.e., if it were an option for a validator to...