Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regsister fsspec interface with fsspec #354

Open
martindurant opened this issue Jul 15, 2024 · 2 comments
Open

Regsister fsspec interface with fsspec #354

martindurant opened this issue Jul 15, 2024 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@martindurant
Copy link

The following stackoverflow question brought to my attention that, although this repo has an fsspec-compatible class, it is not registered with fsspec, so calls like fsspec.open("gdrive://...") don't work. Even importing the library does not seem to do the registration. (They DO work with the older gdrivefs.)

We should figure out what the appropriate protocol to use is and make sure that users have as smooth a path as possible to loading data off gdrive via fsspec.

@shcheklein
Copy link
Member

@martindurant can you show how / where is it done usually?

@shcheklein shcheklein added the enhancement New feature or request label Jul 15, 2024
@martindurant
Copy link
Author

https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.registry.register_implementation is probably what you want. If you call this on import of pydrive2.fs , then future calls ton fsspec.open() will know about it.

@shcheklein shcheklein added the help wanted Extra attention is needed label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants