I think that sorting text files is just as useful as copying and archiving already existing in shutil. Moreover, this functionality can be enriched by external sorting, which is necessary for very large files.
shutil.sort(src, dst, headers=0, delimiter=',', key=None, reverse=False, allow_disk_use=False)
I took all the arguments except
headers from different Python modules and functions.
allow_disk_use: pymongo (it’s spelled there as
Perfectionist remark .
It would be ideal to have archive support as an input and output.
Discussion on this subject was recently held in a bug tracker, and an early prototype was formed there. Issue was closed due to the negative opinion of two developers. I would like to initiate a conversation that will involve more participants in order to get a more thoughtful solution.