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 several archive and compression formats, wrapping built-in Python modules and optional external packages.

👉 Full documentation is published here.


Quick start

Install with third-party libraries:

pip install archivey[optional]

Or manage dependencies yourself for only the formats you need. RAR support requires unrar to be installed separately.

Usage example

from archivey import open_archive

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

    # Or process each file inside the archive
    for member, stream in archive.iter_members_with_io():
        print(member.filename, member.type, member.file_size)
        if stream is not None:  # skip directories and links
            data = stream.read()
            print("  ", data[:50])

See more details in the User guide.


Why use this?

  • Automatic archive format detection
  • Consistent interface across multiple archive types
  • Optimized for random access and streaming
  • Sensible, secure defaults for file extraction

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.0.1a1.tar.gz (14.7 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.0.1a1-py3-none-any.whl (77.2 kB view details)

Uploaded Python 3

File details

Details for the file archivey-0.0.1a1.tar.gz.

File metadata

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

File hashes

Hashes for archivey-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 a813de9fecff721c0a50653b6b43faeefa06fae76a5d45eabb79d4c4e7aa7d5e
MD5 8444cdbdaa8bed2f9107c7122f523706
BLAKE2b-256 53f9a8e21a20a93c875b63b7da207e502683bddb1fd35ac8dda78dc38031b721

See more details on using hashes here.

Provenance

The following attestation bundles were made for archivey-0.0.1a1.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.0.1a1-py3-none-any.whl.

File metadata

  • Download URL: archivey-0.0.1a1-py3-none-any.whl
  • Upload date:
  • Size: 77.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.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec52cc947d204f7d14c5bb5220fd191080c51f273088a556a8c40e930a63054c
MD5 567e92c7089d1813f11f4c38240e0779
BLAKE2b-256 0675a95e9cce7b53bda5a63185a0654aa700413d4bf4a4dbabf29a7127591718

See more details on using hashes here.

Provenance

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