{ "info": { "author": "Hsiaoming Yang", "author_email": "me@lepture.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Flask-ShortUrl\n==================================\n\n.. image:: https://img.shields.io/badge/donate-lepture-green.svg\n :target: https://lepture.herokuapp.com/?amount=500&reason=lepture%2Fflask-shorturl\n :alt: Donate lepture\n.. image:: https://img.shields.io/pypi/wheel/flask-shorturl.svg\n :target: https://pypi.python.org/pypi/flask-shorturl/\n :alt: Wheel Status\n.. image:: https://img.shields.io/pypi/v/flask-shorturl.svg\n :target: https://pypi.python.org/pypi/flask-shorturl/\n :alt: Latest Version\n.. image:: https://travis-ci.org/lepture/flask-shorturl.svg?branch=master\n :target: https://travis-ci.org/lepture/flask-shorturl\n :alt: Travis CI Status\n.. image:: https://coveralls.io/repos/lepture/flask-shorturl/badge.svg?branch=master\n :target: https://coveralls.io/r/lepture/flask-shorturl\n :alt: Coverage Status\n\n\nShort URL generator for Flask Project.\n\n\nInstallation\n------------\n\nTo install Flask-Shorturl, simply::\n\n $ pip install Flask-ShortUrl\n\nOr alternatively if you don't have pip::\n\n $ easy_install Flask-ShortUrl\n\n\nUsage\n-----\n\nYou can initialize the app::\n\n from flask_shorturl import ShortUrl\n\n su = ShortUrl(app)\n\n url = su.encode_url(12)\n uid = su.decode_url(url)\n\nYou may also init the app later::\n\n su = ShortUrl()\n su.init_app(app)\n\n\nConfiguration\n--------------\n\nConfigurations for Flask project:\n\n\n====================== =====================================================\n`SHORT_URL_ALPHABET` The alphabet to be used by Encoder,\n default value: ``mn6j2c4rv8bpygw95z7hsdaetxuk3fq``\n`SHORT_URL_MIN_LENGTH` default value: 5\n`SHORT_URL_BLOCK_SIZE` default value: 24\n====================== =====================================================\n\n\nThanks\n------\n\nUrlEncoder from by `Michael Fogleman`_.\n\n.. _`Michael Fogleman`: http://code.activestate.com/recipes/576918/", "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/lepture/flask-shorturl", "keywords": null, "license": "Copyright (c) 2013, Hsiaoming Yang\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n* Neither the name of the creator nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "maintainer": null, "maintainer_email": null, "name": "Flask-ShortUrl", "package_url": "https://pypi.org/project/Flask-ShortUrl/", "platform": "any", "project_url": "https://pypi.org/project/Flask-ShortUrl/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/lepture/flask-shorturl" }, "release_url": "https://pypi.org/project/Flask-ShortUrl/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Short URL generaotr for Flask", "version": "0.2.0" }, "last_serial": 2207097, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "3335735919f56cc345c3663ecae654ce", "sha256": "fa2ebcdeb85f501f6493b1ffd03644e7ff59729f969f9dd0c3c28f494a0661b3" }, "downloads": -1, "filename": "Flask-ShortUrl-0.1.0.tar.gz", "has_sig": false, "md5_digest": "3335735919f56cc345c3663ecae654ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3516, "upload_time": "2013-04-19T08:04:34", "url": "https://files.pythonhosted.org/packages/7a/75/049d839e95beb27da55cd5910cfaf1f732de290855bb298fba979b3a4b12/Flask-ShortUrl-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c20aea1604631f927e2403b79a65bbc1", "sha256": "d5aba2fa19ae8d2dfc649cbf26b06e06504e74e51a6568a27c1c4e4ad21295b4" }, "downloads": -1, "filename": "Flask-ShortUrl-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c20aea1604631f927e2403b79a65bbc1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3767, "upload_time": "2013-04-23T12:03:49", "url": "https://files.pythonhosted.org/packages/5f/b1/f60ec8bd728b0b7446f3df28a3d97eff5ad59d2d695d02db352ecb065e49/Flask-ShortUrl-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "6e59390e2958e4b7ad5cd4b55e24fc1e", "sha256": "09aaa45034b099c240e3ad7883d3f0b08db9e5cefa1397cb1262f874b586e7d4" }, "downloads": -1, "filename": "Flask-ShortUrl-0.1.2.tar.gz", "has_sig": false, "md5_digest": "6e59390e2958e4b7ad5cd4b55e24fc1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3983, "upload_time": "2013-07-26T13:42:32", "url": "https://files.pythonhosted.org/packages/f4/79/681030bf880fcd3788626adb8be28a824f7b2edf98aad03eae9d1e7c5394/Flask-ShortUrl-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "2bc4ac8b6419784e4692de82d572f848", "sha256": "a3e586e4faaa813b59aff00c3efd346c5b1e587947d343c72adaa1476ea83355" }, "downloads": -1, "filename": "Flask_ShortUrl-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "2bc4ac8b6419784e4692de82d572f848", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6875, "upload_time": "2016-07-07T02:35:05", "url": "https://files.pythonhosted.org/packages/8a/dc/64a8cc2f9ba095f4dca35ca266d090084d5321864d2a348e501329d96501/Flask_ShortUrl-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fd8395d861749faad7d539a63cc9bed5", "sha256": "f2c0b85396009d36a7ce13dc7be032f04e5c2fccaedf23f766c967faed07fa1e" }, "downloads": -1, "filename": "Flask-ShortUrl-0.2.0.tar.gz", "has_sig": false, "md5_digest": "fd8395d861749faad7d539a63cc9bed5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4359, "upload_time": "2016-07-07T02:35:11", "url": "https://files.pythonhosted.org/packages/e6/f1/be75f7651b1f7b1d030794d84242242ee6577aec547154db9393fdbdd92c/Flask-ShortUrl-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2bc4ac8b6419784e4692de82d572f848", "sha256": "a3e586e4faaa813b59aff00c3efd346c5b1e587947d343c72adaa1476ea83355" }, "downloads": -1, "filename": "Flask_ShortUrl-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "2bc4ac8b6419784e4692de82d572f848", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6875, "upload_time": "2016-07-07T02:35:05", "url": "https://files.pythonhosted.org/packages/8a/dc/64a8cc2f9ba095f4dca35ca266d090084d5321864d2a348e501329d96501/Flask_ShortUrl-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fd8395d861749faad7d539a63cc9bed5", "sha256": "f2c0b85396009d36a7ce13dc7be032f04e5c2fccaedf23f766c967faed07fa1e" }, "downloads": -1, "filename": "Flask-ShortUrl-0.2.0.tar.gz", "has_sig": false, "md5_digest": "fd8395d861749faad7d539a63cc9bed5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4359, "upload_time": "2016-07-07T02:35:11", "url": "https://files.pythonhosted.org/packages/e6/f1/be75f7651b1f7b1d030794d84242242ee6577aec547154db9393fdbdd92c/Flask-ShortUrl-0.2.0.tar.gz" } ] }