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.
Metadata
Release files for flask_siilo 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| flask_siilo-0.1.2.tar.gz | 12.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_siilo-0.1.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 17.1 kB
Release files / flask_siilo-0.1.2.tar.gz
| Download URL | flask_siilo-0.1.2.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec0672f4473b86ebe40f3c6d0b68985ac88739595db662a2277ade0440e258e6
|
|
BLAKE2b-256 checksum How to use checksums |
ea1270db7feff0bd07a0941096c44ec45ee839b049c00a55fa993ec6447964b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / flask_siilo-0.1.2-py2.py3-none-any.whl
| Download URL | flask_siilo-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5279ec9458419c897490efb8870e57116885a14ad4a13b620daafa2263432c37
|
|
BLAKE2b-256 checksum How to use checksums |
06767e338b152325b8ba50fb38a59580c32a66f02164e320abb81ff82ee51f5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for flask_siilo 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.