{"id":26493691,"url":"https://github.com/redhat-openstack/pymod2pkg","last_synced_at":"2025-08-23T20:20:33.317Z","repository":{"id":143947116,"uuid":"39258274","full_name":"redhat-openstack/pymod2pkg","owner":"redhat-openstack","description":"python module name to package name map","archived":false,"fork":false,"pushed_at":"2015-09-25T16:45:37.000Z","size":168,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-06-22T19:42:56.205Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redhat-openstack.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":"2015-07-17T14:30:59.000Z","updated_at":"2015-07-17T14:31:31.000Z","dependencies_parsed_at":"2023-03-21T11:01:13.032Z","dependency_job_id":null,"html_url":"https://github.com/redhat-openstack/pymod2pkg","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/redhat-openstack/pymod2pkg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-openstack%2Fpymod2pkg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-openstack%2Fpymod2pkg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-openstack%2Fpymod2pkg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-openstack%2Fpymod2pkg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-openstack","download_url":"https://codeload.github.com/redhat-openstack/pymod2pkg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-openstack%2Fpymod2pkg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271767984,"owners_count":24817592,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-20T09:56:44.478Z","updated_at":"2025-08-23T20:20:33.297Z","avatar_url":"https://github.com/redhat-openstack.png","language":"Python","readme":"# pymod2pkg\n\n`pymod2pkg` is a simple python module for translating python module names to\ncorresponding package names which is a common problem in the packaging world.\n\nNote that [rdopkg](https://github.com/redhat-openstack/rdopkg) uses this\nmodule to check whether packages corresponding to `requirements.txt` are\navailable across distros and more.\n\n\n## Installation\n\n\n### from source\n\nIf you want to hack `pymod2pkg` or just have the latest version without\nwaiting for next release, I suggest using the git repo directly a la\n\n    git clone https://github.com/redhat-openstack/pymod2pkg\n    cd pymod2pkg\n    python setup.py develop --user\n\n\n### from PyPI\n\nFor your convenience, `pymod2pkg` is also available from the Cheese\nShop:\n\n    pip install pymod2pkg\n\n\n\n## Usage\n\n`module2package` is probably all you need, it accepts a module name to convert\nand a linux distribution name as returned by `platform.linux_distribution()[0]`:\n\n    import pymod2pkg\n    \n    pkg = pymod2pkg.module2package('six', 'Fedora')\n\nThere's not much more, really, so RTFS.\n\n\n\n## Fixing/extending the map\n\nCurrently, only package maps for RPM-based systems are provided, but it'd be\nnice to have all the distros covered and it's really easy to do.\n\nSee `*_PKG_MAP` and `get_pkg_map`, hack it to your liking and send a pull\nrequest.\n\n## Running the testsuite\nIt's just that simple:\n\n   python tests.py\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-openstack%2Fpymod2pkg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-openstack%2Fpymod2pkg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-openstack%2Fpymod2pkg/lists"}