query-string
get url query string dict
What it is and what it does
query-string is a lightweight utility that extracts query parameters from URLs or raw query strings and returns them as a Python dictionary. It accepts either a full URL (from which it strips the query fragment) or a raw query string segment, parsing key-value pairs into a simple dict.
The package has no runtime dependencies and is permissively licensed under the Unlicense. However, it has been abandoned since December 2020 with no commits or releases since then. Python version support is unspecified, and the codebase has not been tested against modern Python versions or updated for any compatibility issues that may have emerged.
Use it for:
- Quick extraction of query parameters from a URL string when working with legacy code or a minimal dependency footprint.
- Parsing raw query string segments in simple scripts where urllib.parse feels like overkill.
- Educational or prototyping work where a straightforward query parser is needed without external complexity.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses URL query strings and fragments into Python dictionaries, extracting key-value pairs from both full URLs and raw query string segments.
No. The package is abandoned (last release 2020-12-03, no maintenance since), has unspecified Python support, and offers no advantage over Python's built-in urllib.parse module, which is actively maintained and part of the standard library. Use urllib.parse.parse_qs or urllib.parse.urlparse instead.
Install
query-string on PyPI
pip
pip install query-stringuv
uv add query-stringpoetry
poetry add query-stringInstalling query-string
Before you install
High install friction due to abandonment: last release was 2020-12-03, no commits since then, and the repository shows no active maintenance. The package has no runtime dependencies, which simplifies installation, but the stale codebase and lack of updates pose long-term compatibility risks.
License in practice
Released under the Unlicense (permissive public domain dedication), which places no restrictions on use, modification, or distribution. This is maximally permissive but also means no warranty or liability protection.
Quickstart
pip install query-string
import query_string
result = query_string.parse('k=v&k2=v2&k3=v3')
print(result) # {'k': 'v', 'k2': 'v2', 'k3': 'v3'}
Package is abandoned as of 2020-12-03 with no maintenance; Python version support is unspecified and may not work reliably on modern Python versions.
Verify before relying
- Whether the package actually works on Python 3.10+ given its abandonment and unspecified Python support.
- Whether standard library urllib.parse.parse_qs or urllib.parse.urlparse would be a better choice for this use case.
- Any known incompatibilities or edge cases in query string parsing that users have encountered.
Package facts
| License | Unlicense (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,080 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 90,556/month — #13,577 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: query-string-2020.12.3.tar.gz
Keywords: query, url
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
furlfurl parses and manipulates URLs by providing a…
permissive · top 5,000 on PyPI
purlProvides an immutable, chainable URL class for…
permissive · top 15,000 on PyPI
urlextractExtracts URLs from text by locating TLDs and…
permissive · top 5,000 on PyPI
url-normalizeStandardizes URLs to a canonical form by…
permissive · top 1,000 on PyPI
multidictMultidict is a dict-like container that allows…
permissive · top 100 on PyPI
ada-urlParse, validate, and manipulate URLs according…
permissive · top 15,000 on PyPI
git-url-parseParses Git repository URLs to extract…
permissive · top 15,000 on PyPI
rfc3986Parses, validates, and normalizes URIs…
permissive · top 1,000 on PyPI
tldextractAccurately extracts subdomain, domain, and…
permissive · top 1,000 on PyPI
json-flattenConverts nested JSON objects into flat…
permissive · top 15,000 on PyPI