Metadata-Version: 2.4
Name: flask-storage
Version: 1.4.4
Summary: Flask storage
Author-email: Etalab <etalab@data.gouv.fr>
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Flask >= 2.1, < 4.0
Requires-Dist: Pillow >= 9.2, < 13
Requires-Dist: boto3 >= 1.26, < 2.0
Requires-Dist: mongoengine >= 0.29.1, < 1.0.0
Requires-Dist: werkzeug >= 2.2.3, < 4.0.0
Requires-Dist: flake8 >= 4.0, < 5.0 ; extra == "dev"
Requires-Dist: flit >= 3.6, < 4.0 ; extra == "dev"
Requires-Dist: pytest >= 7.1, < 8.0 ; extra == "test"
Requires-Dist: pytest-faker >= 2.0, < 3.0 ; extra == "test"
Requires-Dist: pytest-flask >= 1.2, < 2.0 ; extra == "test"
Requires-Dist: pytest-sugar >= 0.9, < 1.0 ; extra == "test"
Requires-Dist: pytest-mock >= 3.8, < 4.0 ; extra == "test"
Project-URL: Home, https://github.com/etalab/flask-storage
Provides-Extra: dev
Provides-Extra: test

# Flask-Storage

Simple and easy file storages for Flask

Flask-Storage is a community driven fork of [Flask-FS](https://github.com/noirbizarre/flask-fs)


## Compatibility

Flask-Storage requires 3.11+ and Flask 1.1.4.

Amazon S3 support requires Boto3.


## Installation

You can install Flask-Storage with pip:

.. code-block:: console

    $ pip install flask-storage
    # or
    $ pip install flask-storage[s3]  # For Amazon S3 backend support


## Quick start

.. code-block:: python

    from flask import Flask
    import flask_storage as fs

    app = Flask(__name__)
    fs.init_app(app)

    images = fs.Storage('images')


    if __name__ == '__main__':
        app.run(debug=True)


## Documentation

The full documentation is hosted [on Read the Docs](http://flask-storage.readthedocs.org/en/latest/)

