{ "info": { "author": "Samira El Aabidi", "author_email": "sam.elaabidi@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# uuid_shortener\n\n[![Build Status](https://travis-ci.com/El-Sam/uuid_shortener.svg?branch=master)](https://travis-ci.com/El-Sam/uuid_shortener)\n[![PyPI supported versions](https://img.shields.io/pypi/pyversions/uuid-shortener-py.svg)](https://pypi.python.org/pypi/uuid-shortener-py)\n[![PyPI version](https://badge.fury.io/py/uuid-shortener-py.svg)](https://badge.fury.io/py/uuid-shortener-py)\n\n**uuid_shortener** is a library for shortening UUIDs into an alphanumerical format suitable for usage in URLs.\n\nThe alphanumerical format is Flicker base 58 encoding.\n\n## Installation\n\nfrom [Pypi](https://pypi.org/project/uuid-shortener-py/):\n\n` pip install uuid-shortener-py `\n\n## Module usage\n\nThe `UuidShortener` object can be created with/without a prefix.\n\n##### Example 1: without prefix\n\n```python\nfrom uuid_shortener import UuidShortener\nfrom uuid import uuid4\n\nif __name__ == \"__main__\":\n print('******** Without prefix')\n\n shortener = UuidShortener()\n uuid_4 = uuid4()\n\n short_uuid = shortener.shorten(uuid_4)\n unshortened_uuid = shortener.unshorten(short_uuid)\n\n print('Uuid to shorten: {}'.format(str(uuid_4)))\n print('shortened uuid: {}'.format(short_uuid))\n print('unshortened uuid(original uuid): {}'.format(str(shortener.unshorten(short_uuid)), str(uuid_4)))\n\n```\n\n##### Output 1:\n\n```\n******** Without prefix\nUuid to shorten: 177d1b53-77d5-42b2-8b8f-8d86579deb52\nshortened uuid: 3Ueemi554rN46ioLFw3dZG\nunshortened uuid(original uuid): 177d1b53-77d5-42b2-8b8f-8d86579deb52\n```\n-----\n##### Example 2: with prefix\n\n```python\nfrom uuid_shortener import UuidShortener\nfrom uuid import uuid4\n\nif __name__ == \"__main__\":\n print('******** With prefix')\n\n shortener = UuidShortener('meow') # ;)\n uuid_4 = uuid4()\n\n short_uuid = shortener.shorten(uuid_4)\n unshortened_uuid = shortener.unshorten(short_uuid)\n\n print('Uuid to shorten: {}'.format(str(uuid_4)))\n print('shortened uuid: {}'.format(short_uuid))\n print('unshortened uuid (original uuid): {}'.format(str(shortener.unshorten(short_uuid)), str(uuid_4)))\n\n```\n\n##### Output 2:\n\n```\n******** With prefix\nUuid to shorten: 2bea23d4-2b96-485d-8788-0c606ab93319\nshortened uuid: meow-6qwbaCZnHtxJsj4uJTKJSV\nunshortened uuid (original uuid): 2bea23d4-2b96-485d-8788-0c606ab93319\n```\n\n\n## License\n\n[MIT](./LICENSE)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/El-Sam/uuid_shortener", "keywords": "Python,UUID,UUID Shortener,Hex base,Short URL", "license": "", "maintainer": "", "maintainer_email": "", "name": "uuid-shortener-py", "package_url": "https://pypi.org/project/uuid-shortener-py/", "platform": "", "project_url": "https://pypi.org/project/uuid-shortener-py/", "project_urls": { "Homepage": "https://github.com/El-Sam/uuid_shortener" }, "release_url": "https://pypi.org/project/uuid-shortener-py/0.0.2/", "requires_dist": [ "pybaseconv (==0.*)" ], "requires_python": "", "summary": "Shorten a uuid into a URL friendly format.", "version": "0.0.2" }, "last_serial": 3989649, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "718447fc98718db26be7c09af545c4fb", "sha256": "6cf45aee630a5ffbc87dfbc8fa5e1b19b2d51ec1aa7d2a3723d6829abbedb36e" }, "downloads": -1, "filename": "uuid_shortener_py-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "718447fc98718db26be7c09af545c4fb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3659, "upload_time": "2018-05-28T20:05:04", "url": "https://files.pythonhosted.org/packages/7a/04/f150e39789cd2619cd9c88375a718d356399bfee8db9962c79885a783450/uuid_shortener_py-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1ff006864634ca7fe88f9845593ba96c", "sha256": "c753d89dfc9fe3a00069bf54c08ddad49afbc05338ec994fb4e334a03c14c76d" }, "downloads": -1, "filename": "uuid-shortener-py-0.0.1.tar.gz", "has_sig": false, "md5_digest": "1ff006864634ca7fe88f9845593ba96c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3041, "upload_time": "2018-05-28T20:05:05", "url": "https://files.pythonhosted.org/packages/56/f8/3886fa3cb6a9bce5303e0fd06e70cd40a055133ff5332ce8625b6e95bfa3/uuid-shortener-py-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "8846bba536f0c59831a09c67ad880275", "sha256": "121a2c4c68a90c24ceb7c345d8602e285f567e78eb83c8b18ae1ff9cbc341441" }, "downloads": -1, "filename": "uuid_shortener_py-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "8846bba536f0c59831a09c67ad880275", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3938, "upload_time": "2018-06-22T14:59:52", "url": "https://files.pythonhosted.org/packages/3d/33/0b64d24ad9997a08411878c07e37617e5550458a7d163e3900febead7668/uuid_shortener_py-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e4161a51375f02a78a50451961f2cc0d", "sha256": "5a0ae6a89577b72ed515540b87b2bd1a8cae575b71622bcd0370591521da8bcd" }, "downloads": -1, "filename": "uuid-shortener-py-0.0.2.tar.gz", "has_sig": false, "md5_digest": "e4161a51375f02a78a50451961f2cc0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3334, "upload_time": "2018-06-22T14:59:53", "url": "https://files.pythonhosted.org/packages/a0/d3/3d6ad0a48c3a942b8239f7d3e6614926eb12f0418b20b7ccbd67fceae76a/uuid-shortener-py-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8846bba536f0c59831a09c67ad880275", "sha256": "121a2c4c68a90c24ceb7c345d8602e285f567e78eb83c8b18ae1ff9cbc341441" }, "downloads": -1, "filename": "uuid_shortener_py-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "8846bba536f0c59831a09c67ad880275", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3938, "upload_time": "2018-06-22T14:59:52", "url": "https://files.pythonhosted.org/packages/3d/33/0b64d24ad9997a08411878c07e37617e5550458a7d163e3900febead7668/uuid_shortener_py-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e4161a51375f02a78a50451961f2cc0d", "sha256": "5a0ae6a89577b72ed515540b87b2bd1a8cae575b71622bcd0370591521da8bcd" }, "downloads": -1, "filename": "uuid-shortener-py-0.0.2.tar.gz", "has_sig": false, "md5_digest": "e4161a51375f02a78a50451961f2cc0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3334, "upload_time": "2018-06-22T14:59:53", "url": "https://files.pythonhosted.org/packages/a0/d3/3d6ad0a48c3a942b8239f7d3e6614926eb12f0418b20b7ccbd67fceae76a/uuid-shortener-py-0.0.2.tar.gz" } ] }