python-docx2txt
python-docx2txt copied to clipboard
Is there the possibility to pass the entire file instead of the file name in the process() function?
Haven't tried this, but perhaps it's possible using the methods described here:
https://stackoverflow.com/a/38587909/142780
The idea is that you need to create a file-like object from the file contents. This should work if you pass it into process because that in turn calls zipfile.ZileFile which according to the docs does accept a file -like object.
Let us know how you get on, as it sounds like this well be useful 🙂