Skip to content
Browse files

add README

  • Loading branch information...
1 parent 047c771 commit 8d0539eeb31b435073185d3fe77e3b5633123cbb @mjvm mjvm committed
Showing with 26 additions and 0 deletions.
  1. +26 −0 README
View
26 README
@@ -0,0 +1,26 @@
+=====
+PyRPM
+=====
+
+:author: M�rio Morgado
+:license: GPL3
+
+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'
+

0 comments on commit 8d0539e

Please sign in to comment.
Something went wrong with that request. Please try again.