skillfed

rpm

Shim RPM module for use in virtualenvs.

rpm v0.4.0 230.4K downloads/30d#9,112 on PyPI3
Permissive license MIT AGING released

What it is and what it does

rpm is a shim module that bridges the gap between system-installed RPM Python bindings and Python virtualenvs. RPM's official Python bindings are tied to the system RPM installation and are not packaged on PyPI, making them inaccessible inside isolated environments. This shim allows you to import and use those system bindings from within a virtualenv without modifying the system installation.

The package is designed specifically for Linux systems running RPM-based distributions. It has no runtime dependencies and installs as a pure Python wheel. The shim works by making the system's rpm module available to the virtualenv's Python interpreter, enabling workflows that need both isolation and access to system package management APIs.

Use it for:

  • Build tools or CI/CD scripts running in virtualenvs that need to query or manipulate system RPM packages
  • Container image builders or deployment tools that must inspect installed RPM packages from within an isolated Python environment
  • Package management utilities that need to integrate system RPM operations with Python code running in a venv

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides access to system RPM Python bindings inside a virtualenv by shimming the system-installed rpm module, making it importable in isolated Python environments.

Yes, if you need RPM bindings in a virtualenv on a Linux system with system RPM installed. The shim is lightweight, has no dependencies, and solves a specific problem that has no other workaround. However, maintenance is aging (last release 493 days ago), so verify compatibility with your specific RPM and Python versions before relying on it in production.

Install

rpm on PyPI

pip

pip install rpm

uv

uv add rpm

poetry

poetry add rpm

Installing rpm

Before you install

Low install friction with no runtime dependencies. Maintenance is aging—last release was 493 days ago and the repository has minimal activity (3 stars), though it remains unarchived and the last commit is recent.

License in practice

MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.

Quickstart

# On host system with rpm bindings installed:
$ pip install rpm

# In virtualenv:
$ python -c "import rpm; print(rpm.__version__)"

System must have RPM Python bindings installed (python3-rpm or equivalent) outside the virtualenv; the shim only makes them accessible within the virtualenv, it does not provide the bindings themselves.

Verify before relying

  • Whether the shim works correctly with all system RPM versions and Python versions listed in classifiers
  • Whether virtualenv isolation is preserved when using the shim
  • Current test coverage and whether the package is actively tested against modern RPM releases

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance aging — 493 days since the last release
Last repo commit
First released
Downloads 230,368/month — #9,112 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: rpm-0.4.0-py3-none-any.whl

Keywords: rpm, virtualenv

Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software DevelopmentTopic :: Utilities

Tags

rpm bindings virtualenvsystem rpm in venvrpm module shimvirtualenv rpm accessrpm python bindings wrapper
rpm-packagingvirtualenv-bridge

More Software Development packages