{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/18"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/6"}],"enrichment":{"capability":"URLPath extends pathlib.PurePath to treat URLs as filesystem-like objects, letting you manipulate URL components (scheme, netloc, path, query, fragment) using familiar path operations and make HTTP requests directly from URL objects.","skillfed_tags":["url-manipulation","pathlib-style","http-requests"],"use_cases":["Build URLs dynamically by composing path segments and query parameters using pathlib-like operators instead of string concatenation.","Extract and modify individual URL components (hostname, port, credentials, query fields) without regex or manual parsing.","Make HTTP requests directly from URL objects using get(), post(), put(), patch(), delete() methods.","Restrict URL navigation to a root domain using jailed mode to prevent accidental traversal to external hosts.","Normalize and compare URLs by treating them as structured objects with predictable component access."],"what_it_does":"URLPath is a Python library that wraps URL strings in an object-oriented interface modeled after pathlib.PurePath, treating URLs as hierarchical paths. It lets you decompose URLs into components (scheme, netloc, username, password, hostname, port, path, query, fragment), navigate and manipulate them using familiar path operators (/ for joining, .parent for going up), and rebuild URLs with modified parts using methods like with_scheme(), with_query(), and with_fragment().\n\nBeyond path operations, URLPath integrates requests to let you call HTTP verbs (get, post, put, patch, delete) directly on URL objects, and provides a \"jailed\" mode to restrict path traversal outside a root URL. It handles query strings as both raw strings and as form field tuples, and preserves trailing slashes. The package targets developers who want to work with URLs programmatically without manually parsing and reconstructing URL strings.","worth_installing":"Yes, if you work with URLs programmatically and prefer object-oriented manipulation over string parsing. The low install friction, permissive MIT license, and stable API make it a safe dependency. The aging maintenance status (last release 305 days ago) is not a blocker for a mature library with no known vulnerabilities, but monitor the repository for critical fixes. Not necessary if you only build URLs occasionally or are already comfortable with urllib.parse."},"id":"urlpath","links":{"html":"https://skillfed.io/packages/urlpath","md":"https://skillfed.io/packages/urlpath.md","pypi":"https://pypi.org/project/urlpath/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-10-13","license_spdx":"MIT","license_treatment":"permissive","name":"urlpath","python_support":"supports_current","summary":"Object-oriented URL from urllib.parse and pathlib"},"popularity":{"monthly_downloads":133666,"position":11499,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.0.0"}
