larsyencken / csvdiff

Generate a diff between two tabular datasets expressed in CSV files.
BSD 3-Clause "New" or "Revised" License
132 stars 31 forks source link

Calling csvdiff --style=summary from python script #47

Closed joshgavinhong closed 5 years ago

joshgavinhong commented 5 years ago

Hey Lars - great tool ! very elegant ... !

Is there some way we can execute the --style summary from a python project?

larsyencken commented 5 years ago

Hi Josh, thank you!

It isn't part of the API per se, but you could use csvdiff._summarize_diff(diff, n_records_orig) to generate summaries programmatically.

Have a look and see if that helps you out