Skip to main content

Simple library that provides a common interface for extracting zip and tar archives.

Project description

This package provides a simple, pure-Python interface for handling various archive file formats. Currently, archive extraction is the only supported action. Supported file formats include:

  • Zip formats and equivalents: .zip, .egg, .jar.

  • Tar and compressed tar formats: .tar, .tar.gz, .tgz, .tar.bz2, .tz2.

Example usage

Using the Archive class:

from archive import Archive
a = Archive('files.tar.gz')
a.extract()

Using the extract convenience function:

from archive import extract
# Extract in current directory.
extract('files.tar.gz')
# Extract in directory 'unpack_dir'.
extract('files.tar.gz', 'unpack_dir')

Similar tools

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

python-archive-0.1.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file python-archive-0.1.tar.gz.

File metadata

  • Download URL: python-archive-0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-archive-0.1.tar.gz
Algorithm Hash digest
SHA256 2dfa7a46a932dfa853a7371b764fefd069c926c8fa05eb020ddcef8451c2a8ce
MD5 38a4dff72f39a34a443196057a8fdc3d
BLAKE2b-256 24094af5c921f0275abdaca47aa5394d4fc3b53f99c2b173e89c8bb6225e0538

See more details on using hashes here.

Supported by

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