Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A simple storage for Flask based on siilo.

Project Description

A simple storage for Flask.

Free software: BSD license

Quickstart

Install flask_siilo:

pip install flask_siilo

In the app you must init the Storage:

from flask import Flask
from flask.ext.siilo import Storage

app = Flask(__name__)
storage = Storage(app)

As default is used siilo.storages.filesystem.FileSystemStorage and you must set DEFAULT_STORAGE_SETTINGS as dict with base_directory keyword:

app.config['DEFAULT_STORAGE_SETTINGS'] = {
    'base_directory': '/foo/bar/baz',
}

Multiple storages

For use with multiple storages you must set name on storage class:

from flask import Flask
from flask.ext.siilo import Storage

app = Flask(__name__)
default_storage = Storage(app)
foo_storage = Storage(app, name='foo')

and set FOO_STORAGE_SETTINGS:

app.config['FOO_STORAGE_SETTINGS'] = {
    'base_directory': '/foo/bar',
}

Settings

Storage classes

DEFAULT_STORAGE_CLASS (or SOMETHING_STORAGE_CLASS)

  • siilo.storages.amazon_s3.AmazonS3Storage
  • siilo.storages.filesystem.FileSystemStorage

DEFAULT_STORAGE_SETTINGS (or SOMETHING_STORAGE_SETTINGS)

History

0.1.0 (2014-10-21)

  • First release on PyPI.
Release History

Release History

This version
History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
flask_siilo-0.1.2-py2.py3-none-any.whl (4.6 kB) Copy SHA256 Checksum SHA256 3.5 Wheel Jan 12, 2016
flask_siilo-0.1.2.tar.gz (12.5 kB) Copy SHA256 Checksum SHA256 Source Jan 12, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting