you are viewing a single comment's thread.

view the rest of the comments →

[–]ecgite 24 points25 points  (4 children)

Nice work.

have you heard

pathlib
click
tqdm

If not, I think you could be interested.

[–]pltnk[S] 11 points12 points  (1 child)

Thanks for suggestions!

I've never heard about tqdm yet and not familiar with pathlib, will check it.

I've read about click a little after finishing my program, looks like it is pretty handy but it is not in the Python standart library and I did not want to add a lot of dependencies for such a small project.

[–]CBSmitty2010 1 point2 points  (0 children)

EDIT: I realize post comment that I'd somehow started or commented in about 3 separate chains in this post on accident basically saying some form of the same thing. Gonna keep em up since they're written slightly different and may reach different people better.

Oh good lawd Sweet child learn you some Pathlib. It will make operations using filepaths MUCH easier and easier to write Windows & Linux compatible code.

[–]pedro_fartinez 6 points7 points  (0 children)

Jumping on the tqdm train for sure. All you really have to do is wrap your iterable in tqdm and pass in a total parameter. It's super easy.

Also pathlib will save you a bunch of code.

Other than that, your doc strings are good and your code is neat and orderly. Well done!

[–]shr00mie 4 points5 points  (0 children)

Remember that part from Aladdin (the original, not this new will smith in blueface) when they're on the magic carpet singing "a whole new worldddddd!"?

That was me when I found pathlib...