{"id":18904462,"url":"https://github.com/uuunyaa/x7zipfile","last_synced_at":"2025-08-24T06:33:41.516Z","repository":{"id":107264328,"uuid":"350804006","full_name":"UuuNyaa/x7zipfile","owner":"UuuNyaa","description":"x7zipfile is a thin 7-zip command wrapper for Python.","archived":false,"fork":false,"pushed_at":"2021-03-26T12:35:20.000Z","size":1464,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-31T10:30:05.531Z","etag":null,"topics":["7zip","p7zip","python","zipfile"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UuuNyaa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-23T17:43:35.000Z","updated_at":"2024-09-13T03:01:09.000Z","dependencies_parsed_at":"2023-05-18T16:02:26.221Z","dependency_job_id":null,"html_url":"https://github.com/UuuNyaa/x7zipfile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UuuNyaa%2Fx7zipfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UuuNyaa%2Fx7zipfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UuuNyaa%2Fx7zipfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UuuNyaa%2Fx7zipfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UuuNyaa","download_url":"https://codeload.github.com/UuuNyaa/x7zipfile/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239889026,"owners_count":19713702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["7zip","p7zip","python","zipfile"],"created_at":"2024-11-08T09:08:35.926Z","updated_at":"2025-02-20T18:15:44.683Z","avatar_url":"https://github.com/UuuNyaa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# x7zipfile\nx7zipfile is a thin [7-zip](https://www.7-zip.org/) extract command wrapper for Python.\n\n## Features\n- The interface follows the style of [zipfile](https://docs.python.org/3/library/zipfile.html).\n- Archive operations are handled by executing external tool: 7z.\n- Works with single file.\n- Supports extract and list operations.\n- **Not** supports compress operations.\n- Supports archive formats that can be processed by the 7z command.\n- Supports Unicode filenames.\n- Supports password-protected archives.\n\n## Installation\n### Requirements\n - Python **3.7** or later\n - 7-zip **16** or later\n\n### Download\n - Download `x7zipfile.py` from [the github code page](https://github.com/UuuNyaa/x7zipfile/blob/main/src/x7zipfile.py)\n   - https://github.com/UuuNyaa/x7zipfile/blob/main/src/x7zipfile.py\n\n### Install\n1. ***Place the `x7zipfile.py`*** file where you want.\n2. ***Install 7-zip***.\n    - Windows: https://www.newsgroupreviews.com/7-zip-installation.html\n    - Linux: run `sudo {apt,yum,dnf,snap} install p7zip-full`\n\n## Usage\n\n### Simple extract example\n```python\nimport x7zipfile\n\nwith x7zipfile.x7ZipFile('myarchive.7z') as zipfile:\n    for info in zipfile.infolist():\n        print(info.filename, info.file_size)\n        if info.filename == 'README':\n            zipfile.extract(info)\n```\n\n### Dynamic module load example\n```python\nimport importlib\n\nnamespace = 'x7zipfile'\nloader = importlib.machinery.SourceFileLoader(namespace, '/path/to/x7zipfile.py')\nx7zipfile = loader.load_module(namespace)\n```\n\n## References\n- Code: [markokr/rarfile](https://github.com/markokr/rarfile)\n- Test archives: [miurahr/py7zr](https://github.com/miurahr/py7zr)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuuunyaa%2Fx7zipfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuuunyaa%2Fx7zipfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuuunyaa%2Fx7zipfile/lists"}