{"id":16420779,"url":"https://github.com/cinaaaa/querystringer","last_synced_at":"2025-02-24T16:17:20.266Z","repository":{"id":57459349,"uuid":"272946788","full_name":"cinaaaa/QueryStringer","owner":"cinaaaa","description":"Simple middleware for django to extract string queries from urls","archived":false,"fork":false,"pushed_at":"2020-06-25T13:09:00.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-24T06:52:05.532Z","etag":null,"topics":["django","djangomiddle","middleware","query","querystringer","string","stringquery"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/querystringer/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cinaaaa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-17T10:38:23.000Z","updated_at":"2025-01-19T14:06:47.000Z","dependencies_parsed_at":"2022-09-10T11:31:10.503Z","dependency_job_id":null,"html_url":"https://github.com/cinaaaa/QueryStringer","commit_stats":null,"previous_names":["e-rror/querystringer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinaaaa%2FQueryStringer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinaaaa%2FQueryStringer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinaaaa%2FQueryStringer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinaaaa%2FQueryStringer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cinaaaa","download_url":"https://codeload.github.com/cinaaaa/QueryStringer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240511299,"owners_count":19813236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","djangomiddle","middleware","query","querystringer","string","stringquery"],"created_at":"2024-10-11T07:29:10.085Z","updated_at":"2025-02-24T16:17:20.233Z","avatar_url":"https://github.com/cinaaaa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://images.vexels.com/media/users/3/151277/isolated/preview/f85c1b1a7ce5e4a1e97418bfef30a759-web-address-bar-doodle-icon-by-vexels.png\" height=\"250\" width=\"250\" /\u003e  \n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003eQuery Stringer\u003c/h1\u003e\n\u003ch4 align=\"center\"\u003eSimple middleware for django to extract string queries from urls\u003c/h4\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/pypi/v/querystringer\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/issues/E-RROR/querystringer\"/\u003e\n\u003c/p\u003e\n\n# Whats Query Stringer\nquery stringer is simple middleware for django \u003e * to get string querys from urls and do some filters on them too\n\n# Installation\n```\npip install querystringer\n```\n\n# Import\nimport it inside middleware in django settings\n```\nmiddlewares = [\n  ...,\n  'querystringer.middleware.QueryStringer',\n  ...,\n]\n```\n\n# Usage\nall requests will have an edited request dict\nand you can access them by `request.GET['queries']`\n\n# Example\nour view\n```\ndef home(request):\n    return HttpResponse(request.GET['queries'])\n```\nthen send request to `/home?test=true`\nnow we should except output like this\n```\n('test', 'true')\n```\n\n# Remove specific characters\nin your `settings.py` add a list with `QUERY_REMOVE_STRINGS` name\nto ignore characters you want\nlike this\n```\nQUERY_REMOVE_STRINGS = ['-', '\u003e', '%']\n```\nthen the data you get will be clean\nlike this\nrequest to `/home?test=tru\u003ee`\nthen we get `(test, true)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcinaaaa%2Fquerystringer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcinaaaa%2Fquerystringer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcinaaaa%2Fquerystringer/lists"}