background preloader

Web

Facebook Twitter

Brython. Pygreen. Requests. Gunicorn. Django. Tastypie. Django-Grappelli. Flask. Welcome to Flask’s documentation. Get started with Installation and then get an overview with the Quickstart. There is also a more detailed Tutorial that shows how to create a small but complete application with Flask. Common patterns are described in the Patterns for Flask section. The rest of the docs describe each component of Flask in detail, with a full reference in the API section. Flask depends on the Werkzeug WSGI toolkit, the Jinja template engine, and the Click CLI toolkit. User’s Guide¶ Flask provides configuration and conventions, with sensible defaults, to get started. API Reference¶ If you are looking for information on a specific function, class or method, this part of the documentation is for you.

Additional Notes¶ Flask-peewee. Jinja2. Jinja2 is a modern and designer friendly templating language for Python, modelled after Django’s templates. It is fast, widely used and secure with the optional sandboxed template execution environment: <title>{% block title %}{% endblock %}</title><ul>{% for user in users %} <li><a href="{{ user.url }}">{{ user.username }}</a></li>{% endfor %}</ul> Features: sandboxed executionpowerful automatic HTML escaping system for XSS preventiontemplate inheritancecompiles down to the optimal python code just in timeoptional ahead of time template compilationeasy to debug. Line numbers of exceptions directly point to the correct line in the template.configurable syntax Additional Information If you can’t find the information you’re looking for, have a look at the index or try to find it using the search function:

Flask-OAuth. Flask-OAuth is an extension to Flask that allows you to interact with remote OAuth enabled applications. Currently it only implements the consumer interface so you cannot expose your own API with OAuth. Flak-OAuth depends on the python-oauth2 module. Features Support for OAuth 1.0aFriendly APIDirect integration with FlaskBasic support for remote method invocation of RESTful APIs Installation Install the extension with one of the following commands: $ pip install Flask-OAuth Alternatively, use easy_install: $ easy_install Flask-OAuth Defining Remote Applications To connect to a remote application create a OAuth object and register a remote application on it using the remote_app() method: from flask_oauth import OAuth oauth = OAuth()the_remote_app = oauth.remote_app('the remote app', ...) A remote application must define several URLs required by the OAuth machinery: request_token_urlaccess_token_urlauthorize_url Additionally the application should define an issued consumer_key and consumer_secret.