SQLAlchemy-file is a SQLAlchemy extension for attaching files to SQLAlchemy model and uploading them to various storage such as Local Storage, Amazon S3, Rackspace CloudFiles, Google Storage and others using Apache Libcloud.
This exposes the StoredFile class to the user.
The main benefit is that it allows users to benefit from completion in their editor when they get a copy of a StoredFile via the StorageManager.get_file() method.
For example, it's impossible to type-hint this function right now:
This exposes the
StoredFile
class to the user. The main benefit is that it allows users to benefit from completion in their editor when they get a copy of a StoredFile via theStorageManager.get_file()
method.For example, it's impossible to type-hint this function right now: