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

Implement support for importlib.resources and ResourceReader #5616

Closed
htgoebel opened this issue Mar 8, 2021 · 0 comments · Fixed by #6195
Closed

Implement support for importlib.resources and ResourceReader #5616

htgoebel opened this issue Mar 8, 2021 · 0 comments · Fixed by #6195
Labels
feature Feature request

Comments

@htgoebel
Copy link
Member

htgoebel commented Mar 8, 2021

Implement support for importlib.resources and a respective
ResourceReader.

See importlib.resources.contents() for a usage example and importlib.resources._ZipImportResourceReader for a implementation sample.

Using this function it should be possible to get all modules and resources of a package - both in a PYZ and on filesystem. Please mind: In Python 3.9 there is also importlib.resources.files(), which only returns "resources" and "subdirectories".

@htgoebel htgoebel added the feature Feature request label Mar 8, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant