{ "info": { "author": "Wouter Bolsterlee", "author_email": "uws@xs4all.nl", "bugtrack_url": null, "classifiers": [], "description": "==========\nFlask-UUID\n==========\n\n*Flask-UUID* is a simple Flask_ extension that registers a UUID converter for\nurls on a Flask application. It uses the standard library's ``uuid`` module to\nconvert UUIDs to and from strings.\n\nThis extension allows you to easily route and generate urls containing UUID,\ne.g. ``/page/fe4a3e33-cb4b-42ac-a29b-a8160a85af7e``.\n\n.. _Flask: http://flask.pocoo.org\n\n\nInstallation\n============\n\nInstallation is trivial::\n\n $ pip install Flask-UUID\n\n\nUsage\n=====\n\nFlask-UUID is a well-behaved Flask extension, so you can either initialise it\ndirectly upon instantiation::\n\n from flask import Flask\n from flask.ext.uuid import FlaskUUID\n\n app = Flask(__name__)\n FlaskUUID(app)\n\nOr initialise it like this::\n\n from flask import Flask\n from flask.ext.uuid import FlaskUUID\n\n app = Flask(__main__)\n\n flask_uuid = FlaskUUID()\n flask_uuid.init_app(app)\n\nNow you can use it in your routes like any other converter::\n\n @app.route('/')\n def mypage(id):\n return id # 'id' is a uuid.UUID instance\n\nYou can also use UUID instances to generate urls::\n\n random_uuid = uuid.uuid4()\n url = app.url_for('mypage', id=random_uuid)\n\nNote that, by default, the converter only accepts and generates lowercase\nhexadecimal UUIDs with dashes at the proper places, in order to keep urls\nunique. If you want to accept any UUID string accepted by the ``uuid.UUID()``\nconstructor, simply set the `strict` flag to `False`::\n\n @app.route('/'>\n def mypage(id):\n return id\n\n\nLicense\n=======\n\nThis software is BSD licensed; see `LICENSE.rst` for more information.\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/wbolster/flask-uuid", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "Flask-UUID", "package_url": "https://pypi.org/project/Flask-UUID/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Flask-UUID/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/wbolster/flask-uuid" }, "release_url": "https://pypi.org/project/Flask-UUID/0.2/", "requires_dist": null, "requires_python": null, "summary": "UUID url converter for Flask routes", "version": "0.2" }, "last_serial": 770400, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "69a189554ca122c4f69ea25cfa392344", "sha256": "f501980947085a7bec81cf3b16e285536cd8428c613cfdcaea92232a595db535" }, "downloads": -1, "filename": "Flask-UUID-0.1.tar.gz", "has_sig": false, "md5_digest": "69a189554ca122c4f69ea25cfa392344", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1249, "upload_time": "2013-03-15T21:40:51", "url": "https://files.pythonhosted.org/packages/24/13/2eb302ee10c624142b8e4441f58e1848ff546f59f84eb1220e33fcb841f4/Flask-UUID-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "1d71c56a807a9317532d41f29b041b9c", "sha256": "f9a8196eb896599ba9e74dcf713cfd1aca4669d418c19069e088620ae6294805" }, "downloads": -1, "filename": "Flask-UUID-0.2.tar.gz", "has_sig": false, "md5_digest": "1d71c56a807a9317532d41f29b041b9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1991, "upload_time": "2013-06-13T20:39:57", "url": "https://files.pythonhosted.org/packages/1e/17/ed38fb7a9d7685bb1553dc3c1c6acd0bc960cb8935ad432e58665a7802e9/Flask-UUID-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1d71c56a807a9317532d41f29b041b9c", "sha256": "f9a8196eb896599ba9e74dcf713cfd1aca4669d418c19069e088620ae6294805" }, "downloads": -1, "filename": "Flask-UUID-0.2.tar.gz", "has_sig": false, "md5_digest": "1d71c56a807a9317532d41f29b041b9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1991, "upload_time": "2013-06-13T20:39:57", "url": "https://files.pythonhosted.org/packages/1e/17/ed38fb7a9d7685bb1553dc3c1c6acd0bc960cb8935ad432e58665a7802e9/Flask-UUID-0.2.tar.gz" } ] }