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
- 📖 Documentation
- 📘 API reference
- 🛠️ GitHub repository
↳ or the development repo, with in-progress work, rougher commits and AI-generated pull requests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc327ceaa57060fb3aea65bae25c0293a0795c67d67bdfab3b77def5eaf85d46
|
|
| MD5 |
da8ca3c2a85f17f6f2a606a9205c8669
|
|
| BLAKE2b-256 |
e32d99e5e894f75b88f06abe1b654e31368783fd12c670f7d782b7cb5e1f15a8
|
Provenance
The following attestation bundles were made for archivey-0.1.0a4.tar.gz:
Publisher:
deploy-pypi.yml on davitf/archivey
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
archivey-0.1.0a4.tar.gz -
Subject digest:
dc327ceaa57060fb3aea65bae25c0293a0795c67d67bdfab3b77def5eaf85d46 - Sigstore transparency entry: 378728626
- Sigstore integration time:
-
Permalink:
davitf/archivey@f45be3851e0056f0f2b3cec4cabec1343762f54d -
Branch / Tag:
refs/tags/v0.1.0a4 - Owner: https://github.com/davitf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy-pypi.yml@f45be3851e0056f0f2b3cec4cabec1343762f54d -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
347e0d17186f03c60afd5ac3a4dc51994e2dca5baff1ed57c3c42c658c563d4a
|
|
| MD5 |
0069dc85ab137e7eb7c3b6bad06b502a
|
|
| BLAKE2b-256 |
83d6645fc09dd847bf95ecc7c7cdad9c55ed2840ba644db6fb545324c509f53f
|
Provenance
The following attestation bundles were made for archivey-0.1.0a4-py3-none-any.whl:
Publisher:
deploy-pypi.yml on davitf/archivey
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
archivey-0.1.0a4-py3-none-any.whl -
Subject digest:
347e0d17186f03c60afd5ac3a4dc51994e2dca5baff1ed57c3c42c658c563d4a - Sigstore transparency entry: 378728685
- Sigstore integration time:
-
Permalink:
davitf/archivey@f45be3851e0056f0f2b3cec4cabec1343762f54d -
Branch / Tag:
refs/tags/v0.1.0a4 - Owner: https://github.com/davitf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy-pypi.yml@f45be3851e0056f0f2b3cec4cabec1343762f54d -
Trigger Event:
push
-
Statement type: