{"id":16217278,"url":"https://github.com/synodriver/pyarchive","last_synced_at":"2026-02-22T12:37:33.127Z","repository":{"id":177848492,"uuid":"655673434","full_name":"synodriver/pyarchive","owner":"synodriver","description":"fast, feature-rich python binding for libarchive, support read, write and create disk ojects, with a wrapper around python file-like objects","archived":false,"fork":false,"pushed_at":"2023-07-23T15:37:51.000Z","size":2926,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"use_init","last_synced_at":"2024-10-11T11:26:19.482Z","etag":null,"topics":["bindings","cython","libarchive","python"],"latest_commit_sha":null,"homepage":"","language":"Cython","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/synodriver.png","metadata":{"files":{"readme":"README.markdown","changelog":"changename.py","contributing":null,"funding":null,"license":null,"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":"2023-06-19T11:15:18.000Z","updated_at":"2023-07-02T05:40:51.000Z","dependencies_parsed_at":"2024-10-26T01:05:20.961Z","dependency_job_id":null,"html_url":"https://github.com/synodriver/pyarchive","commit_stats":null,"previous_names":["synodriver/pyarchive"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fpyarchive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fpyarchive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fpyarchive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fpyarchive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synodriver","download_url":"https://codeload.github.com/synodriver/pyarchive/tar.gz/refs/heads/use_init","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246813561,"owners_count":20838131,"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":["bindings","cython","libarchive","python"],"created_at":"2024-10-10T11:26:22.987Z","updated_at":"2025-10-23T18:34:35.622Z","avatar_url":"https://github.com/synodriver.png","language":"Cython","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyarchive\n\nPyarchive provide a bridge between file-like objects and libarchive, making it easy to\nuse and extend libarchive itself. For instance, libarchive [doesn't support bzip3](https://github.com/libarchive/libarchive/issues/1904) at\nthis moment, however, pyarchive can do that with the help of other libraries.\n```python\nimport bz3\nfrom pyarchive import ArchiveRead\n\nwith bz3.open(\"test.tar.bz3\", 'rb') as f:\n    a = ArchiveRead()\n    a.support_filter_all()\n    a.support_format_all()\n    a.open(f, 1000)\n    for entry in a.iter_entries():\n        print(entry.pathname_w)\n        a.skip()\n```\nBesides, it's also possible to read a file in memory using ```open_memory``` method,\nand read a fd using ```open_fd```\n\n\n# Build\n\nBuild pyarchive with all features available is not very easy, especially\non Windows, you'll have to link against the right libarchive. The recommend\nway is to use a conda environment. Use ```conda install -c conda-forge libarchive```\nto install a pre-build libarchive with header-files available, and build use\nthe following script\n\n```bash\npython -m pip install -r requirements.txt\npython setup.py sdist bdist_wheel --use-cython --lib-path \"D:\\conda\\envs\\py310\\Library\\lib\\archive.lib\" --include-path \"D:\\conda\\envs\\py310\\Library\\include\"\n```\nOn linux, this may be\n\n```bash\npython -m pip install -r requirements.txt\npython setup.py sdist bdist_wheel --use-cython --lib-path \"/root/conda/envs/py310/Library/lib/libarchive.so\" --include-path \"/root/conda/envs/py310/Library/include\"\n```\nThe path should depend on where you install conda\n\n# Develop\nUse \n```bash\npython -m pip install -r requirements.txt\npython setup.py build_ext -i --use-cython --debug --lib-path \"D:\\conda\\envs\\py310\\Library\\lib\\archive.lib\" --include-path \"D:\\conda\\envs\\py310\\Library\\include\"\n```\nand so on","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Fpyarchive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynodriver%2Fpyarchive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Fpyarchive/lists"}