{ "info": { "author": "rangertaha", "author_email": "rangertaha@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "# tinyurls\n\nURL shortening service to be used in a microservices environment.\n\nThis service does the following:\n1. Takes a long url and stores an md5 key and the url in a database table. \nThe md5 key is used to lookup the long url. This step returns a short link \nwith md5.\n2. Takes a short link and redirects you to the long link.\n\n\n\n\n\n## Installation\nClone code\n```bash\ngit clone git@github.com:rangertaha/tinyurls.git\n```\nUse virtual environment\n```bash\nvirtualenv env\nsource env/bin/activate\n\n```\nChange into tinyurls directory and install\n```\ncd tinyurls\npython setup.py install \n\nor\n\npip install tinyurls\n\n```\n\n## Execute\n```bash\ntinyurls -h\nusage: tinyurls [-h] [-p PORT] [-d DATABASE]\n\noptional arguments:\n -h, --help show this help message and exit\n -p PORT, --port PORT Port used for this service\n -d DATABASE, --database DATABASE Database to use\n\n\ntinyurls -p 9999\n\n```\n\nIn a new terminal post the link to shorten\n```bash\ncurl -X POST -H \"Content-Type: text/plain\" --data \"https://www.google.com/search?q=tornado+logging+to+ELK&rlz=1C5CHFA_enUS752US752&oq=tornado+logging+to+ELK&aqs=chrome..69i57.9210j1j4&sourceid=chrome&ie=UTF-8\" http://127.0.0.1:9999\nhttp://127.0.0.1:9999/284380fea5eaf2464e06a3873647d324\n```\n\nIn the browser go to `http://127.0.0.1:9999/284380fea5eaf2464e06a3873647d324`\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rangertaha/tinyurls", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "tinyurls", "package_url": "https://pypi.org/project/tinyurls/", "platform": "", "project_url": "https://pypi.org/project/tinyurls/", "project_urls": { "Homepage": "https://github.com/rangertaha/tinyurls" }, "release_url": "https://pypi.org/project/tinyurls/0.0.3/", "requires_dist": [ "tornado", "SQLAlchemy", "validators", "fluent", "pycodestyle", "prometheus-client" ], "requires_python": "", "summary": "URL shortening service to be used in a microservices environment.", "version": "0.0.3" }, "last_serial": 4140795, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "3a97651cfc74266277f427e7804aadfd", "sha256": "c526e12fcd941bcb89637e6cea350ced89482e347697e36a478486ea6135fddc" }, "downloads": -1, "filename": "tinyurls-0.0.1-py3.6.egg", "has_sig": false, "md5_digest": "3a97651cfc74266277f427e7804aadfd", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 9366, "upload_time": "2018-08-03T19:15:00", "url": "https://files.pythonhosted.org/packages/b9/99/15b52884d807d392e14b0cc84b5272988b4d4b414f31f343cc55d25d8975/tinyurls-0.0.1-py3.6.egg" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "9eae701a6c74016c91dd8e3365c21c68", "sha256": "e6106fa650074f7503076f961c7704067b29bfcae8891245118908bbd0a95851" }, "downloads": -1, "filename": "tinyurls-0.0.2-py3.6.egg", "has_sig": false, "md5_digest": "9eae701a6c74016c91dd8e3365c21c68", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 8923, "upload_time": "2018-08-03T20:07:05", "url": "https://files.pythonhosted.org/packages/2b/5a/26851e9e4239f3ed670e8e22db2a7cc94fcc3cfc58541eb8ea62bd63aab8/tinyurls-0.0.2-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "d38609016d87f6c08200350dff74a946", "sha256": "cedea8ca4747994a9457b58a88f6641336e61c8249f29a627143a2d630fb7911" }, "downloads": -1, "filename": "tinyurls-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "d38609016d87f6c08200350dff74a946", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5275, "upload_time": "2018-08-06T15:09:55", "url": "https://files.pythonhosted.org/packages/f5/59/8742de7712a5cad972bac795b8d8e6bfe92d8e0f7eea273e085dd2c444fb/tinyurls-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "83a5bdc58d8245720c79dae0a0b94786", "sha256": "562c70555a7f3e75a9a9ae83fdbb7423f877dfee14bf77eec17595e14faf63ce" }, "downloads": -1, "filename": "tinyurls-0.0.2.tar.gz", "has_sig": false, "md5_digest": "83a5bdc58d8245720c79dae0a0b94786", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3980, "upload_time": "2018-08-03T20:07:06", "url": "https://files.pythonhosted.org/packages/49/42/68450b242ffb5a7e211c751d07f2cebd6189a0d1e13cae33585fcf9f2645/tinyurls-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "58f6425a38f1d60319c9ef80c0863993", "sha256": "30bbf2e9d43222bfb6559b3e5bc93c6f6d9bb11e3f7d200fcf1a937d3841c7fe" }, "downloads": -1, "filename": "tinyurls-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "58f6425a38f1d60319c9ef80c0863993", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5274, "upload_time": "2018-08-06T15:13:03", "url": "https://files.pythonhosted.org/packages/7a/4e/4700df096214e107df02dfc63887c620032e860e8a4a26795f391c1b1250/tinyurls-0.0.3-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "58f6425a38f1d60319c9ef80c0863993", "sha256": "30bbf2e9d43222bfb6559b3e5bc93c6f6d9bb11e3f7d200fcf1a937d3841c7fe" }, "downloads": -1, "filename": "tinyurls-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "58f6425a38f1d60319c9ef80c0863993", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5274, "upload_time": "2018-08-06T15:13:03", "url": "https://files.pythonhosted.org/packages/7a/4e/4700df096214e107df02dfc63887c620032e860e8a4a26795f391c1b1250/tinyurls-0.0.3-py3-none-any.whl" } ] }