background preloader

Flask

Facebook Twitter

REST API Framework

Tutorials. Flask (A Python Microframework) Flask. Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions.

Flask

And before you ask: It's BSD licensed! Flask runs on Dreamhost via Passenger WSGI. Set up an environment using virtualenv virtualenv-1.5.2/virtualenv.py --no-site-packages --distribute $HOME/flask_env Activate it and install Flask cd flask_env source bin/activate easy_install pip pip install Flask Use the Dreamhost Control Panel to create a Passenger WSGI domain inside of your virtualenv Web directory: /home/username/flask_env/public Passenger (Ruby/Python apps only): Yes! Put your Flask site inside of the virtualenv, but not inside of the public dir cd $HOME/flask_env mkdir mysite Put a passenger_wsgi.py file inside of the virtualenv. import sys, os INTERP = os.path.join(os.environ['HOME'], 'flask_env', 'bin', 'python') if sys.executable !

To force a refresh of your site after making changes, touch restart.txt: Flask-Script — Flask-Script v0.3 documentation.

Bootstrap

Blueprints. Rest-api-blueprint 0.1. Pedagogical blueprint of a REST API in Flask.

rest-api-blueprint 0.1

This is an exploration into how best to create a REST API using Python (version 2.7) and the excellent micro-web framework Flask. It aims to be a pedagogical blueprint rather than a library or utility. A more prosaic and honest statement of the goal is to provide a clean exposition with code of my current (but evolving) tastes in the design and structure of a REST API built with Python and Flask. The scope includes automatic testing, documentation, authentication, capability switching, data formats, mime types, and unicode.

As the focus is on REST API structure and expression, the scope does not include things like ORM's and templating engines. See the Wiki for discussion and explanation. Note that this is not a library so much as an approach to be read and copied. Start the example app server: -/code/rest-api-blueprint$ python server.py * Running on * Restarting with reloader ... Add person details with the example app: To run the tests: or. Deploy Python WSGI Applications with Apache and mod_wsgi on Ubuntu 10.04 (Lucid. Warning This document is an older, unmaintained guide.

Deploy Python WSGI Applications with Apache and mod_wsgi on Ubuntu 10.04 (Lucid

There may be a new guide available for this software. The WSGI specification provides a standard and efficient method for dynamic web applications to communicate with web servers. mod_wsgi provides a method for simply deploying WSGI applications with Apache. WSGI is used to deploy applications written with frameworks and tools like Django, Web.py, Werkzug, Chery.py, TurboGears, and Flask.

These guides outline this installation and configuration process for deploying WSGI applications. Before you begin installing and configuring the components described in this guide, please make sure you've followed our instructions for setting your hostname. Flask-OAuth — Flask-OAuth. Flask-OAuth is an extension to Flask that allows you to interact with remote OAuth enabled applications.

Flask-OAuth — Flask-OAuth

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: Flask-SQLAlchemy — Flask-SQLAlchemy 0.15 documentation. Flask-WTF — Flask-WTF v0.3 documentation.

Flask-WTF offers simple integration with WTForms.

Flask-WTF — Flask-WTF v0.3 documentation

Current Version The current version of Flask-WTF is 0.9.3. View other versions of documentation at Read the Docs. Features Integration with wtforms.Secure Form with csrf token.Global csrf protection.Recaptcha supporting.File upload that works with Flask-Uploads.Internationalization integration. User’s Guide This part of the documentation, which is mostly prose, begins with some background information about Flask-WTF, then focuses on step-by-step instructions for getting the most out of Flask-WTF. API Documentation If you are looking for information on a specific function, class or method, this part of the documentation is for you. Package Index : Flask-MongoAlchemy 0.1. 744700 - minimal set of delicious.com backup source (using mongodb)- GitHub.

Hasgeek/doctypehtml5 - GitHub. Flask Boilerplate - swaroopch - GitHub.

Mobile