{
  "id": "python-urllib-parse-table",
  "kind": "table",
  "slug": "python-urllib-parse",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/python-urllib-parse/",
  "title": "Python urllib.parse splits, joins and percent-encodes URLs and query strings",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "urlsplit()",
      "source": "Python docs",
      "detail": "returns a 5-item named tuple matching scheme://netloc/path?query#fragment. urlparse() also splits off params; it is based on obsoleted RFCs, and urlsplit() should generally be used instead."
    },
    {
      "name": "parse_qs()",
      "source": "Python docs",
      "detail": "returns unique variable names as keys and lists of values; blank values are ignored unless keep_blank_values is true."
    },
    {
      "name": "quote_plus()",
      "source": "Python docs",
      "detail": "is the default quote_via function, so spaces in values are quoted as a + character. Encode the result to bytes before using it as POST data with urlopen()."
    },
    {
      "name": "quote()",
      "source": "Python docs",
      "detail": "replaces special characters using the %xx escape, keeps / by default, and never quotes letters, digits and _.-~."
    },
    {
      "name": "urlsplit()",
      "source": "Python docs",
      "detail": "and urlparse() do not perform validation of inputs; on unusual input they may return empty strings or None instead of raising an exception."
    }
  ],
  "related_slugs": [
    "python-json",
    "node-http-and-url",
    "python-pathlib"
  ],
  "license": "CC-BY-4.0",
  "source_license": "PSF-2.0 (Python docs); PSF-2.0 (python/cpython (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "fill-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}