{"id":21452267,"url":"https://github.com/packit/rpm-shim","last_synced_at":"2025-08-20T10:32:35.417Z","repository":{"id":65776619,"uuid":"598516968","full_name":"packit/rpm-shim","owner":"packit","description":"Python RPM shim module for use in virtualenvs","archived":false,"fork":false,"pushed_at":"2024-11-07T08:19:02.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-12-06T11:05:43.703Z","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/packit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-07T09:20:18.000Z","updated_at":"2024-11-07T08:14:10.000Z","dependencies_parsed_at":"2024-06-21T12:56:27.945Z","dependency_job_id":"95c22f81-9cda-48a0-848f-d6cb6c6c1d21","html_url":"https://github.com/packit/rpm-shim","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.0625,"last_synced_commit":"4e32b6232737a328c1e189b0430285286f8df597"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Frpm-shim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Frpm-shim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Frpm-shim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Frpm-shim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/packit","download_url":"https://codeload.github.com/packit/rpm-shim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230415318,"owners_count":18222158,"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":"2024-11-23T04:28:34.847Z","updated_at":"2024-12-19T10:09:58.191Z","avatar_url":"https://github.com/packit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rpm-shim\n\nPython RPM shim module for use in virtalenvs.\n\n## Purpose\n\nRPM Python bindings are tied to system RPM installation and are not available as a Python package (on PyPI or elsewhere). This shim module makes it possible to import and use the bindings in a virtualenv.\n\nThere is no point installing this shim module on a bare system, outside of a virtualenv. It should still work, but there is no benefit. If you want to do that anyway, pay attention not to overwrite installed RPM Python bindings.\n\n## Example\n\nHere is a scenario of how this module enables usage of RPM Python bindings in a newly created virtualenv. First commands are run on a host system.\n\n```bash\n# make sure RPM Python bindings are installed and functional\n$ rpm -q python3-rpm\npython3-rpm-4.18.0-1.fc37.x86_64\n\n$ pip list\nPackage    Version\n---------- -------\nrpm        4.18.0\n\n$ python -c \"import rpm; print(rpm.__version__)\"\n4.18.0\n\n# let's create a virtualenv\n$ python -m venv env\n$ source env/bin/activate\n\n# the bindings are not accessible there\n(env) $ python -c \"import rpm; print(rpm.__version__)\"\nTraceback (most recent call last):\n  File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\nModuleNotFoundError: No module named 'rpm'\n\n# install the shim module from PyPI\n(env) $ pip install rpm\n...\nSuccessfully installed rpm-0.1.0\n\n# now we can import the bindings\n(env) $ python -c \"import rpm; print(rpm.__version__)\"\n4.18.0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpackit%2Frpm-shim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpackit%2Frpm-shim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpackit%2Frpm-shim/lists"}