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.0a3.tar.gz (15.6 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.0a3-py3-none-any.whl (80.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: archivey-0.1.0a3.tar.gz
  • Upload date:
  • Size: 15.6 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.0a3.tar.gz
Algorithm Hash digest
SHA256 9e28466e5e7b723e0a4a420855de0fb360b448a6bf37ab812d3ee84a553008c1
MD5 664dd9ce98aef2ea74d09609b4bff1a3
BLAKE2b-256 9e2c4d413e1b10705c611a22456f7ab4f5a9dbe0537957c2ce0dddf1b8127764

See more details on using hashes here.

Provenance

The following attestation bundles were made for archivey-0.1.0a3.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.0a3-py3-none-any.whl.

File metadata

  • Download URL: archivey-0.1.0a3-py3-none-any.whl
  • Upload date:
  • Size: 80.2 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.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 a63c412e8e03022de770f0a42bac46e84d27e7ad62ce23b9aea1ad01de861c54
MD5 343dc94efa8026ba5a02789e90c06976
BLAKE2b-256 3c4835820f0ecb25e9032a082be6d495ec629176fab43bf9c1b31a27db800fd6

See more details on using hashes here.

Provenance

The following attestation bundles were made for archivey-0.1.0a3-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