{"id":26183815,"url":"https://github.com/mikata-project/pkgmod","last_synced_at":"2025-07-06T20:06:47.436Z","repository":{"id":57453231,"uuid":"379927500","full_name":"Mikata-Project/pkgmod","owner":"Mikata-Project","description":"Get module names from installed package names and back","archived":false,"fork":false,"pushed_at":"2021-06-30T12:44:29.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T22:49:19.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mikata-Project.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-24T13:05:21.000Z","updated_at":"2021-06-30T12:44:31.000Z","dependencies_parsed_at":"2022-08-29T06:51:14.950Z","dependency_job_id":null,"html_url":"https://github.com/Mikata-Project/pkgmod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mikata-Project/pkgmod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mikata-Project%2Fpkgmod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mikata-Project%2Fpkgmod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mikata-Project%2Fpkgmod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mikata-Project%2Fpkgmod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mikata-Project","download_url":"https://codeload.github.com/Mikata-Project/pkgmod/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mikata-Project%2Fpkgmod/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259410178,"owners_count":22852977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-11T22:49:21.470Z","updated_at":"2025-06-12T06:12:19.263Z","avatar_url":"https://github.com/Mikata-Project.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pkgmod\nGet module names from installed package names and back.\n\nExample usage:\n```python\n\u003e\u003e\u003e import pkgmod\n\u003e\u003e\u003e pkgmod.get_package_name(\"impala\")\n('impyla', False)\n```\nThis returns a tuple with package name and a bool, which tells whether it's\na standard library in Python or not.\nFor packages this only works if the package is installed.\n\n```python\n\u003e\u003e\u003e pkgmod.get_module_names(\"impyla\")\n['impala']\n\u003e\u003e\u003e pkgmod.get_module_names(\"Cython\")\n['Cython', 'cython', 'pyximport']\n```\nThis returns the module names included in a given package (which also needs to\nbe installed).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikata-project%2Fpkgmod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikata-project%2Fpkgmod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikata-project%2Fpkgmod/lists"}