$npx skillfedfor your agent

yarl

Yet another URL library

Worth itPyPI Python ModulesReleased Jul 2026621.4M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — yarl-1.24.5-py3-none-any.whl
v1.24.5 · released 2026-07-20 · Python >=3.10 · 3 runtime deps: idna, multidict, propcache

Yes. yarl is a mature, actively maintained library in the top 100 PyPI packages with no known vulnerabilities. Its immutable design, automatic encoding/decoding, and low install friction make it the right choice for any Python project that needs robust URL handling. Use it unless you have a specific reason to prefer a different URL library.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • On systems without pre-built wheels, a C compiler and Python headers are needed to build from source, unless YARL_NO_EXTENSIONS environment variable is set (though pure-Python mode is slower).
  • Low friction installation with pre-built wheels for Linux, Windows, and macOS.

License · maintenance · safety

Apache-2.0 (permissive) — Licensed under Apache 2.0 (permissive), allowing free use in commercial and private projects with minimal restrictions.

last release 2026-07-20 (25 days) · last repo commit 2026-08-10 · 1,490 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 621,403,276 downloads/mo, #50 on PyPI

Verify before relying

pip install yarl

from yarl import URL
url = URL('https://www.python.org/~guido?arg=1#frag')
print(url.host)  # 'www.python.org'
print(url.path)  # '/~guido'
print(url.query)  # MultiDictProxy with query parameters
  • Performance characteristics of the pure-Python fallback compared to the compiled extension.
  • Whether the immutable design and operator overloading (/, %) are well-suited to your URL manipulation patterns.
Same gist for agents: .md · .json

What it is and what it does

yarl is a URL parsing and manipulation library that represents URLs as immutable objects. It provides property-based access to all URL components—scheme, host, port, path, query, fragment—and automatically handles percent-encoding and decoding of non-ASCII characters. The library depends on multidict (for query parameter access), propcache (for caching), and idna (for internationalized domain names).

Instead of mutating URL objects, yarl creates new ones through operator overloading: the `/` operator appends path segments, and the `%` operator adds query parameters. This immutability makes URLs safe to pass between functions without risk of unintended modification. The library includes both decoded properties (e.g., `url.path`) and raw encoded versions (e.g., `url.raw_path`), plus a human-readable representation via `.human_repr()` for display purposes.

Use it for

  • Parse and extract components from URLs in web scrapers or HTTP clients without manual string splitting.
  • Build URLs programmatically for API requests, ensuring proper encoding of special characters and query parameters.
  • Validate and normalize URLs in web applications, leveraging RFC-compliant host validation and zone ID handling.
  • Manipulate URL paths and queries immutably in request routing or URL rewriting middleware.
  • Handle internationalized domain names (IDN) and IPv6 addresses with zone IDs correctly.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

yarl is a mature, actively maintained library in the top 100 PyPI packages with no known vulnerabilities. Its immutable design, automatic encoding/decoding, and low install friction make it the right choice for any Python project that needs robust URL handling. Use it unless you have a specific reason to prefer a different URL library.

Install

yarl on PyPI

Before you install

Low friction installation with pre-built wheels for Linux, Windows, and macOS. Active maintenance with a release 25 days ago; the project is actively developed with recent bug fixes.

Requires Python 3.10 or later. On systems without pre-built wheels, a C compiler and Python headers are needed to build from source, unless YARL_NO_EXTENSIONS environment variable is set (though pure-Python mode is slower).

License in practice

Licensed under Apache 2.0 (permissive), allowing free use in commercial and private projects with minimal restrictions.

Quickstart

pip install yarl

from yarl import URL
url = URL('https://www.python.org/~guido?arg=1#frag')
print(url.host)  # 'www.python.org'
print(url.path)  # '/~guido'
print(url.query)  # MultiDictProxy with query parameters

Verify before relying

  • Performance characteristics of the pure-Python fallback compared to the compiled extension.
  • Whether the immutable design and operator overloading (/, %) are well-suited to your URL manipulation patterns.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
idnamultidictpropcache
MaintenanceActively maintained 25 days since the last release
Last repo commit
First released
Downloads621,403,276 / month, #50 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: CythonProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries :: Python Modules

Evidence: yarl-1.24.5-py3-none-any.whl

Tags

Capabilities
URL parsing and manipulationimmutable URL classpercent encoding decodingURL query string handlingRFC-compliant URL builderURL component accessHTTP URL utilities
Topics
url-parsingimmutable-datahttp-utilities
PyPI keywords
cythoncextyarl

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “percent encoding decoding”

  • yarlyarl provides an immutable URL class for parsing, decomposing, and…
  • python-slugifyConverts text strings—including unicode, HTML entities, and special…
  • basesProvides customizable Base-N encoding and decoding for common styles…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also furl · URLObject · url-normalize · prison · rison · hyperlink · urlcanon · repath · urlpy · purl