InbarRose / irtools

A collection of useful tools for Automation, Devops, or anything really
MIT License
4 stars 1 forks source link

Iter read for file utils #27

Closed InbarRose closed 5 years ago

InbarRose commented 5 years ago

Is your feature request related to a problem? Please describe. I wanted to iterate over rows/lines in a file and filter some out. needed to read whole file first using the file utils. it would be nice to be able to get an iread method for reading csv files row by row

Describe the solution you'd like Should improve the file utils read methods to have iterators. IE: read* methods should be the same, but there should also be iread* methods (perhaps same for writing)

Describe alternatives you've considered writing it outside of the file utils, but that way there is no re-use

Additional context perhaps support filters/return headers should get headers list and generator of rows?

InbarRose commented 5 years ago

added in 1.0.3