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 AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page