Skip to main content

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, fragment
  • url_parse(url) -> Url — handles IPv6 bracket hosts; no userinfo support
  • default_port(scheme) -> int, effective_port(u) -> int
  • quote(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]) -> str
  • parse_query(q) -> dict[str, str] — last value wins for duplicate keys

Metadata

Release files for serp-url 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for serp-url 0.1.1
File Size Uploaded Provenance Actions
serp_url-0.1.1.tar.gz 6.2 kB With provenance Details for serp_url-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for serp-url 0.1.1
File Interpreter ABI Platform Actions
serp_url-0.1.1-py3-none-any.whl Python 3 none any Details for serp_url-0.1.1-py3-none-any.whl

Total release size: 11.5 kB

Release files / serp_url-0.1.1.tar.gz

Download URL serp_url-0.1.1.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2fda0d8875ee8fb9e95bddd69658a09383a72bb15d7418b1169b24c9ea8df6b4
BLAKE2b-256 checksum
How to use checksums
62b808b938bf7616f3854b1ae2b4520a5348e1274bd85478a043e14a4c98b50e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 27, 2026.

Transparency log

Release files / serp_url-0.1.1-py3-none-any.whl

Download URL serp_url-0.1.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a12a67f5d363ce1d7270cd2a1a7f422212a2cf1c5950f2608c9c157c6bb450c6
BLAKE2b-256 checksum
How to use checksums
24b6f971d8d7c889220b9e8ff8be47425cdb4510c78d0aadad258f9bdb50518d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 27, 2026.

Transparency log

Security for serp-url 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for serp_url-0.1.1.tar.gz

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 Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page