Skip to main content
https://badge.fury.io/py/flask_siilo.png https://travis-ci.org/s-m-i-t-a/flask_siilo.png?branch=master https://pypip.in/d/flask_siilo/badge.png https://coveralls.io/repos/s-m-i-t-a/flask_siilo/badge.png Requirements Status

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.

Download files

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

Source Distribution

flask_siilo-0.1.2.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flask_siilo-0.1.2-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file flask_siilo-0.1.2.tar.gz.

File metadata

  • Download URL: flask_siilo-0.1.2.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for flask_siilo-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ec0672f4473b86ebe40f3c6d0b68985ac88739595db662a2277ade0440e258e6
MD5 3b99a7a0e680de71376b56e205f96388
BLAKE2b-256 ea1270db7feff0bd07a0941096c44ec45ee839b049c00a55fa993ec6447964b6

See more details on using hashes here.

File details

Details for the file flask_siilo-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for flask_siilo-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5279ec9458419c897490efb8870e57116885a14ad4a13b620daafa2263432c37
MD5 26511231b76060657e26d99872a0ca2a
BLAKE2b-256 06767e338b152325b8ba50fb38a59580c32a66f02164e320abb81ff82ee51f5a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

1 file

0.1.0

1 file

Supported by

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