moin
moin copied to clipboard
Use PyfileSystem2
PyfileSystem2
Think of PyFilesystem's FS objects as the next logical step to Python's file objects. In the same way that file objects abstract a single file, FS objects abstract an entire filesystem.
- https://www.pyfilesystem.org/
- https://github.com/pyfilesystem/pyfilesystem2
In our case it handles zip or tar objects the same way as SVG or any text item. At least it may be useful to replace any container item storage.
if we add PyfileSystem2 to storage.backends.fileserver than a lot more filesystems could be used by this https://docs.pyfilesystem.org/en/latest/openers.html