jowilf / sqlalchemy-file

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.
https://jowilf.github.io/sqlalchemy-file/
MIT License
95 stars 12 forks source link

Expose StoredFile #145

Closed Matthieu-LAURENT39 closed 9 months ago

Matthieu-LAURENT39 commented 9 months ago

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: image