Skip to main content

Python library for reading zip, tar, rar, 7z and other archives

Project description

Archivey

Archivey is a Python library that provides a unified interface for reading various archive formats:

from archivey import open_archive

with open_archive("example.zip") as archive:  # Automatic format detection
    # Extract all files
    archive.extractall("output_dir/")

    # Or process each file in the archive
    for member, stream in archive.iter_members_with_streams():
        print(member.filename, member.type, member.file_size)
        if stream is not None:  # File-like stream for files, None for dirs and links
            data = stream.read()
            print("  ", data[:50])

It wraps built-in modules and optional third-party libraries, adding missing features and fixing limitations in the underlying tools. See the User guide for more details.

Installation

pip install archivey[optional]

The [optional] extra includes all recommended third-party libraries for full format support.

Note: RAR support requires the unrar binary to be available on your system or installed separately.

Resources

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

archivey-0.1.0a4.tar.gz (16.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

archivey-0.1.0a4-py3-none-any.whl (82.3 kB view details)

Uploaded Python 3

File details

Details for the file archivey-0.1.0a4.tar.gz.

File metadata

  • Download URL: archivey-0.1.0a4.tar.gz
  • Upload date:
  • Size: 16.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for archivey-0.1.0a4.tar.gz
Algorithm Hash digest
SHA256 dc327ceaa57060fb3aea65bae25c0293a0795c67d67bdfab3b77def5eaf85d46
MD5 da8ca3c2a85f17f6f2a606a9205c8669
BLAKE2b-256 e32d99e5e894f75b88f06abe1b654e31368783fd12c670f7d782b7cb5e1f15a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for archivey-0.1.0a4.tar.gz:

Publisher: deploy-pypi.yml on davitf/archivey

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file archivey-0.1.0a4-py3-none-any.whl.

File metadata

  • Download URL: archivey-0.1.0a4-py3-none-any.whl
  • Upload date:
  • Size: 82.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for archivey-0.1.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 347e0d17186f03c60afd5ac3a4dc51994e2dca5baff1ed57c3c42c658c563d4a
MD5 0069dc85ab137e7eb7c3b6bad06b502a
BLAKE2b-256 83d6645fc09dd847bf95ecc7c7cdad9c55ed2840ba644db6fb545324c509f53f

See more details on using hashes here.

Provenance

The following attestation bundles were made for archivey-0.1.0a4-py3-none-any.whl:

Publisher: deploy-pypi.yml on davitf/archivey

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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