{ "info": { "author": "Kenneth Reitz", "author_email": "me@kennethreitz.org", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "\nFlask-Caster: Cast Types of Flask Query Parameters\n==================================================\n\nThis simple Flask extension allows you to cast the type of (and assign defaults to) request query parameters in Flask.\n\nExample Usage\n-------------\n\n::\n\n from flask import Flask\n from flask_caster import FlaskCaster\n\n app = Flask(__name__)\n\n caster = FlaskCaster(app)\n caster.ints = ['size']\n caster.booleans = ['json']\n caster.always = ['json']\n\nThis will do a few things:\n\n- Assure that the ``size`` query parameter is always an integer.\n- Assure that the ``json`` query parameter is always an boolean.\n- Assure that the ``json`` query parameter is always present, even if\n if it wasn't provided by the end-user.\n\nAssignable properties include ``ints``, ``booleans``, ``always``, and ``always_default``. The ``always_default`` property can be set to any value,\nor to a callable, which will receive one keyword argument: ``arg_name``.\n\nFor boolean casting, ``0``, ``false``, ``f``, and ``null`` will\nautomatically be converted to ``False``.\n\nInstallation\n------------\n\n::\n\n $ pip install Flask-Caster\n\n\u2728\ud83c\udf70\u2728\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/kennethreitz/Flask-Caster", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "Flask-Caster", "package_url": "https://pypi.org/project/Flask-Caster/", "platform": "any", "project_url": "https://pypi.org/project/Flask-Caster/", "project_urls": { "Homepage": "http://github.com/kennethreitz/Flask-Caster" }, "release_url": "https://pypi.org/project/Flask-Caster/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "A simple Flask extension for automatically casting the type of query arguments.", "version": "0.1.0" }, "last_serial": 4831212, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "6ddedfc2fcd0889e4d98c174d29dbabc", "sha256": "9383a79eb4510722db7b2f294c9eb5adf23cf0d6a6a0a8899468eef55a69e897" }, "downloads": -1, "filename": "Flask_Caster-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "6ddedfc2fcd0889e4d98c174d29dbabc", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4262, "upload_time": "2017-01-25T22:41:34", "url": "https://files.pythonhosted.org/packages/f8/99/f5a4145858f389d7875304e8eba5350f1b3dab63667eb7c2ddcbf04fbfa4/Flask_Caster-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c7ade9146d718d913855547438065226", "sha256": "64fc9afd7bb7e46df5811e6d5e24379dc6449b92ad855da1c1a7892504d84f96" }, "downloads": -1, "filename": "Flask-Caster-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c7ade9146d718d913855547438065226", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2614, "upload_time": "2017-01-25T22:41:32", "url": "https://files.pythonhosted.org/packages/b3/69/a7129ccd1408d1f063e7547de1f978ea98f2745c57421b1f69f2ead83453/Flask-Caster-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6ddedfc2fcd0889e4d98c174d29dbabc", "sha256": "9383a79eb4510722db7b2f294c9eb5adf23cf0d6a6a0a8899468eef55a69e897" }, "downloads": -1, "filename": "Flask_Caster-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "6ddedfc2fcd0889e4d98c174d29dbabc", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4262, "upload_time": "2017-01-25T22:41:34", "url": "https://files.pythonhosted.org/packages/f8/99/f5a4145858f389d7875304e8eba5350f1b3dab63667eb7c2ddcbf04fbfa4/Flask_Caster-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c7ade9146d718d913855547438065226", "sha256": "64fc9afd7bb7e46df5811e6d5e24379dc6449b92ad855da1c1a7892504d84f96" }, "downloads": -1, "filename": "Flask-Caster-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c7ade9146d718d913855547438065226", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2614, "upload_time": "2017-01-25T22:41:32", "url": "https://files.pythonhosted.org/packages/b3/69/a7129ccd1408d1f063e7547de1f978ea98f2745c57421b1f69f2ead83453/Flask-Caster-0.1.0.tar.gz" } ] }