universal_pathlib
universal_pathlib copied to clipboard
Provide and interface to `query` and `fragments`
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:
...
Once this is implemented we can deprecate ._url