Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

mjvm/pyrpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ This rpository is now archived

=====
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'

About

A pure python rpm reader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages