{ "info": { "author": "Christian Becker", "author_email": "christian@dabecka.de", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "===========\nFlask-Bower\n===========\n\nFlask-Bower provides a method to manage and serve `bower `_ installed packages. This simplifies javascript dependency management a lot.\n\nTo provide this, there is a flask blueprint to serve content from your ``bower_components`` directory and use ``url_for()`` for serving the files same as serving files form flask static folder.\n\nUsage\n-----\n\n| Flask-Bower is available on PyPi: https://pypi.python.org/pypi/Flask-Bower/\n|\n| So just add it to your requirements.txt or install using ``pip install flask-bower``\n|\n| First you have to add it to your app\n\n::\n\n from flask_bower import Bower\n\n [...]\n\n Bower(app)\n\n| This provides the ``/bower`` url route.\n|\n| Per default, the ``bower_components`` directory has to be inside the app directory (``app/bower_components`` - like your ``static`` and ``templates`` directories). Another directory can be specified using ``BOWER_COMPONENTS_ROOT``\n|\n| Install your packages like ``jquery`` with bower: ``bower install -S jquery``\n\nNow it should look like::\n\n $ ls -1 app/bower_components/jquery\n MIT-LICENSE.txt\n bower.json\n dist\n src\n\n\nTo include and use this, you can use ``url_for()``::\n\n \n\n\nConfiguration\n-------------\n\nThere are several configuration options to customize the behavior:\n\n``BOWER_COMPONENTS_ROOT``\n default: ``bower_components``\n\n Directory name containing your installed bower packages\n\n``BOWER_KEEP_DEPRECATED``\n default: ``True``\n\n Keep deprecated functions available\n\n Note: deprecated functions will be removed in future versions\n\n affected functions:\n\n - ``bower_url_for`` - please migrate to ``url_for('bower.static', filename='component/path')``\n\n``BOWER_QUERYSTRING_REVVING``\n default: ``True``\n\n Append ?version= parameter to url (useful for cache busting by updates). It tries to detect the version in the following order:\n\n 1. bower.json\n 2. package.json (if available)\n 3. file modification timestamp\n\n``BOWER_REPLACE_URL_FOR``\n default: ``False``\n\n Replace flasks ``url_for()`` function in templates.\n\n This is useful - but not recommended - to build an \"overlay\" for the static folder.\n\n **Warning:** Replacing ``url_for()`` causes conflicts with other flask extensions like ``flask-cdn``, since only one extension can replace ``url_for()`` at a time and the last registered extension wins.\n\n``BOWER_SUBDOMAIN``\n default: ``None``\n\n Subdomain to serve the content like ``static`` (see flask blueprint documentation for subdomains)\n\n``BOWER_TRY_MINIFIED``\n default: ``True``\n\n Check if a minified version is available and serve this instead (check if a file with ``.min.`` like ``jquery/dist/jquery.min.js`` exists)\n\n``BOWER_URL_PREFIX``\n default: ``/bower``\n\n Customize the url prefix\n\n\nDeprecations\n------------\n\n``bower_url_for(component, file)``\n==================================\n\n | This is now deprecated since it is a break of the development workflow due to the use of a different function than ``url_for()``, which is the default for url handling in flask.\n |\n | Since v1.1.0 it is possible to use the default ``url_for()`` function also for flask assets::\n\n ::\n\n url_for('bower.static', filename='component/path')\n\n Use of this new approach is recommended to all developers and to simplify the migration the ``bower_url_for()`` function will stay available for a while; though it can be disabled to help migrating (see ``BOWER_KEEP_DEPRECATED``)\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/lobeck/flask-bower", "keywords": "", "license": "GPLv2", "maintainer": "", "maintainer_email": "", "name": "Flask-Bower", "package_url": "https://pypi.org/project/Flask-Bower/", "platform": "any", "project_url": "https://pypi.org/project/Flask-Bower/", "project_urls": { "Homepage": "http://github.com/lobeck/flask-bower" }, "release_url": "https://pypi.org/project/Flask-Bower/1.3.0/", "requires_dist": null, "requires_python": "", "summary": "An extension to manage and serve your javascript assets with bower", "version": "1.3.0" }, "last_serial": 3016141, "releases": { "1.0.0": [], "1.0.1": [ { "comment_text": "", "digests": { "md5": "a0fef9efcdd62600c3a1b91d8e6caf28", "sha256": "92a426033e827457341ca84519150fe123905513f14124003a0cd4be199b450f" }, "downloads": -1, "filename": "Flask-Bower-1.0.1.tar.gz", "has_sig": false, "md5_digest": "a0fef9efcdd62600c3a1b91d8e6caf28", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3623, "upload_time": "2015-02-02T13:29:42", "url": "https://files.pythonhosted.org/packages/c4/a8/818615ea2b80b18af729c49caec923483559d80f0c2c1c3e9b71feee6af6/Flask-Bower-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "ac7dacce84c4db78c2c0069bceb1be5b", "sha256": "f6a6c93f1885cd3f34d1973568c485b89862b73acddf3044a015937c0463b7a0" }, "downloads": -1, "filename": "Flask-Bower-1.1.0.tar.gz", "has_sig": false, "md5_digest": "ac7dacce84c4db78c2c0069bceb1be5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5064, "upload_time": "2015-03-21T14:26:09", "url": "https://files.pythonhosted.org/packages/6b/a2/e49b5f6afe3656aa1ffe4ed9885beefdb8449c91f866c0c6fad21dae001a/Flask-Bower-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "9c2909fd5383a7e62dd839c355102496", "sha256": "0804274850540ec2dee93c6d369402dae2d947c33edda93d308390aa49d617bb" }, "downloads": -1, "filename": "Flask_Bower-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9c2909fd5383a7e62dd839c355102496", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 7855, "upload_time": "2015-03-22T15:52:18", "url": "https://files.pythonhosted.org/packages/29/02/f49f45f4e0b63311e89d6f49dacdba22ac0f6c0e373e0bdd27c0a72e2abc/Flask_Bower-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e55c06aa5d0da2e6183a5cbc9b2fcc04", "sha256": "480d54b9aa46aeb8f3f8f27fa88676c613fbd14c95c2f888481d309555fbcce4" }, "downloads": -1, "filename": "Flask-Bower-1.1.1.tar.gz", "has_sig": false, "md5_digest": "e55c06aa5d0da2e6183a5cbc9b2fcc04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5104, "upload_time": "2015-03-22T15:52:15", "url": "https://files.pythonhosted.org/packages/44/5e/6a0bab240cff5301ee15bcf7e4fa98ed310f7ff634f7b47e6a215eb2fdff/Flask-Bower-1.1.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "e009f7490d84fb0db348c5899ca7fa22", "sha256": "4965d967c91c038edc9fdfddfdd5b128a68880f740b6ee92620c45b401e2b3c8" }, "downloads": -1, "filename": "Flask-Bower-1.2.0.tar.gz", "has_sig": false, "md5_digest": "e009f7490d84fb0db348c5899ca7fa22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5161, "upload_time": "2015-07-03T23:36:51", "url": "https://files.pythonhosted.org/packages/3e/41/bdce16c6ececf8b0dd136a6798a007dc21bc78a6fdf3335d890dede8ee46/Flask-Bower-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "e1ff69afc8169a9dde17f4f794aca084", "sha256": "faca689cb6a3c585b05d8d29622619eb588be4494ca00a3c5b023592b2a4a448" }, "downloads": -1, "filename": "Flask_Bower-1.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e1ff69afc8169a9dde17f4f794aca084", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 7984, "upload_time": "2015-07-15T00:23:04", "url": "https://files.pythonhosted.org/packages/9d/f0/42c866ca206fc58ff93f70db38628e4b6248d74e3fda7655e7ab7b1c464b/Flask_Bower-1.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "91fa024f89af4adb5c67798efcf44428", "sha256": "b93a8980e9fa8f79ead457e742815fce81f142de5e5c72654fe769aa34339f14" }, "downloads": -1, "filename": "Flask-Bower-1.2.1.tar.gz", "has_sig": false, "md5_digest": "91fa024f89af4adb5c67798efcf44428", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5155, "upload_time": "2015-07-15T00:23:17", "url": "https://files.pythonhosted.org/packages/a4/8b/8759e631e50a6544a3351528b5bc12636c166e418c39c3a72a8d630e85d1/Flask-Bower-1.2.1.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "ab1f428541a5c8d753240aa8dce3b1da", "sha256": "16b5919e4b95f736403f3b843d0cbe06ff30493a26524ef85522be1922b1bc5b" }, "downloads": -1, "filename": "Flask_Bower-1.3.0-py2-none-any.whl", "has_sig": false, "md5_digest": "ab1f428541a5c8d753240aa8dce3b1da", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7600, "upload_time": "2017-07-12T00:47:51", "url": "https://files.pythonhosted.org/packages/41/14/231820b32859762e2a7f5d66dac8287426f9597c8f17addaf74dc2348626/Flask_Bower-1.3.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "81a8265d45e384e501539c4830c27415", "sha256": "00842ee71667a34c82ef9688df3e50241f367022ccd64675967e5f3c2282c2a0" }, "downloads": -1, "filename": "Flask_Bower-1.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "81a8265d45e384e501539c4830c27415", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 7598, "upload_time": "2017-07-12T00:48:36", "url": "https://files.pythonhosted.org/packages/61/6a/8600081f0bf5dda08ab677f9a57ca871060cc51df047ea2826cdd2a673b3/Flask_Bower-1.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2d830b187d83c009abac0379431a46b2", "sha256": "3b884a80d872f7cfaf5b351aa90af4afaadc02588a764e1071de56963d6cbcb8" }, "downloads": -1, "filename": "Flask-Bower-1.3.0.tar.gz", "has_sig": false, "md5_digest": "2d830b187d83c009abac0379431a46b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4937, "upload_time": "2017-07-12T00:47:49", "url": "https://files.pythonhosted.org/packages/47/32/1733dc8b74efd05a609546c322c9ad74c4441ec79652e3e19986f7fd720d/Flask-Bower-1.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ab1f428541a5c8d753240aa8dce3b1da", "sha256": "16b5919e4b95f736403f3b843d0cbe06ff30493a26524ef85522be1922b1bc5b" }, "downloads": -1, "filename": "Flask_Bower-1.3.0-py2-none-any.whl", "has_sig": false, "md5_digest": "ab1f428541a5c8d753240aa8dce3b1da", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7600, "upload_time": "2017-07-12T00:47:51", "url": "https://files.pythonhosted.org/packages/41/14/231820b32859762e2a7f5d66dac8287426f9597c8f17addaf74dc2348626/Flask_Bower-1.3.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "81a8265d45e384e501539c4830c27415", "sha256": "00842ee71667a34c82ef9688df3e50241f367022ccd64675967e5f3c2282c2a0" }, "downloads": -1, "filename": "Flask_Bower-1.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "81a8265d45e384e501539c4830c27415", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 7598, "upload_time": "2017-07-12T00:48:36", "url": "https://files.pythonhosted.org/packages/61/6a/8600081f0bf5dda08ab677f9a57ca871060cc51df047ea2826cdd2a673b3/Flask_Bower-1.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2d830b187d83c009abac0379431a46b2", "sha256": "3b884a80d872f7cfaf5b351aa90af4afaadc02588a764e1071de56963d6cbcb8" }, "downloads": -1, "filename": "Flask-Bower-1.3.0.tar.gz", "has_sig": false, "md5_digest": "2d830b187d83c009abac0379431a46b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4937, "upload_time": "2017-07-12T00:47:49", "url": "https://files.pythonhosted.org/packages/47/32/1733dc8b74efd05a609546c322c9ad74c4441ec79652e3e19986f7fd720d/Flask-Bower-1.3.0.tar.gz" } ] }