I am dreaming of a Python library which abstracts the file handling of my application.
The application should run in two different configurations:
- No storage server. All file operations get done on the local disk.
- With storage server. All file operations should get done via s3.
I would like to do separation of concerns.
The application code should not care which configuration gets used. Choosing the right configuration (with or without storage server) gets done via configuration management.
I don't need all file operations which I can do via
os.path. I just need all operations which can be done via s3.
Other required features:
- Open source: BSD or LGPL, not GPL
- Support for Linux. Other operating systems are not important in this context.
Distinction / out off scope
I don't want all file operations (like
os.walk()). I just need the fundamental storage APIs of s3, but without a running storage server.