{ "info": { "author": "Steadman", "author_email": "mark@steadman.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django" ], "description": "Bambu URL Shortener\n===================\n\nThis package generates short URLs when given longer ones. These can be\ngenerated by the app, with a 7 (by default) character short-name, or by\nan external provider, like bit.ly.\n\nAbout Bambu Tools 2.0\n---------------------\n\nThis is part of a toolset called Bambu Tools. It's being moved from a\nnamespace of ``bambu`` to its own 'root-level' package, along with all\nthe other tools in the set. If you're upgrading from a version prior to\n2.0, please make sure to update your code to use ``bambu_urlshortener``\nrather than ``bambu.urlshortener``.\n\nInstallation\n------------\n\nInstall the package via Pip:\n\n::\n\n pip install bambu-urlshortener\n\nAdd it to your ``INSTALLED_APPS`` list:\n\n::\n\n INSTALLED_APPS = (\n ...\n 'bambu_urlshortener'\n )\n\nTo use internal URL shortening - rather than a service like bit.ly - add\nthe middleware to your settings:\n\n::\n\n MIDDLEWARE_CLASSES = (\n ...\n 'bambu_urlshortener.middleware.ShortURLFallbackMiddleware'\n )\n\nThis should be added as close to the end of your middleware list as\npossible, as it looks for 404 responses and tries to find a URL\nshort-name corresponding to the requested path.\n\nRun ``manage.py syncdb`` or ``manage.py migrate`` to setup the database\ntables.\n\nBasic usage\n-----------\n\nSimply call ``bambu_urlshortener.shorten``, passing in the long URL.\n\nProviders\n---------\n\nThere are two in-built shortening providers:\n\n``bambu_urlshortener.providers.db.DatabaseProvider``\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThis default option, coupled with the middleware allows a web app to\nprovide its own short URLs.\n\n``bambu_urlshortener.providers.bitly.BitlyProvider``\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nCalls the bit.ly API and returns a short URL. Specify the API key via\nthe ``SHORTURL_TOKEN`` setting. Optionally set the ``SHORTURL_DOMAIN``\nsetting if you want to use a custom domain name.\n\nTodo\n----\n\n- Write more tests\n\nQuestions or suggestions?\n-------------------------\n\nFind me on Twitter (@iamsteadman) or `visit my blog `_.", "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/iamsteadman/bambu-urlshortener", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "bambu-urlshortener", "package_url": "https://pypi.org/project/bambu-urlshortener/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/bambu-urlshortener/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/iamsteadman/bambu-urlshortener" }, "release_url": "https://pypi.org/project/bambu-urlshortener/2.0/", "requires_dist": null, "requires_python": null, "summary": "Shrink a URL using an internal or external shortening service", "version": "2.0" }, "last_serial": 1103083, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "b71d96c817cadb73d620d457a9a187bb", "sha256": "dc7ef44629f670548dd94f14d7218cf7dde9ba669b57b67992e30baf38ec7e3e" }, "downloads": -1, "filename": "bambu-urlshortener-0.0.1.tar.gz", "has_sig": false, "md5_digest": "b71d96c817cadb73d620d457a9a187bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3308, "upload_time": "2014-01-02T17:38:09", "url": "https://files.pythonhosted.org/packages/36/d5/d167022a02621672d00014fdeb44bacee2a38c8a984555339e31d8c1a65d/bambu-urlshortener-0.0.1.tar.gz" } ], "0.1": [ { "comment_text": "", "digests": { "md5": "73c6120ff0d4c743ff78d0789e4066c3", "sha256": "167bda01972abc7e9b47be8c527c36777fbda6e5d98f2fd2c60f84adad62e38e" }, "downloads": -1, "filename": "bambu-urlshortener-0.1.tar.gz", "has_sig": false, "md5_digest": "73c6120ff0d4c743ff78d0789e4066c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3288, "upload_time": "2014-01-28T16:30:50", "url": "https://files.pythonhosted.org/packages/40/6d/ec260c8be0d61f7c01b4d390996256b0b9ce6b5bb11227e4eb57e67e75f2/bambu-urlshortener-0.1.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "b590e37cd7585e602860acd7bf63eb39", "sha256": "ef076665a7626a3fab98b4cff5b8fea3976fb7bbc39440d12f37d4ec183032ad" }, "downloads": -1, "filename": "bambu-urlshortener-2.0.tar.gz", "has_sig": false, "md5_digest": "b590e37cd7585e602860acd7bf63eb39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4659, "upload_time": "2014-05-24T15:04:13", "url": "https://files.pythonhosted.org/packages/84/65/19c8ad63b9b176e9c58727b6461961e4516440af543df6194d8c1b8ff69b/bambu-urlshortener-2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b590e37cd7585e602860acd7bf63eb39", "sha256": "ef076665a7626a3fab98b4cff5b8fea3976fb7bbc39440d12f37d4ec183032ad" }, "downloads": -1, "filename": "bambu-urlshortener-2.0.tar.gz", "has_sig": false, "md5_digest": "b590e37cd7585e602860acd7bf63eb39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4659, "upload_time": "2014-05-24T15:04:13", "url": "https://files.pythonhosted.org/packages/84/65/19c8ad63b9b176e9c58727b6461961e4516440af543df6194d8c1b8ff69b/bambu-urlshortener-2.0.tar.gz" } ] }