{ "info": { "author": "Jean-Marc Skopek", "author_email": "jean-marc@skopek.ca", "bugtrack_url": null, "classifiers": [], "description": "django-query-parameters\n=======================\n\nAdds two template tags that simplify the manipulation of GET parameters on a querystring. Allows easy addition, manipulation, and deletion of parameters onto an existing querystring.\n\nThe module is comprised of two template tags: ``set_query_parameters`` and ``del_query_parameters``. \n\nset_query_parameters\n--------------------\n\nTakes a 1+ list of ``key=value`` pairs and generates an updated querystring that includes those pairs. If a key does not already exist in the querystring, it will be added. If a key exists, it will be updated with the new value. For example::\n\n # current page is http://localhost/?page=1&limit=20\n {% load query_parameters %}\n ... \n # => ...\n\ndel_query_parameters\n--------------------\n\nTakes a 1+ list of keys and generates an updated querystring that removes those keys. If a key does not exist in the query string, it will be ignored. For example::\n\n # current page is http://localhost/?page=1&limit=20\n {% load query_parameters %}\n ... \n # => ...\n\n\n\nInstalling\n==========\n\nInstalling is a simple as running an ``easy_install`` or ``pip install`` command::\n\n pip install django-query-parameters\n\nInclude the project in the ``INSTALLED_APPS`` list in your project's ``settings.py`` file::\n\n INSTALLED_APPS = (..., 'query_parameters', ...)\n\n\n\nStoring the output in the template context\n==========================================\n\nBy default, both template tags output the result directly. If an optional ``as`` key is specified, the results will be stored in a context variable instead. For example::\n\n {% set_query_parameters page=2 as=next_page %}\n Next Page\n \n {% del_query_parameters color size as=reset_filters %}\n Reset Filters\n \nThe ``as`` key may be modified in Django's ``settings.py`` file::\n\n QUERY_PARAMETERS_VARIABLE_OUTPUT_KEY = 'output'\n \n ...\n \n {% set_query_parameters color=red output=next_page %}\n\n\n\nUsing a user defined query string\n=================================\n\nBy default, both template tags pull the query string from the request context. If an optional ``with`` key is specified, the query string will be loaded from the context variable instead. For example::\n\n {% set_query_parameters color=red as=filter %}\n {% set_query_parameters size=large with=filter as=modified_filter %}\n Apply Filter\n\nThe ``with`` key may be modified in Django's ``settings.py`` file::\n\n QUERY_PARAMETERS_VARIABLE_INPUT_KEY = 'input'\n \n ...\n \n {% set_query_parameters color=red input=custom_querystring %}", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jskopek/django-query-parameters", "keywords": "", "license": "LICENSE", "maintainer": "", "maintainer_email": "", "name": "django-query-parameters", "package_url": "https://pypi.org/project/django-query-parameters/", "platform": "", "project_url": "https://pypi.org/project/django-query-parameters/", "project_urls": { "Homepage": "https://github.com/jskopek/django-query-parameters" }, "release_url": "https://pypi.org/project/django-query-parameters/0.2.3/", "requires_dist": null, "requires_python": "", "summary": "Django templatetags to simplify creating, updating, and removing query parameters from querystring", "version": "0.2.3" }, "last_serial": 3343440, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "c7e0e2c4cb6a0ae60ea37285c6cf71f9", "sha256": "ad88e1e235dbcabf04c2c966fe37e3cf87af6cbda51dfee476f0d1ef306e3aa0" }, "downloads": -1, "filename": "django-query-parameters-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c7e0e2c4cb6a0ae60ea37285c6cf71f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2658, "upload_time": "2014-03-26T23:24:48", "url": "https://files.pythonhosted.org/packages/bc/29/a68613d004c97bd3065a02d05d0596597d91f382139ccb66ccba4d8a7c87/django-query-parameters-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "53ca5335c6321d9e0899a1c3caf74de6", "sha256": "d626fa1db6b35000f10060b08ed04f149e5228ebb9d39f58f3aded38156f4611" }, "downloads": -1, "filename": "django-query-parameters-0.1.1.tar.gz", "has_sig": false, "md5_digest": "53ca5335c6321d9e0899a1c3caf74de6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2932, "upload_time": "2014-03-26T23:43:40", "url": "https://files.pythonhosted.org/packages/62/d6/21dee9173d0defec802d181e588903c0a3d776db4cd95781d4146f2dded8/django-query-parameters-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "2cf24ee9d72356789dd53d1f4a32546d", "sha256": "292f7b37e14c319cac96337a9e2b2994299ec20426be112a698f65e5b1390e16" }, "downloads": -1, "filename": "django-query-parameters-0.1.2.tar.gz", "has_sig": false, "md5_digest": "2cf24ee9d72356789dd53d1f4a32546d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2965, "upload_time": "2014-03-26T23:47:45", "url": "https://files.pythonhosted.org/packages/31/1a/da23187b44eda22383c5c4f4604d8a7cd78a40b20103f5ecc6468e413ec5/django-query-parameters-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "82ce7a86e34aa3d4c9c173f3ada619c6", "sha256": "c54ec1ac3db6f207c178f80b990e9bbfe2737b0cce0d897189945db8dfbc84fd" }, "downloads": -1, "filename": "django-query-parameters-0.1.3.tar.gz", "has_sig": false, "md5_digest": "82ce7a86e34aa3d4c9c173f3ada619c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3779, "upload_time": "2014-03-27T02:15:44", "url": "https://files.pythonhosted.org/packages/bc/35/c34e2ffb3496fdc7e150b2c202a0c3ed636a6fe4da2e0b95c1d0121f7674/django-query-parameters-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "464b4e4d6a29b49caaeb023bc294f09f", "sha256": "6b083e39345f8871db3a3d0001542d5c1a28f09e0320460736108db9eee225cf" }, "downloads": -1, "filename": "django-query-parameters-0.2.0.tar.gz", "has_sig": false, "md5_digest": "464b4e4d6a29b49caaeb023bc294f09f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4978, "upload_time": "2014-03-27T03:24:57", "url": "https://files.pythonhosted.org/packages/1b/19/1ab6a84cf6d4d837292b538e0b41be93dd63fa9291d1a78191dc331015ed/django-query-parameters-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "c52d56e9ebacebf474706c79186aca03", "sha256": "ee0cde9962a33e4d821eca1a0f902c2bb5cc99b5f349e33c59d6a71b717673e0" }, "downloads": -1, "filename": "django-query-parameters-0.2.1.tar.gz", "has_sig": false, "md5_digest": "c52d56e9ebacebf474706c79186aca03", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5038, "upload_time": "2014-03-27T03:42:43", "url": "https://files.pythonhosted.org/packages/23/6b/57e5bd48afc97bf8f1570f83d020d1a8d852a9cd2423f544a26d9b334d54/django-query-parameters-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "92bdd86988161fb41b732741e6944b58", "sha256": "c8dbf6bd9bd5a4d8f01a51851e2f2fc8320d229cc93abefd0314d777f73f7cf5" }, "downloads": -1, "filename": "django-query-parameters-0.2.2.tar.gz", "has_sig": false, "md5_digest": "92bdd86988161fb41b732741e6944b58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5039, "upload_time": "2016-06-14T18:10:43", "url": "https://files.pythonhosted.org/packages/c5/a5/97aff6f4b8498f3ca043a1749289e49d8b4f5b311c5422f316b26f06ad7e/django-query-parameters-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "1c214e3c8b986dde5c9d6c5d5f7f17cc", "sha256": "cc79a406bb55747d183ac647a99846555c987942b7adb073da99323b6a8f24df" }, "downloads": -1, "filename": "django-query-parameters-0.2.3.tar.gz", "has_sig": false, "md5_digest": "1c214e3c8b986dde5c9d6c5d5f7f17cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5060, "upload_time": "2017-11-18T04:02:15", "url": "https://files.pythonhosted.org/packages/9c/8e/1eeeba6a865c171a5d7892cb95083dd437a183f2a6ba02bda83f430e7e0e/django-query-parameters-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1c214e3c8b986dde5c9d6c5d5f7f17cc", "sha256": "cc79a406bb55747d183ac647a99846555c987942b7adb073da99323b6a8f24df" }, "downloads": -1, "filename": "django-query-parameters-0.2.3.tar.gz", "has_sig": false, "md5_digest": "1c214e3c8b986dde5c9d6c5d5f7f17cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5060, "upload_time": "2017-11-18T04:02:15", "url": "https://files.pythonhosted.org/packages/9c/8e/1eeeba6a865c171a5d7892cb95083dd437a183f2a6ba02bda83f430e7e0e/django-query-parameters-0.2.3.tar.gz" } ] }