{
"info": {
"author": "Thomas Sileo",
"author_email": "thomas.sileo@gmail.com",
"bugtrack_url": null,
"classifiers": [],
"description": "==============\n Flask-Yeoman\n==============\n\nA `Flask `_ blueprint to make create web application using `Yeoman `_ and Flask an easy task.\n\n\nFeatures\n--------\n\n* Automatically inject Flask config in index.html\n* Support for development and production mode\n\n\nInstallation\n------------\n\n.. code-block:: console\n\n $ pip install flask-yeoman\n\n\nGetting Started\n---------------\n\nYou must create a new task in your Gruntfile.js file:\n\n.. code-block:: javascript\n\n // New task for flask server\n grunt.registerTask('flask', 'Run flask server.', function() {\n var spawn = require('child_process').spawn;\n grunt.log.writeln('Starting Flask development server.');\n // stdio: 'inherit' let us see flask output in grunt\n process.env.FLASK_YEOMAN_DEBUG = 1;\n var PIPE = {stdio: 'inherit'};\n spawn('python', ['server.py'], PIPE);\n });\n\nAnd replace the ``connect:reload`` task by ``flask`` in the server task:\n\n.. code-block:: javascript\n\n grunt.registerTask('server', function (target) {\n if (target === 'dist') {\n return grunt.task.run(['build', 'open', 'connect:dist:keepalive']);\n } else if (target === 'test') {\n return grunt.task.run([\n 'clean:server',\n 'coffee',\n 'createDefaultTemplate',\n 'jst',\n 'compass:server',\n 'connect:test:keepalive'\n ]);\n }\n\n grunt.task.run([\n 'clean:server',\n 'coffee:dist',\n 'createDefaultTemplate',\n 'jst',\n 'compass:server',\n 'flask',\n 'open',\n 'watch'\n ]);\n });\n\n\nFinally, create a server.py file in at the root of your yeoman app:\n\n.. code-block:: python\n\n from flask import Flask, jsonify\n from flask_yeoman import flask_yeoman\n\n app = Flask(__name__)\n app.register_blueprint(flask_yeoman)\n\n if __name__ == \"__main__\":\n app.run(host='0.0.0.0', port=5000)\n\nAnd for the livereload support, add this snippet before the closing body in your index.html file:\n\n.. code-block:: html\n\n {% if config.FLASK_YEOMAN_DEBUG %}\n \n \n {% endif %}\n\n\nLicense (MIT)\n-------------\n\nCopyright (c) 2013 Thomas Sileo\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/tsileo/flask-yeoman/",
"keywords": "flask yeoman",
"license": "MIT",
"maintainer": null,
"maintainer_email": null,
"name": "flask-yeoman",
"package_url": "https://pypi.org/project/flask-yeoman/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/flask-yeoman/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/tsileo/flask-yeoman/"
},
"release_url": "https://pypi.org/project/flask-yeoman/0.1.0/",
"requires_dist": null,
"requires_python": null,
"summary": "UNKNOWN",
"version": "0.1.0"
},
"last_serial": 864987,
"releases": {
"0.1.0": []
},
"urls": []
}