Skip to main content

A pure python rpm reader

Project description

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'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyrpm, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size pyrpm-0.3.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View
Filename, size pyrpm-0.3-py2.6.egg (9.4 kB) File type Egg Python version 2.6 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page