Use universal-pathlib to support arguments with remote storage paths #568
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This is now supported, but you need to add def main(write_path: Annotated[UPath, typer.Argument(..., parser=UPath)]): |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
universal-pathlib is an extremely useful
pathlibextension that's part of thefsspecstack and provides the same interface aspathlibwith support to remote filesystems such ass3,gcsand more.Right now
typerdoesn't understandUPath(and for example can't check remote file existance).It would be useful to support
UPathand it would cost around 0 efforts to add this support as the interface is exactlypathlib's.I want this to be possible out of the box:
Beta Was this translation helpful? Give feedback.
All reactions