============ Flask-IIIF ============ .. currentmodule:: flask_iiif .. image:: https://img.shields.io/travis/inveniosoftware/flask-iiif.svg :target: https://travis-ci.org/inveniosoftware/flask-iiif .. image:: https://img.shields.io/coveralls/inveniosoftware/flask-iiif.svg :target: https://coveralls.io/r/inveniosoftware/flask-iiif .. image:: https://img.shields.io/github/tag/inveniosoftware/flask-iiif.svg :target: https://github.com/inveniosoftware/flask-iiif/releases .. image:: https://img.shields.io/pypi/dm/flask-iiif.svg :target: https://pypi.python.org/pypi/flask-iiif .. image:: https://img.shields.io/github/license/inveniosoftware/flask-iiif.svg :target: https://github.com/inveniosoftware/flask-iiif/blob/master/LICENSE Flask-IIIF is a Flask extension permitting easy integration with the International Image Interoperability Framework (IIIF) API standards. Contents -------- .. contents:: :local: :backlinks: none Installation ============ Flask-IIIF is on PyPI so all you need is : .. code-block:: console $ pip install flask-iiif The development version can be downloaded from `its page at GitHub `_. .. code-block:: console $ git clone https://github.com/inveniosoftware/flask-iiif.git $ cd flask-iiif $ python setup.py develop $ ./run-tests.sh Requirements ^^^^^^^^^^^^ Flask-IIIF has the following dependencies: * `Flask `_ * `blinker `_ * `six `_ Flask-IIIF requires Python version 2.6, 2.7 or 3.3+ Quickstart ========== This part of the documentation will show you how to get started in using Flask-IIIF with Flask. This guide assumes that you have successfully installed Flask-IIIF and that you have a working understanding of Flask framework. If not, please follow the installation steps and read about Flask at http://flask.pocoo.org/docs/. A Minimal Example ^^^^^^^^^^^^^^^^^ A minimal Flask-IIIF usage example looks like this. First, let's create the application and initialise the extension: .. code-block:: python from flask import Flask, session, redirect from flask_iiif import IIIF app = Flask("myapp") ext = IIIF(app=app) Second, let's create *Flask-RESTful* ``api`` instance and register image resource. .. code-block:: python from flask_restful import Api api = Api(app=app) ext.init_restful(api) Configuration ============= .. automodule:: flask_iiif.config :members: API === This documentation section is automatically generated from Flask-IIIF source code. Flask-IIIF ^^^^^^^^^^ .. automodule:: flask_iiif.api :members: Cache ^^^^^ .. automodule:: flask_iiif.cache.cache :members: .. automodule:: flask_iiif.cache.redis :members: .. automodule:: flask_iiif.cache.simple :members: RESTful ^^^^^^^ .. automodule:: flask_iiif.restful :members: .. include:: ../CHANGES .. include:: ../CONTRIBUTING.rst License ======= .. include:: ../LICENSE In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an Intergovernmental Organization or submit itself to any jurisdiction. .. include:: ../AUTHORS