A pure python RPM file reader and YUM metadata generator.
Python
Pull request Compare This branch is 57 commits ahead, 3 commits behind mjvm:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
pyrpm
tests
.gitignore
.travis.yml
INSTALL.rst
README.rst
setup.py

README.rst

PyRPM

https://travis-ci.org/02strich/pyrpm.png
authors:Stefan Richter, Mário Morgado
license:BSD

PyRPM is a pure python module to extract information from a RPM package and to create YUM metadata. Supports generation/editing YUM repositories.

Usage

>>> from pyrpm.rpm import RPM
>>> rpm = RPM(file('package-1.0-r1.i586.rpm')
>>> rpm.binary # this means that the package is a rpm and not a src.rpm
True
>>> rpm.header.name
'package'
>>> rpm.header.architecture
'i586'
>>> rpm.header.description
'package description'