Skip to main content

async7zip

async7zip is an asynchronous interface for interacting with the 7-Zip command line tool. It allows for unpacking archive files in an asynchronous manner and provides properties for accessing the return code, error count, and process return code of the 7-Zip command.

Tested on 22.01 7-Zip english version.

Installation

You can install async7zip via pip:

pip install async7zip

Usage

import asyncio
from async7zip import async7zip, ReturnCodes7zip

async def main():
    # Initialize the async7zip object
    sevenzip = async7zip(archive_path='path/to/archive.7z', unpack_path='path/to/unpack')

    # Unpack the archive
    return_code = await sevenzip.unpack()

    # Check the return code
    if return_code == ReturnCodes7zip.SUCCESS:
        print("Archive unpacked successfully!")
    else:
        print(f"Error code: {return_code}")

loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
loop.run_until_complete(main())

Note

Make sure to have 7zz in your path, otherwise you need to specify path of 7zz in sevenzip_path

Metadata

Release files for async7zip 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for async7zip 1.0.1
File Size Uploaded
async7zip-1.0.1.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for async7zip 1.0.1
File Interpreter ABI Platform
async7zip-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / async7zip-1.0.1.tar.gz

Download URL async7zip-1.0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d0304eeccb18d68009c41adbf64bb0860db74fe2732224b34359f48c6fabde9c
BLAKE2b-256 checksum
How to use checksums
0003d81c6249f8a6d3efd3009c455bed8375479d74d32c580222871a12526773
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / async7zip-1.0.1-py3-none-any.whl

Download URL async7zip-1.0.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e9ff271de9d9db5f8b2431ef26a6ab1daa3413efc5b73041b892ce691c3cf74
BLAKE2b-256 checksum
How to use checksums
9efd5b327059e817687d5ef20f6f0a1e1cbaea15836fa716d507ea08460decb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page