Skip to content

Conversation

@ap--
Copy link
Collaborator

@ap-- ap-- commented Sep 11, 2022

Hello everyone,

This PR allows to import upath.registry without import overhead of implementations and their dependencies. It provides a function upath.registry.get_upath_class that takes a protocol, and returns either a specialized implementation of UPath, or the default UPath class if no specialization is available. It returns None if no corresponding fsspec filesystem can be found.

Furthermore, the untested warning for file:/ protocol UPath instances is removed, since we explicitly test the UPath class with all test cases for the file protocol in test_core.py.

Cheers,
Andreas 😃

Copy link
Collaborator

@normanrz normanrz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

@normanrz normanrz merged commit 67d5d40 into fsspec:main Sep 19, 2022
@ap-- ap-- deleted the lazy-registry branch September 19, 2022 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants