dhanzhelo / Flask-Imagine-AzureAdapter

Microsoft Azure BLOB adapter for Flask-Imagine

Home Page:http://flask-imagine.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask-Imagine-AzureAdapter

Author GitHub license Documentation Status

Microsoft Azure BLOB storage adapter for Flask-Imagine extension.

Installation

$ pip install Flask-Imagine-AzureAdapter

Configuration example

from flask import Flask
from flask.ext.imagine import Imagine
from flask.ext.imagine_azure_adapter import FlaskImagineAzureAdapter

app = Flask(__name__)

app.config['IMAGINE_ADAPTERS'] = {
    'azure': FlaskImagineAzureAdapter
}

app.config['IMAGINE_ADAPTER'] = {
    'name': 'azure',
    'account_name': 'your_account_name',
    'account_key': 'your_account_key',
    'container_name': 'your_container_name',
    'domain': 'domain.tld'      # Domain name for using static website hosting
    'schema': 'https'
}

# ... Another configuration options

# Init extension
imagine = Imagine(app)
#  or 
imagine = Imagine()
imagine.init_app(app)

About

Microsoft Azure BLOB adapter for Flask-Imagine

http://flask-imagine.readthedocs.org/

License:MIT License


Languages

Language:Python 100.0%