Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A pure python rpm reader
Python
branch: master

fix setup.py

latest commit d1b7c7b1af
mjvm authored
Failed to load latest commit information.
docs some documentation added
pyrpm small cleanups
tests small cleanups
.gitignore add .gitignore file
INSTALL add INSTALL file
README change license to BSD
setup.py fix setup.py

README

=====
PyRPM
=====

:author: Mário Morgado
:license: BSD

PyRPM is a pure python module to extract information from a RPM package.

Usage
-----

        >>> from pyrpm.rpm import RPM
        >>> frpm pyrpm import rpmdefs
        >>> 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.name()
        'package'
        >>> rpm.package()
        'package-1.0'
        >>> rpm[rpmdefs.RPMTAG_DESCRIPTION]
        'package description'
        >>> rpm[rpmdefs.RPMTAG_ARCH]
        'i586'

Something went wrong with that request. Please try again.