Andreas Poehlmann
Andreas Poehlmann
Hi @rx-dwoodward I spent a bit of time thinking about this, and I'd be happy to integrate basic functionality for serialization into universal-pathlib, and provide a recipe in the README...
Hi @Zan-L cross-referencing: https://github.com/pola-rs/polars/issues/24921 In the example you provided, they converted remote UPaths to a string via indirectly calling os.fspath() via os.path.expanduser() see here: https://github.com/pola-rs/polars/blob/77254fce44d7b848aa9aa8bb3a0f01f5d2e63d1c/py-polars/src/polars/_utils/various.py#L235 It's better to be explicit...
Hi @junjzhang, Thank you for your contribution! Can you provide some more context? - Where did you run into the issue? - To solve your issue is runtime typing only...
Thank you for the additional context 🙏 Given my quick tests, I don't think your solution solves your problem. Can you show me an example how you would provide a...
Awesome :tada: Well with this example it seems you got your use case working correctly: ```python # cli_tyro.py from typing import Annotated import tyro from upath import UPath from pydantic...
> I suppose we might imagine a more featureful memory filesystem that has flags to enable symlinks, or whether "." is valid, etc, so that it can be used in...
> I think if you can get somewhat concise definitions of these special paths documented, and their scope/universality, it'd definitely be useful as a user of the library, but also,...
There are two ways right now to get IDE autocompletion and suggestions for storage_options: 1. use the correct upath subclass directly 2. use `upath.registry.get_upath_class` to narrow to the right class...
Hello everyone, I just saw this issue, and wanted to chime in. protocol being a class attribute is very convenient for URI parsing. I can retrieve the FileSystem class via...
> I think you misunderstand what my problem is. I'm not suggesting to remove protocol from being a class attribute. What I'm saying is: it's actually beneficial for urlpath parsing,...