serp-url
URL parsing and encoding for Serpentine. Pure Serpentine ([P]) — the same source dual-runs under CPython.
from serp_url import url_parse, quote, urlencode, parse_query
u = url_parse("https://example.com:8443/a/b?x=1&y=two#frag")
print(u.scheme, u.host, u.port, u.path, u.query, u.fragment)
print(quote("a b/c?")) # a%20b/c%3F
print(parse_query("x=1&name=J%C3%BCrgen"))
API
Url— dataclass:scheme, host, port (-1 when absent), path, query, fragmenturl_parse(url) -> Url— handles IPv6 bracket hosts; no userinfo supportdefault_port(scheme) -> int,effective_port(u) -> intquote(s)/unquote(s)— RFC 3986 percent-encoding of UTF-8 ('/' kept safe in quote)quote_plus(s)/unquote_plus(s)— form encoding (space ↔ '+')urlencode(params: dict[str, str]) -> strparse_query(q) -> dict[str, str]— last value wins for duplicate keys
Metadata
Release files for serp-url 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| serp_url-0.1.0.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| serp_url-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / serp_url-0.1.0.tar.gz
| Download URL | serp_url-0.1.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b6dcd3dfb8cb42e5bfc277e35029e4ae9b20a3902e442ef4690bfd8931ca227
|
|
BLAKE2b-256 checksum How to use checksums |
bdcffd4c6ec3210dbabacca127fe7031592bfff01043148da08abe2f55cfa512
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.
Transparency logRelease files / serp_url-0.1.0-py3-none-any.whl
| Download URL | serp_url-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d53c1b72f9ea51328ed3ce2f67cbce5b15adbf36b468512e43d4e9adcf2b5dd3
|
|
BLAKE2b-256 checksum How to use checksums |
87375a6cfc61b1e0c1d1c379866ef3c90779ea6ca643a1feaad8222d8796a06b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.
Transparency log