universal_pathlib icon indicating copy to clipboard operation
universal_pathlib copied to clipboard

Provide and interface to `query` and `fragments`

Open ap-- opened this issue 2 years ago • 1 comments

We need an interface to uri query parameters and fragments.

Could be:


class UPath(...):

    @property
    def query(self) -> Mapping[str, str]:
        ...

    @property
    def fragment(self) -> str:
        ...

    def with_query(self, **params: Any) -> UPath:
        ...

    def with_fragment(self, fragment: str) -> UPath:
        ...

ap-- avatar Feb 18 '24 18:02 ap--

Once this is implemented we can deprecate ._url

ap-- avatar Feb 18 '24 18:02 ap--