async7zip


Nameasync7zip JSON
Version 1.0.0 PyPI version JSON
download
home_page
Summary
upload_time2023-01-17 11:20:17
maintainer
docs_urlNone
authorVladislav Tislenko
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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 
```python
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`

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "async7zip",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Vladislav Tislenko",
    "author_email": "keklick1337@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/94/7a/7c0e6feee12b0606f58c542f0488d3930646ada9aad9ca60ae0c505cd6fa/async7zip-1.0.0.tar.gz",
    "platform": null,
    "description": "# async7zip\nasync7zip 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.\n\nTested on 22.01 7-Zip english version.\n\n### Installation\nYou can install async7zip via pip:\n\n```\npip install async7zip\n```\n\n### Usage \n```python\nimport asyncio\nfrom async7zip import async7zip, ReturnCodes7zip\n\nasync def main():\n    # Initialize the async7zip object\n    sevenzip = async7zip(archive_path='path/to/archive.7z', unpack_path='path/to/unpack')\n\n    # Unpack the archive\n    return_code = await sevenzip.unpack()\n\n    # Check the return code\n    if return_code == ReturnCodes7zip.SUCCESS:\n        print(\"Archive unpacked successfully!\")\n    else:\n        print(f\"Error code: {return_code}\")\n\nloop = asyncio.new_event_loop()\nasyncio.set_event_loop(loop)\nloop.run_until_complete(main())\n```\n\n### Note\nMake sure to have `7zz` in your path, otherwise you need to specify path of `7zz` in `sevenzip_path`\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "",
    "version": "1.0.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "38f2a0496937e337e17b90fb398c036609ac22b001d70d0cde81ff82986f9d6f",
                "md5": "80dc6957e4ac1ef255e13c2bd5643862",
                "sha256": "0788c2c24ee091daf6fc3ca65eb8433af1a3dd37f2a9abd36ef3acc215dbdac3"
            },
            "downloads": -1,
            "filename": "async7zip-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "80dc6957e4ac1ef255e13c2bd5643862",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2377,
            "upload_time": "2023-01-17T11:20:14",
            "upload_time_iso_8601": "2023-01-17T11:20:14.844516Z",
            "url": "https://files.pythonhosted.org/packages/38/f2/a0496937e337e17b90fb398c036609ac22b001d70d0cde81ff82986f9d6f/async7zip-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "947a7c0e6feee12b0606f58c542f0488d3930646ada9aad9ca60ae0c505cd6fa",
                "md5": "10d04874ddffe6a0700ac709aef142f0",
                "sha256": "e260e57d47cc02db9eb04e35c549df26d42a06c09367a234257afd6f709c4986"
            },
            "downloads": -1,
            "filename": "async7zip-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "10d04874ddffe6a0700ac709aef142f0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2339,
            "upload_time": "2023-01-17T11:20:17",
            "upload_time_iso_8601": "2023-01-17T11:20:17.023470Z",
            "url": "https://files.pythonhosted.org/packages/94/7a/7c0e6feee12b0606f58c542f0488d3930646ada9aad9ca60ae0c505cd6fa/async7zip-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-17 11:20:17",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "async7zip"
}
        
Elapsed time: 0.08298s