Skip to main content

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


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.4.tar.gz (10.3 kB view details)

Uploaded Source

File details

Details for the file rpmfile-0.1.4.tar.gz.

File metadata

  • Download URL: rpmfile-0.1.4.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rpmfile-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c5c0daacdb1762b5ca5dcbcb148a83f13b593fa591ab9d3ab13a0a84509c0571
MD5 0fc107222c1d7cecb1b2d98f87d4efc7
BLAKE2b-256 e0dd3b6d73606aba3105247c7b7200190bca9c7d65a0a5f8e5bfa5e106e218d2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page