{ "info": { "author": "Harrington Joseph", "author_email": "hello@hjoseph.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "Blue Flask\n==========\n\nFlask boilerplate to create projects with the idea of pluggable blueprints.\n\n\nInstallation\n------------\n\n.. code-block::\n\n pip install blueflask\n\n\nUsage\n-----\n\nThe following command allows you to create a new app:\n\n.. code-block:: python\n\n blueflask newapp \n\n\nTutorial\n--------\n\n\nCreating A New App\n~~~~~~~~~~~~~~~~~~\n\nLet's assume that we are going to start a project called **bluedemo**. Execute\non your terminal:\n\n.. code-block::\n\n blueflask newapp bluedemo\n\n\nThis will create a directory with the name of the project and define a basic\nstructure for your project layout.\n\n\nRunning The APP\n~~~~~~~~~~~~~~~\n\nNext, go inside the directory of your project and install the dependencies.\nIf you are using *virtualenv* then, create and/or activate your environment\nbefore executing the following command bellow install your dependencies.\n\n.. code-block::\n\n pip install -r requirements.txt\n\n\nNow your project is ready to run. Execute the following command to start\nthe server:\n\n.. code-block::\n\n python run.py\n\nOr you can execute one of the Flask standard ways to run the application:\n\n.. code-block::\n\n export FLASK_APP=run.py\n flask run\n\n\nOr:\n\n.. code-block::\n\n python -m flask run\n\n\nEither one will start the application running on port 5000. Now you can go to\nyour browser and enter:\n\n+ `http://localhost:5000/`_\n\n+ `http://localhost:5000/demo/`_\n\nYou can play with some URLs like: `http://localhost:5000/demo/about/?value=some_random_value`_\n\nAs you can see, the last two URLs have a */demo* prefix. This is defined in the *blueprints/demo/config.py* file by the *url_prefix* under the *BLUEPRINT_INIT* dictionary. You can change the value of this for whatever you want or set it to *None* if you don't want any prefix.\n\n\nUnderstanding Your Application\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n\nNow that you have your application running, have a look to the basic architecture defined by BlueFlask. Look inside the *app/blueprints*\ndirectory. As you can see, there is a *main* and a *demo* directory. These directories are consider *pluggable-blueprint*, according to the BlueFlask idea. The structure of this directory is pretty simple:\n\n+ *__init__.py:* Makes the current directory a Python package.\n+ *config.py:* Blueprint specific settings and definitions.\n+ *urls.py:* Routes for that blueprint.\n+ *views.py* Functions or classes in charge of handing requests.\n\nFeel free to define more modules as you need them. I.e: *models.py*,\n*service.py*, *utils.py*, etc.\n\n\nCreating A New Blueprint.\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo create a new blueprint, you just have to create a new directory inside\nthe *blueprints* directory.\n", "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/harph/blueflask", "keywords": "blueflask", "license": "MIT license", "maintainer": null, "maintainer_email": null, "name": "blueflask", "package_url": "https://pypi.org/project/blueflask/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/blueflask/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/harph/blueflask" }, "release_url": "https://pypi.org/project/blueflask/0.1.4/", "requires_dist": null, "requires_python": null, "summary": "Flask boilerplate to create an application with the idea of pluggable blueprints.", "version": "0.1.4" }, "last_serial": 2424752, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "61049e6b4a07caac2faa915b37927084", "sha256": "af526e25c2956f20f737f2c7e1e66d13f5d0d88df90a551ea8e91a7e80d06a8b" }, "downloads": -1, "filename": "blueflask-0.1.0.tar.gz", "has_sig": false, "md5_digest": "61049e6b4a07caac2faa915b37927084", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1942, "upload_time": "2016-10-26T16:12:21", "url": "https://files.pythonhosted.org/packages/8b/9f/94c8e4bb01ffb40299daedb3d7eec5229e551f91b0d62ec3e8d130d2d955/blueflask-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e81676371e4048dcd66bf1a6ea0d5ae0", "sha256": "4ed59e83445b295f8db2b20ed99bc0f1eff5f91ab2f78740d2c23838c6b67b90" }, "downloads": -1, "filename": "blueflask-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e81676371e4048dcd66bf1a6ea0d5ae0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3905, "upload_time": "2016-10-26T16:50:52", "url": "https://files.pythonhosted.org/packages/67/9e/af6dfb3a6d8994903245adf81341582d5bdb2025795ac00aa64982c924a6/blueflask-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "f1ce6c1b99d72cfcf4fe992a81ede2d7", "sha256": "b9e69f8a1165650c6fd16202df77856cbed4222f05d46160e077f132d2a5c632" }, "downloads": -1, "filename": "blueflask-0.1.2.tar.gz", "has_sig": false, "md5_digest": "f1ce6c1b99d72cfcf4fe992a81ede2d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4555, "upload_time": "2016-10-26T17:46:33", "url": "https://files.pythonhosted.org/packages/87/3e/eb570fc0d45a920f6142043faad3d66b610483a65bd6c8cbf4e290731976/blueflask-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "4d5e7178d70b76ba2a4d07ba99bd6f5b", "sha256": "e5f308ef35afd03eef82ecef7a29cb988ecadf8182b2857056f1c569f7e83b74" }, "downloads": -1, "filename": "blueflask-0.1.3.tar.gz", "has_sig": false, "md5_digest": "4d5e7178d70b76ba2a4d07ba99bd6f5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4025, "upload_time": "2016-10-26T18:49:55", "url": "https://files.pythonhosted.org/packages/b4/a3/013ed3b3496977e23fb9e4e4247df2c97038d0021eca18cdd68c96efac4b/blueflask-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "0a89099e0769800eb25ba5255e1ab8e3", "sha256": "ed89d477973b816267484b88196153b9c01fde252cd3b33c0dc97313e448a3e6" }, "downloads": -1, "filename": "blueflask-0.1.4.tar.gz", "has_sig": false, "md5_digest": "0a89099e0769800eb25ba5255e1ab8e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5360, "upload_time": "2016-10-26T19:07:49", "url": "https://files.pythonhosted.org/packages/12/b7/6f0e005159f3dd3974eab95d90594fe3fd06d8aae4238a77041308626e10/blueflask-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0a89099e0769800eb25ba5255e1ab8e3", "sha256": "ed89d477973b816267484b88196153b9c01fde252cd3b33c0dc97313e448a3e6" }, "downloads": -1, "filename": "blueflask-0.1.4.tar.gz", "has_sig": false, "md5_digest": "0a89099e0769800eb25ba5255e1ab8e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5360, "upload_time": "2016-10-26T19:07:49", "url": "https://files.pythonhosted.org/packages/12/b7/6f0e005159f3dd3974eab95d90594fe3fd06d8aae4238a77041308626e10/blueflask-0.1.4.tar.gz" } ] }