Skip to content

Add URL class to urllib #105016

Open
Open
@placTc

Description

@placTc

Feature or enhancement

A URL class located within urllib that would make building, parsing and modifying URLs simpler and more intuitive.

Pitch

Recently I have encountered a need to build a URL dynamically in an app I wrote. Despite its namesake, the standard library urllib did not provide a simple way to do this. Its functions within urllib.parse are relatively unintuitive and required my own (at the time, quick, dirty and simple) wrappers to be truly useful. There are, as I later discovered and as is probably to be expected, third party solutions to the problem, but the fact that there was no such solution right in urllib genuinely surprised me.

Previous discussion

https://discuss.python.org/t/an-urllib-parse-url-class/1789 - A 2019 discussion of this idea that I found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions