skillfed

query-string

get url query string dict

query-string v2020.12.3 90.6K downloads/30d#13,577 on PyPI3
Permissive license Unlicense Abandoned released

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-string

uv

uv add query-string

poetry

poetry add query-string

Installing 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

License :: Public DomainOperating System :: OS IndependentProgramming Language :: Python :: 3

Tags

parse query stringurl query parametersextract url parametersquery string parserurl parsingget query dict
abandonedurl-parsing

More WWW/HTTP packages