Skip to main content

Simple and easy file storages for Flask

Project description

Simple and easy file buckets for Flask

Compatibility

Flask-Buckets requires Python 2.7+ and Flask 0.10+.

Amazon S3 support requires Boto.

OpenStack Swift support requires python-swift-client.

GridFS support requires PyMongo.

Installation

You can install Flask-Buckets with pip:

$ pip install flask-buckets
# or
$ pip install flask-buckets[s3]  # For Amazon S3 backend support
$ pip install flask-buckets[swift]  # For OpenStack swift backend support
$ pip install flask-buckets[gridfs]  # For GridFS backend support
$ pip install flask-buckets[all]  # To include all dependencies for all backends

or with easy_install:

$ easy_install flask-buckets
# or
$ easy_install flask-buckets[s3]  # For Amazon S3 backend support
$ easy_install flask-buckets[swift]  # For OpenStack swift backend support
$ easy_install flask-buckets[gridfs]  # For GridFS backend support
$ easy_install flask-buckets[all]  # To include all dependencies for all backends

Quick start

TODO: a quick hello world with Flask-Buckets

from flask import Flask
from flask.ext import buckets

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

images = buckets.Bucket('images')


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

Documentation

The full documentation is hosted on Read the Docs

Changelog

Current

  • Initial release

Project details


Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page