René's URL Explorer Experiment


Title: Should PackageMetadata.get be supported? · Issue #384 · python/importlib_metadata · GitHub

Open Graph Title: Should PackageMetadata.get be supported? · Issue #384 · python/importlib_metadata

X Title: Should PackageMetadata.get be supported? · Issue #384 · python/importlib_metadata

Description: This isn't a feature request. I'm looking for a quick clarification, so other folks who encounter python/typeshed#7767 have a definitive answer. In the wild, I've seen things like this: from importlib.metadata import metadata print(metad...

Open Graph Description: This isn't a feature request. I'm looking for a quick clarification, so other folks who encounter python/typeshed#7767 have a definitive answer. In the wild, I've seen things like this: from import...

X Description: This isn't a feature request. I'm looking for a quick clarification, so other folks who encounter python/typeshed#7767 have a definitive answer. In the wild, I've seen things like this:...

Opengraph URL: https://github.com/python/importlib_metadata/issues/384

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Should PackageMetadata.get be supported?","articleBody":"This isn't a feature request. I'm looking for a quick clarification, so other folks who encounter python/typeshed#7767 have a definitive answer.\r\n\r\n---\r\n\r\nIn the wild, I've seen things like this:\r\n\r\n```\r\nfrom importlib.metadata import metadata\r\nprint(metadata(\"bork\").get(\"Version\"))\r\n```\r\n\r\nBoth the [stdlib documentation](https://docs.python.org/3/library/importlib.metadata.html) and the [readthedocs documentation](https://importlib-metadata.readthedocs.io/en/latest/) never mention `.get()`, and `PackageMetadata` does not define it. Due to that, using it and running mypy returns `error: \"PackageMetadata\" has no attribute \"get\"`. I suspect I made a bad assumption when I used it, but if so it's one I've seen other folks make — so it seems worthwhile to get an explicit answer on whether leaving it out is deliberate.\r\n\r\n**So, my question is this:**\r\n\r\nIs `.get()` an implementation detail that folks latched on to and should migrate away from? Or should it be added to `PackageMetadata`?","author":{"url":"https://github.com/duckinator","@type":"Person","name":"duckinator"},"datePublished":"2022-06-01T18:05:36Z","url":"https://github.com/python/importlib_metadata/issues/384"}

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:d6534498-b147-3a4a-85d3-e3ecf53e7a74
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8AEC:1F5665:E4A84:133396:6B0080A3
html-safe-nonce5129c66848b46cfcb79ce391ffc5d0a03594eda1a5d87f6da34bfe9e244b5f3a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUVDOjFGNTY2NTpFNEE4NDoxMzMzOTY6NkIwMDgwQTMiLCJ2aXNpdG9yX2lkIjoiMjg3NjAzNjQ4MjYwOTQ3OTg0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac460f7a43744c4e72c2c5b4678e3d14a102893f2398ebd26f143fd6862b0aed48
hovercard-subject-tagissue:1256674214
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_metadata/384/issue_layout
twitter:imagehttps://opengraph.githubassets.com/37a088362c104bea1c4f802651db1faa51de88adf000c850b2a3cb2248f0a808/python/importlib_metadata/issues/384
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/37a088362c104bea1c4f802651db1faa51de88adf000c850b2a3cb2248f0a808/python/importlib_metadata/issues/384
og:image:altThis isn't a feature request. I'm looking for a quick clarification, so other folks who encounter python/typeshed#7767 have a definitive answer. In the wild, I've seen things like this: from import...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameduckinator
hostnamegithub.com
expected-hostnamegithub.com
None82c186f13e104004ab7bdb779f3195e59dd38bfde531aaa74b76470fc2462b83
turbo-cache-controlno-preview
go-importgithub.com/python/importlib_metadata git https://github.com/python/importlib_metadata.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id306448340
octolytics-dimension-repository_nwopython/importlib_metadata
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id306448340
octolytics-dimension-repository_network_root_nwopython/importlib_metadata
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
released1bc2aa1939001689f5ce935982c10a6138f745c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/importlib_metadata/issues/384#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fimportlib_metadata%2Fissues%2F384
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_metadata%2Fissues%2F384
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_metadata
Reloadhttps://github.com/python/importlib_metadata/issues/384
Reloadhttps://github.com/python/importlib_metadata/issues/384
Reloadhttps://github.com/python/importlib_metadata/issues/384
pythonhttps://github.com/python
importlib_metadatahttps://github.com/python/importlib_metadata
Codehttps://github.com/python/importlib_metadata
Issues8 (8)https://github.com/python/importlib_metadata/issues
Pull requests6 (6)https://github.com/python/importlib_metadata/pulls
Actionshttps://github.com/python/importlib_metadata/actions
Projectshttps://github.com/python/importlib_metadata/projects
Wikihttps://github.com/python/importlib_metadata/wiki
Security and qualityhttps://github.com/python/importlib_metadata/security
Insightshttps://github.com/python/importlib_metadata/insights
https://github.com/python/importlib_metadata
New issuehttps://github.com/login?return_to=https://github.com/python/importlib_metadata/issues/384
New issuehttps://github.com/login?return_to=https://github.com/python/importlib_metadata/issues/384
#444https://github.com/python/importlib_metadata/pull/444
Should PackageMetadata.get be supported?https://github.com/python/importlib_metadata/issues/384#top
#444https://github.com/python/importlib_metadata/pull/444
https://github.com/duckinator
duckinatorhttps://github.com/duckinator
on Jun 1, 2022https://github.com/python/importlib_metadata/issues/384#issue-1256674214
python/typeshed#7767https://github.com/python/typeshed/issues/7767
stdlib documentationhttps://docs.python.org/3/library/importlib.metadata.html
readthedocs documentationhttps://importlib-metadata.readthedocs.io/en/latest/
https://github.com/rra
rrahttps://github.com/rra
on Jun 1, 2022https://github.com/python/importlib_metadata/issues/384#issuecomment-1144010743
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Jun 16, 2022https://github.com/python/importlib_metadata/issues/384#issuecomment-1157169173
#371https://github.com/python/importlib_metadata/issues/371
abstract methodshttps://docs.python.org/3/library/collections.abc.html#collections-abstract-base-classes
jaracohttps://github.com/jaraco
on Jun 16, 2022https://github.com/python/importlib_metadata/issues/384#event-6817567130
https://github.com/duckinator
duckinatorhttps://github.com/duckinator
on Jun 16, 2022https://github.com/python/importlib_metadata/issues/384#issuecomment-1157263282
@jaracohttps://github.com/jaraco
python/typeshed#7767https://github.com/python/typeshed/issues/7767
https://github.com/rra
rrahttps://github.com/rra
on Jun 16, 2022https://github.com/python/importlib_metadata/issues/384#issuecomment-1157818142
maxrakehttps://github.com/maxrake
on Jul 12, 2022https://github.com/python/importlib_metadata/issues/384#event-6980430676
feat: check for and list valid versions and targets programmatically …https://github.com/phylum-dev/phylum-ci/commit/6fa937aded9deb4afb2d3291be0bd16eb4b1efca
6fa937ahttps://github.com/phylum-dev/phylum-ci/commit/6fa937aded9deb4afb2d3291be0bd16eb4b1efca
feat: check for and list valid versions and targets programmatically …https://github.com/phylum-dev/phylum-ci/commit/7066565956d159b17811a4a6418f06037537629e
7066565https://github.com/phylum-dev/phylum-ci/commit/7066565956d159b17811a4a6418f06037537629e
https://github.com/jaraco
jaracohttps://github.com/jaraco
on Apr 7, 2023https://github.com/python/importlib_metadata/issues/384#issuecomment-1500448427
abstract methodshttps://docs.python.org/3/library/collections.abc.html#collections-abstract-base-classes
jaracohttps://github.com/jaraco
add .get() to the PackageMetadata protocol #444https://github.com/python/importlib_metadata/pull/444
on Apr 7, 2023https://github.com/python/importlib_metadata/issues/384#event-8954935024
jaracohttps://github.com/jaraco
completedhttps://github.com/python/importlib_metadata/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#444https://github.com/python/importlib_metadata/pull/444
on Apr 7, 2023https://github.com/python/importlib_metadata/issues/384#event-8955021744
jaracohttps://github.com/jaraco
on Apr 7, 2023https://github.com/python/importlib_metadata/issues/384#event-8955021788
Merge pull request #444 from dimbleby/metadata-gethttps://github.com/python/importlib_metadata/commit/4df89f1e392a588b6caa8433568cbd6c5992781f
#444https://github.com/python/importlib_metadata/pull/444
https://docs.github.com/articles/closing-issues-via-commit-messages
4df89f1https://github.com/python/importlib_metadata/commit/4df89f1e392a588b6caa8433568cbd6c5992781f
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/importlib_metadata/issues/384
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/importlib_metadata/issues/384
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.