{ "info": { "author": "Dmitry Voronin", "author_email": "dimka665@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: Python Software Foundation License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "=========================\ndjango-url-robots\n=========================\n\n``Django`` ``robots.txt`` generator. Based on using decorated ``django.conf.urls.url``.\nIt gets ``urlpatterns`` and replaces ambiguous parts by ``*``.\n\nInstallation & Usage\n=========================\n\nThe recommended way to install django-url-robots is with `pip `_\n\n1. Install from PyPI with ``easy_install`` or ``pip``::\n\n pip install django-url-robots\n\n2. Add ``'url_robots'`` to your ``INSTALLED_APPS``::\n\n INSTALLED_APPS = (\n ...\n 'url_robots',\n ...\n )\n\n3. Add url_robots view to your root URLconf::\n\n urlpatterns += [\n url(r'^robots\\.txt$', url_robots.views.robots_txt),\n ]\n\n4. Describe rules by boolean keyword argument ``robots_allow`` using for it ``url_robots.utils.url`` instead ``django.conf.urls.url``::\n\n from url_robots.utils import url\n \n urlpatterns += [\n url('^profile/private$', views.some_view, robots_allow=False),\n ]\n \n``django-url-robots`` tested with ``Django-1.8+``. Encodes unicode characters by percent-encoding.\n\nSettings\n====================\n\nIn this moment there are only one option to define template of ``robots.txt`` file::\n\n urlpatterns += [\n url(r'^robots\\.txt$', url_robots.views.robots_txt, {'template': 'my_awesome_robots_template.txt'}),\n ]\n\nExample\n===================\nrobots_template.txt::\n\n User-agent: *\n Disallow: /* # disallow all\n {{ rules|safe }}\n\nurls.py::\n\n from django.conf.urls import include\n\n urlpatterns = [\n url(r'^profile', include('url_robots.tests.urls_profile')),\n ]\n\nurls_profile.py::\n\n from url_robots.utils import url\n\n urlpatterns = [\n url(r'^s$', views.some_view, name='profiles', robots_allow=True),\n url(r'^/(?P\\w+)$', views.some_view),\n url(r'^/(?P\\w+)/private', views.some_view, name='profile_private', robots_allow=False),\n url(r'^/(?P\\w+)/public', views.some_view, name='profile_public', robots_allow=True),\n ]\n\nResulting robots.txt::\n\n User-agent: *\n Disallow: /* # disallow all\n Allow: /profiles$\n Disallow: /profile/*/private*\n Allow: /profile/*/public*", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/dimka665/django-url-robots", "keywords": null, "license": "Python Software Foundation License", "maintainer": null, "maintainer_email": null, "name": "django-url-robots", "package_url": "https://pypi.org/project/django-url-robots/", "platform": "any", "project_url": "https://pypi.org/project/django-url-robots/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/dimka665/django-url-robots" }, "release_url": "https://pypi.org/project/django-url-robots/2.0/", "requires_dist": null, "requires_python": null, "summary": "Django robots.txt generator", "version": "2.0" }, "last_serial": 2543377, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "36b519b1457dc4dfa9e299f322d47ff7", "sha256": "3d8d03a5beeade5b292c609125b2d3ca81dfce4d4f87d732df84c5703c0c5b82" }, "downloads": -1, "filename": "django-url-robots-1.0.zip", "has_sig": false, "md5_digest": "36b519b1457dc4dfa9e299f322d47ff7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14024, "upload_time": "2012-12-28T22:12:21", "url": "https://files.pythonhosted.org/packages/c6/7e/0bf8be1509690fdebeb194a03b1de9dfdd1e91562984592b6b1c36371f97/django-url-robots-1.0.zip" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "f34c239599f8d6ce69a1f4c7029710da", "sha256": "8bc6453ad4c7be0bc656149096c9e57f53d6a0681b649a0d5e59cca89b4cc420" }, "downloads": -1, "filename": "django-url-robots-1.0.1.zip", "has_sig": false, "md5_digest": "f34c239599f8d6ce69a1f4c7029710da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14121, "upload_time": "2012-12-28T22:37:08", "url": "https://files.pythonhosted.org/packages/33/8e/d42409637795a37f3624aa0ce13df3acb88cbde777acee978b593cf628ed/django-url-robots-1.0.1.zip" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "4b3eda6e4b0e061bc8b4b2bddf6542a8", "sha256": "a2b8204148b3d1c2f0c9bcceef79f2dac9ccad3d2737932cf9fa57fc68b68752" }, "downloads": -1, "filename": "django-url-robots-1.0.2.zip", "has_sig": false, "md5_digest": "4b3eda6e4b0e061bc8b4b2bddf6542a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14119, "upload_time": "2012-12-28T22:41:23", "url": "https://files.pythonhosted.org/packages/66/de/367cc81463f52a0c3bd149afc8470e2338c472f3e66adf5d30685972bcca/django-url-robots-1.0.2.zip" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "2565584e41531505139080ac2d0d5f2b", "sha256": "d85772024049b193d2472ed000f210d4c0db649bea39fc90cd1d98b83cacf0f6" }, "downloads": -1, "filename": "django-url-robots-1.0.3.zip", "has_sig": false, "md5_digest": "2565584e41531505139080ac2d0d5f2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7796, "upload_time": "2012-12-28T23:55:14", "url": "https://files.pythonhosted.org/packages/fa/1c/baabadfb87059f68cfc6e635ee53279f871d948fe8ad1239c23cf97e3ca5/django-url-robots-1.0.3.zip" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "527c65082021cb897f70ff86616b90a4", "sha256": "68001ef5c42f487ad2b8b5ee6d8b09c8dd099b0320dd7deb4231ebe4d9e48a3d" }, "downloads": -1, "filename": "django-url-robots-1.0.4.zip", "has_sig": false, "md5_digest": "527c65082021cb897f70ff86616b90a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7805, "upload_time": "2012-12-29T19:12:39", "url": "https://files.pythonhosted.org/packages/b9/e8/00bf3459163187e7cdd34060a6b6a9c49178458dec61ef8acf747effe048/django-url-robots-1.0.4.zip" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "db37552d2a56bc5854310caa1d6c2279", "sha256": "fa748a7757c79672bef867ae6c29230ea360394db253b9b7d4c8089dc2d6300e" }, "downloads": -1, "filename": "django-url-robots-1.1.zip", "has_sig": false, "md5_digest": "db37552d2a56bc5854310caa1d6c2279", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7754, "upload_time": "2012-12-29T21:28:40", "url": "https://files.pythonhosted.org/packages/44/91/96470100be279d89a3e5110f8054fc720c086a4151bfa71598be38b1de65/django-url-robots-1.1.zip" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "f17662b3abdac4dc701e3804876b41f0", "sha256": "cc2e29a42ca36dc395aea422bc0ac15122bb8728ceb2b2011e6f801849162ee8" }, "downloads": -1, "filename": "django-url-robots-2.0.tar.gz", "has_sig": false, "md5_digest": "f17662b3abdac4dc701e3804876b41f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4355, "upload_time": "2016-12-29T00:00:33", "url": "https://files.pythonhosted.org/packages/f1/35/57490be08c6e9a68b6b4f7ba9040a84dd55180fce4b01c00e7b7503ce110/django-url-robots-2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f17662b3abdac4dc701e3804876b41f0", "sha256": "cc2e29a42ca36dc395aea422bc0ac15122bb8728ceb2b2011e6f801849162ee8" }, "downloads": -1, "filename": "django-url-robots-2.0.tar.gz", "has_sig": false, "md5_digest": "f17662b3abdac4dc701e3804876b41f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4355, "upload_time": "2016-12-29T00:00:33", "url": "https://files.pythonhosted.org/packages/f1/35/57490be08c6e9a68b6b4f7ba9040a84dd55180fce4b01c00e7b7503ce110/django-url-robots-2.0.tar.gz" } ] }