{ "info": { "author": "Pierre-Yves Ritschard", "author_email": "pyr@spootnik.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "Gurl-shortener: demo URL shortening service in python\n=====================================================\n\nA demo application for a very simple URL shortening service\n\nThe app relies on:\n\n- flask_: A python micro web framework\n- bootstrap_: A CSS & JS framework\n\n\nInstalling\n----------\n\nPip::\n\n pip install url_shortener\n\nPypi:\n\n https://pypi.python.org/pypi/url_shortener\n\nManual::\n\n python setup.py install\n\nConfiguration\n-------------\n\nYou can either modify the ``config.py`` file or provide environment\nvariables to configure ``url_shortener``. The following environment\nvariables can be tweaked:\n\n- ``REDIS_HOST``: Address at which the redis server lives, defaults to ``127.0.0.1``.\n- ``REDIS_PORT``: Port on which to contact redis, defaults to ``6379``.\n- ``URL_PREFIX``: URL scheme for your short url host\n- ``LISTEN_HOST``: Address to bind to for the short url service\n- ``LISTEN_PORT``: Port to bind to\n- ``RIEMANN_HOST``: Address to use to contact riemann, defaults to ``127.0.0.1``\n- ``RIEMANN_PORT``: Port to use to contact riemann, defaults to ``5555``\n- ``RIEMANN_PROTOCOL``: Riemann protocol to use, defaults to ``UDP``\n- ``LOG_FILE_PATH``: Where to log, no defaults\n- ``LOG_LEVEL``: level at which to log, defaults to ``DEBUG``\n\nLogging\n-------\n\nWhen not run in debug mode, the application will output logs for consumption by\nlogstash, using logstash_formatter_\n\nUsage\n-----\n\nThe service can simply be started by invoking: ``url-shortener``, alternately deployments\ncan be done with gunicorn_. To start the service with gunicorn with 8 worker processes for\ninstance, the following can be used:\n\n::\n\n gunicorn -w 8 --log-file=/var/log/url-shortener/gunicorn.log --log-level=info url_shortener:app\n\n.. _flask: http://flask.pocoo.org\n.. _bootstrap: http://twitter.github.io/bootstrap\n.. _logstash_formatter: https://github.com/exoscale/python-logstash-formatter\n.. _gunicorn: http://gunicorn.org", "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/pyr/url-shortener", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "url_shortener", "package_url": "https://pypi.org/project/url_shortener/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/url_shortener/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/pyr/url-shortener" }, "release_url": "https://pypi.org/project/url_shortener/0.5.20/", "requires_dist": null, "requires_python": null, "summary": "Simple URL Shortener", "version": "0.5.20" }, "last_serial": 1061089, "releases": { "0.5.10": [ { "comment_text": "", "digests": { "md5": "274ffb2fc8f127b92768ad78bbf5539b", "sha256": "265e544d5e371752be9e662c438afbb211f251e601aa5b94ffefd91ecbbd407c" }, "downloads": -1, "filename": "url_shortener-0.5.10.tar.gz", "has_sig": false, "md5_digest": "274ffb2fc8f127b92768ad78bbf5539b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26231, "upload_time": "2013-06-03T08:54:14", "url": "https://files.pythonhosted.org/packages/1f/c7/e42eab5e42e1a21e5fae9b6fc8cbd4b6d277918706f1bbfdf100653587d6/url_shortener-0.5.10.tar.gz" } ], "0.5.16": [ { "comment_text": "", "digests": { "md5": "ae530994054fb30e235b874f0cb268b7", "sha256": "1eec386987b171a3c97749c7984bf224d0f79c0b45129b5f4a7a3a8ffd4eea85" }, "downloads": -1, "filename": "url_shortener-0.5.16.tar.gz", "has_sig": false, "md5_digest": "ae530994054fb30e235b874f0cb268b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27267, "upload_time": "2013-06-03T11:41:18", "url": "https://files.pythonhosted.org/packages/d4/69/77e8de9560ded1b50d26cb963da42ac137c939acd1f8489df791706c8b89/url_shortener-0.5.16.tar.gz" } ], "0.5.18": [ { "comment_text": "", "digests": { "md5": "bac4c1f2045fe82c80fcaf3df7a07320", "sha256": "f63e1c420b4ce2fd1814f6dcef84a6355c9a0b723989a43c6b78a7693a74dd41" }, "downloads": -1, "filename": "url_shortener-0.5.18.tar.gz", "has_sig": false, "md5_digest": "bac4c1f2045fe82c80fcaf3df7a07320", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27293, "upload_time": "2013-06-04T14:55:55", "url": "https://files.pythonhosted.org/packages/9f/81/b87bb22df078b319ca7b345aa88edd81367e472a4bb802962ac97c7eb309/url_shortener-0.5.18.tar.gz" } ], "0.5.20": [ { "comment_text": "", "digests": { "md5": "8af09e2001d07c284344ec707ee33e31", "sha256": "6b2b9ef5b945cb56ba5b30464cfa938635b77a55d133fd4dd982437f1d9dd29a" }, "downloads": -1, "filename": "url_shortener-0.5.20.tar.gz", "has_sig": false, "md5_digest": "8af09e2001d07c284344ec707ee33e31", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27306, "upload_time": "2014-04-15T13:20:16", "url": "https://files.pythonhosted.org/packages/9a/68/798dd83bc61feac14e7210aef04235155777ddc05a6ab87f1567b8f347cf/url_shortener-0.5.20.tar.gz" } ], "0.5.6": [], "0.5.8": [ { "comment_text": "", "digests": { "md5": "dcb8c54f2b03123a49fbc16515aaf32a", "sha256": "17f0545e52b540c4222bbdada08fd90cd23e44cdf7295337c2e52195e99615b1" }, "downloads": -1, "filename": "url_shortener-0.5.8.tar.gz", "has_sig": false, "md5_digest": "dcb8c54f2b03123a49fbc16515aaf32a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26229, "upload_time": "2013-06-03T08:51:12", "url": "https://files.pythonhosted.org/packages/95/87/d6aebe9413e601b99c0fcd658e9d2e01083f0bc6b6e85e8c1e2241295a09/url_shortener-0.5.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8af09e2001d07c284344ec707ee33e31", "sha256": "6b2b9ef5b945cb56ba5b30464cfa938635b77a55d133fd4dd982437f1d9dd29a" }, "downloads": -1, "filename": "url_shortener-0.5.20.tar.gz", "has_sig": false, "md5_digest": "8af09e2001d07c284344ec707ee33e31", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27306, "upload_time": "2014-04-15T13:20:16", "url": "https://files.pythonhosted.org/packages/9a/68/798dd83bc61feac14e7210aef04235155777ddc05a6ab87f1567b8f347cf/url_shortener-0.5.20.tar.gz" } ] }