Andreas Poehlmann

Results 343 comments of Andreas Poehlmann

This is now supported via ```python source_uri = UPath('some_file') target_uri = UPath('s3://test/some_file') source_uri.copy(target_uri) ``` Might not run at optimal speed but that can be worked out in a future release.

Hi @Koncopd , This is intended. universal-pathlib `0.3.x` fixed a long standing bug where UPath incorrectly subclassed Path, and inherited the `__fspath__` interface. `pathlib.Path` and `os.PathLike` classes and subclasses represent...

Thank you for reporting @csniu Could you write a standalone test in update/tests/implementations/test_s3.py that reproduces the is_file() behavior you show in your example code snippet? The switch to `not .is_dir()`...

Thanks for following up! So I would recommend to report this using an example without UPath and only s3fs to the s3fs issue tracker. In the general case S3FileSystem.isfile() and...

Hi @rx-dwoodward, Thanks for offering to contribute ❤️ > Would you be receptive to a v1 validation PR? Yes. The PR would ideally have to implement: - pydantic v1 support...

it's parsed as your account name and available in storage_options ```python >>> import upath >>> p = upath.UPath("abfs://container_name@storage_account_name.dfs.core.windows.net/") >>> p AzurePath('abfs://container_name/') >>> p.protocol 'abfs' >>> p.path 'container_name/' >>> p.storage_options mappingproxy({'account_name':...

Hi @ikrommyd, Thanks for opening the feature request! To add a new UPath implementation we'd need to add tests for `fsspec-xrootd`. In this issue comment I describe the first steps:...

> so __get_validators__ is supposed to yield a number of validation functions, so I need to include the classmethod to provide the actual validation that gets run. See [here](https://docs.pydantic.dev/1.10/usage/types/#classes-with-__get_validators__). Well...

So it sounds to me as if: ```python def somehow_serialize_upath_to_dict(pth: UPath) -> UPathTypedDict: ... class Model(BaseModel): path: UPath class Config: json_encoders = {UPath: somehow_serialize_upath_to_dict} ``` Would be a recipe we...

xref: pydantic v2/v1 download statitistics: https://github.com/pydantic/pydantic/issues/11613#issuecomment-3242513660