Read rmp archive files
Project description
Tools for inspecting RPM files in python. This module is modeled after the tarfile module.
## Example
import rpmfile
with rpmfile.open(‘file.rpm’) as rpm:
#Inspect the RPM headers print rpm.headers.keys() print rpm.headers.get(‘arch’, ‘noarch’)
#Extract a fileobject from the archive fd = rpm.extractfile(‘./usr/bin/script’) print fd.read()
- for member in rpm.getmembers():
print member
## Classes
rpmfile.RPMFile: The RPMFile object provides an interface to a RPM archive
rpmfile.RPMInfo: An RPMInfo object represents one member in a RPMFile.
## Code in this module was borrowed from:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rpmfile-0.1.1.tar.gz
(10.6 kB
view details)
File details
Details for the file rpmfile-0.1.1.tar.gz
.
File metadata
- Download URL: rpmfile-0.1.1.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b12f7155c9abddeb079cb7b378deea605d9f6a98f9b6a7bdb5b490953007d8e8 |
|
MD5 | 02d5f4abb29779245472142e585a4cc3 |
|
BLAKE2b-256 | 11f6319a50fcf3650f9ddaa74809381d45daf11712ec8b54d5cd57c28172f8e4 |