{ "info": { "author": "John Nadratowski", "author_email": "john@unifiedsocial.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "Operating System :: OS Independent", "Topic :: Software Development" ], "description": "django\\_shawty\n=============\n\nThis is an implementation in Django for Shawty webserver integration. This is a very simple\nDjango app that adds a single new model that can work with the Shawty Webserver called\nShawtyURL. This model contains classmethods that allow you to communicate with Shawty and\nstore/retrieve short URLs.\n\n## PREREQS\n\ndjango\\_shawty requires the following packages to be installed:\n\n[South](http://south.aeracode.org/)\n\n[Requests](http://docs.python-requests.org/en/latest/)\n\n## INSTALLING\n\nYou can install django\\_shawty simply by running a \"pip install django-shawty\" and adding\n'shawty' to your INSTALLED\\_APPS. Then you can run the south migrations to initialize the models\nin your database.\n\n## CONFIG\n\ndjango\\_shawty has a set of configurations that you can use to define how to interact with the\nShawty webserver.\n\nSHAWTY\\_REQUEST\\_URL (string)- The URL of the Shawty server in the form of http://www.shawty.com\n\nSHAWTY\\_USE\\_DB (bool) - Determine whether or not django\\_shawty should \n store the shoretened URLs in the DB\n\nSHAWTY\\_USE\\_CACHING (bool) - Determine whether or not django\\_shawty should store/retreive short\n urls from a cache backend\n\nSHAWTY\\_CACHE\\_EXPIRE (int) - The time (in seconds) after which the cache for the URL should expire\n\n## Example\n\nTo get a new short URL for a set of links, simply invoke the ShawtyURL classmethod \"get\\_short\\_urls\"\npassing a python list of links. For example:\n\n from shawty.models import ShawtyURL\n links = [link1, link2, link3]\n shortenedlinks = ShawtyURL.get\\_short\\_urls(links)\n print shortened\\_links\n\n> {link1:shortlink1, link2:shortlink2, link3:shortlink3}\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/Unified/django_shawty", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-shawty", "package_url": "https://pypi.org/project/django-shawty/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-shawty/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Unified/django_shawty" }, "release_url": "https://pypi.org/project/django-shawty/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Shawty URL shortener server integration for Django.", "version": "0.0.3" }, "last_serial": 814157, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "2ebac615e19430fc3bce3f4ae348337d", "sha256": "c77bc11d513aa7bb1671ed98e4c531a481ca13fd4b5b6cae1a469e3d4f6ffb89" }, "downloads": -1, "filename": "django-shawty-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2ebac615e19430fc3bce3f4ae348337d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8116, "upload_time": "2012-11-13T23:29:40", "url": "https://files.pythonhosted.org/packages/7f/76/3668021351dd10054e7321bddf9323c15fbe90a4812be48560370249b386/django-shawty-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "dce3a7e6bb22637cbebd55f88530cc12", "sha256": "c5add72490c26cea6bf0fc7a3379906d056edb5b33fba3569c0666e10ef35051" }, "downloads": -1, "filename": "django-shawty-0.0.2.tar.gz", "has_sig": false, "md5_digest": "dce3a7e6bb22637cbebd55f88530cc12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8205, "upload_time": "2012-11-21T16:15:15", "url": "https://files.pythonhosted.org/packages/50/be/2a589dac50b79ee71bc4f7aa6cffbc1ef29d4291891ab4ff622e1354f50e/django-shawty-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "b9a74dd3f4aac95534b63749da79f294", "sha256": "3a161a6f3b732b26484977ec87d388e0ff8f09f5cac1d5c7903d156f635a14a9" }, "downloads": -1, "filename": "django-shawty-0.0.3.tar.gz", "has_sig": false, "md5_digest": "b9a74dd3f4aac95534b63749da79f294", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8507, "upload_time": "2013-07-12T20:17:38", "url": "https://files.pythonhosted.org/packages/e5/7d/8b684e63629864b6afa74ed06733f68dd45d30bf2782b09ae8e4df6ca844/django-shawty-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b9a74dd3f4aac95534b63749da79f294", "sha256": "3a161a6f3b732b26484977ec87d388e0ff8f09f5cac1d5c7903d156f635a14a9" }, "downloads": -1, "filename": "django-shawty-0.0.3.tar.gz", "has_sig": false, "md5_digest": "b9a74dd3f4aac95534b63749da79f294", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8507, "upload_time": "2013-07-12T20:17:38", "url": "https://files.pythonhosted.org/packages/e5/7d/8b684e63629864b6afa74ed06733f68dd45d30bf2782b09ae8e4df6ca844/django-shawty-0.0.3.tar.gz" } ] }