René's URL Explorer Experiment


Title: Allow resources to be in subdirectories · Issue #58 · python/importlib_resources · GitHub

Open Graph Title: Allow resources to be in subdirectories · Issue #58 · python/importlib_resources

X Title: Allow resources to be in subdirectories · Issue #58 · python/importlib_resources

Description: In GitLab by @rob.speer on May 16, 2018, 01:23 Suppose I have a Web application, myapp, that needs to serve a static file, which by convention needs to be in the path myapp/static/ld/context.ld.json. Suppose I also want to be able to acc...

Open Graph Description: In GitLab by @rob.speer on May 16, 2018, 01:23 Suppose I have a Web application, myapp, that needs to serve a static file, which by convention needs to be in the path myapp/static/ld/context.ld.jso...

X Description: In GitLab by @rob.speer on May 16, 2018, 01:23 Suppose I have a Web application, myapp, that needs to serve a static file, which by convention needs to be in the path myapp/static/ld/context.ld.jso...

Opengraph URL: https://github.com/python/importlib_resources/issues/58

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow resources to be in subdirectories","articleBody":"In GitLab by @rob.speer on May 16, 2018, 01:23\n\nSuppose I have a Web application, `myapp`, that needs to serve a static file, which by convention needs to be in the path `myapp/static/ld/context.ld.json`. Suppose I also want to be able to access that file from Python code, because its contents are used in a test.\n\nAs importlib_resources is currently defined, I would need to rewrite the path as if it were a Python submodule, even though it does not contain actual Python code: `path(myapp.static.ld, \"context.ld.json\")`. I would also need to create empty files named `myapp/static/__init__.py` and `myapp/static/ld/__init__.py`, and hopefully exclude them from being served as static files.\n\nThat would be enough for me to give up and use paths relative to `__file__` instead. In general, I would heartily recommend importlib if I could reasonably promise that it was an improvement over using `__file__` or over existing uses of `pkg_resources`, which it wouldn't be if it doesn't support subdirectories.\n\nThe call I would like to be able to make in this situation is `path(myapp, \"static/ld/context.ld.json\")`.","author":{"url":"https://github.com/jaraco","@type":"Person","name":"jaraco"},"datePublished":"2020-10-21T21:59:09Z","url":"https://github.com/python/importlib_resources/issues/58"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3167321b-8b27-1276-2d36-4273369fd664
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD09C:2DCAE8:2B9303E:3BA3319:6B005AD8
html-safe-noncee94f2eaab85158fcca5695b8e0d16fbeca644b40e3264931afbdca8d5d9c2f6f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDlDOjJEQ0FFODoyQjkzMDNFOjNCQTMzMTk6NkIwMDVBRDgiLCJ2aXNpdG9yX2lkIjoiMTM3NDU1NzExNzU0OTE0MDY5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac330bd5aab02b91f1877e3118acf83b2812765a2234d66ef46f20ef59398f4a4e
hovercard-subject-tagissue:726891711
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/importlib_resources/58/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5eca9dda6d692e371341530db5f2d880e996d758f3eb396b3cbbc39b78457009/python/importlib_resources/issues/58
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5eca9dda6d692e371341530db5f2d880e996d758f3eb396b3cbbc39b78457009/python/importlib_resources/issues/58
og:image:altIn GitLab by @rob.speer on May 16, 2018, 01:23 Suppose I have a Web application, myapp, that needs to serve a static file, which by convention needs to be in the path myapp/static/ld/context.ld.jso...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejaraco
hostnamegithub.com
expected-hostnamegithub.com
None29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73
turbo-cache-controlno-preview
go-importgithub.com/python/importlib_resources git https://github.com/python/importlib_resources.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id306147182
octolytics-dimension-repository_nwopython/importlib_resources
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id306147182
octolytics-dimension-repository_network_root_nwopython/importlib_resources
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseeacd927ba6112e3b01ba99c762bd699a4a4f5df7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/importlib_resources/issues/58#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fimportlib_resources%2Fissues%2F58
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fimportlib_resources%2Fissues%2F58
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fimportlib_resources
Reloadhttps://github.com/python/importlib_resources/issues/58
Reloadhttps://github.com/python/importlib_resources/issues/58
Reloadhttps://github.com/python/importlib_resources/issues/58
pythonhttps://github.com/python
importlib_resourceshttps://github.com/python/importlib_resources
Codehttps://github.com/python/importlib_resources
Issues5 (5)https://github.com/python/importlib_resources/issues
Pull requests7 (7)https://github.com/python/importlib_resources/pulls
Actionshttps://github.com/python/importlib_resources/actions
Projectshttps://github.com/python/importlib_resources/projects
Security and qualityhttps://github.com/python/importlib_resources/security
Insightshttps://github.com/python/importlib_resources/insights
https://github.com/python/importlib_resources
New issuehttps://github.com/login?return_to=https://github.com/python/importlib_resources/issues/58
New issuehttps://github.com/login?return_to=https://github.com/python/importlib_resources/issues/58
Allow resources to be in subdirectorieshttps://github.com/python/importlib_resources/issues/58#top
enhancementNew feature or requesthttps://github.com/python/importlib_resources/issues?q=state%3Aopen%20label%3A%22enhancement%22
1.1https://github.com/python/importlib_resources/milestone/12
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issue-726891711
Nexthttps://github.com/python/importlib_resources/issues/58?timeline_page=1
jaracohttps://github.com/jaraco
enhancementNew feature or requesthttps://github.com/python/importlib_resources/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#event-3906131195
jaracohttps://github.com/jaraco
1.1https://github.com/python/importlib_resources/milestone/12
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#event-3906131199
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713901311
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713901335
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713901352
importlib_metadatahttps://gitlab.com/python-devs/importlib_metadata
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713901369
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713901383
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713901401
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713901416
distutils indicates to dohttps://docs.python.org/3.7/distutils/setupscript.html#installing-package-data
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713901430
https://bugs.python.org/issue36128https://bugs.python.org/issue36128
https://gregoryszorc.com/blog/2018/12/28/faster-in-memory-python-module-importing/https://gregoryszorc.com/blog/2018/12/28/faster-in-memory-python-module-importing/
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713901454
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713901477
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713901498
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713901522
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713901540
https://github.com/pallets/werkzeug/pull/1647https://github.com/pallets/werkzeug/pull/1647
https://github.com/pallets/jinja/pull/1082https://github.com/pallets/jinja/pull/1082
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713901999
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713902025
#104https://github.com/python/importlib_resources/issues/104
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713902045
https://stackoverflow.com/questions/6028000/how-to-read-a-static-file-from-inside-a-python-package/58941536?noredirect=1#comment112280625_58941536https://stackoverflow.com/questions/6028000/how-to-read-a-static-file-from-inside-a-python-package/58941536?noredirect=1#comment112280625_58941536
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713902061
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713902090
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713902109
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713902121
https://github.com/wimglenn/resources-examplehttps://github.com/wimglenn/resources-example
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#issuecomment-713902145
jaracohttps://github.com/jaraco
completedhttps://github.com/python/importlib_resources/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 21, 2020https://github.com/python/importlib_resources/issues/58#event-3906137450
kennikyhttps://github.com/kenniky
on Jul 15, 2026https://github.com/python/importlib_resources/issues/58#event-27994951715
fix: work around python/importlib_resources#58https://github.com/kenniky/ArchipelagoSSE/commit/9c673351bdc0b30ee8918fe2bb226030dcf2abbc
python/importlib_resources#58https://github.com/python/importlib_resources/issues/58
9c67335https://github.com/kenniky/ArchipelagoSSE/commit/9c673351bdc0b30ee8918fe2bb226030dcf2abbc
luhnhttps://github.com/luhn
on Nov 11, 2026https://github.com/python/importlib_resources/issues/58#event-35842293428
Fix py312 tests for `ImportlibResourcesAssetDescriptor`https://github.com/luhn/pyramid/commit/c114319f7508d35202c1594371a459cee863ee18
c114319https://github.com/luhn/pyramid/commit/c114319f7508d35202c1594371a459cee863ee18
Fix py312 tests for `ImportlibResourcesAssetDescriptor`https://github.com/luhn/pyramid/commit/0333ebddccaf91456a3c87cb98b56abdc58060c9
0333ebdhttps://github.com/luhn/pyramid/commit/0333ebddccaf91456a3c87cb98b56abdc58060c9
Fix py312 tests for `ImportlibResourcesAssetDescriptor`https://github.com/luhn/pyramid/commit/ca06b9f2a017c5d88fe8980132c14a6868da94ac
ca06b9fhttps://github.com/luhn/pyramid/commit/ca06b9f2a017c5d88fe8980132c14a6868da94ac
Fix py312 tests for `ImportlibResourcesAssetDescriptor`https://github.com/luhn/pyramid/commit/0b1b96708b43a1ada6beda6db6fefc377c172ef5
0b1b967https://github.com/luhn/pyramid/commit/0b1b96708b43a1ada6beda6db6fefc377c172ef5
Fix py312 tests for `ImportlibResourcesAssetDescriptor`https://github.com/luhn/pyramid/commit/cffab68632437efce01f77afd021871bd02b5da5
cffab68https://github.com/luhn/pyramid/commit/cffab68632437efce01f77afd021871bd02b5da5
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/importlib_resources/issues/58
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/importlib_resources/issues/58
enhancementNew feature or requesthttps://github.com/python/importlib_resources/issues?q=state%3Aopen%20label%3A%22enhancement%22
1.1https://github.com/python/importlib_resources/milestone/12
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.