{"id":16916939,"url":"https://github.com/althonos/fs.archive","last_synced_at":"2025-09-07T17:31:46.315Z","repository":{"id":45164807,"uuid":"96047552","full_name":"althonos/fs.archive","owner":"althonos","description":"Pyfilesystem2 for various archive filesystems","archived":false,"fork":false,"pushed_at":"2022-10-25T15:01:02.000Z","size":235,"stargazers_count":18,"open_issues_count":5,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-16T04:50:07.086Z","etag":null,"topics":["7z","archive","iso","library","pyfilesystem2","python","tar","zip"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/althonos.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-02T20:34:59.000Z","updated_at":"2025-07-02T06:11:55.000Z","dependencies_parsed_at":"2022-09-24T20:01:16.364Z","dependency_job_id":null,"html_url":"https://github.com/althonos/fs.archive","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/althonos/fs.archive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/althonos%2Ffs.archive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/althonos%2Ffs.archive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/althonos%2Ffs.archive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/althonos%2Ffs.archive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/althonos","download_url":"https://codeload.github.com/althonos/fs.archive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/althonos%2Ffs.archive/sbom","scorecard":{"id":187180,"data":{"date":"2025-08-11","repo":{"name":"github.com/althonos/fs.archive","commit":"7461b6c197a6e3e25b4c25e6c48eca7686562fb1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/althonos/fs.archive/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/althonos/fs.archive/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/althonos/fs.archive/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/althonos/fs.archive/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/althonos/fs.archive/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/althonos/fs.archive/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/althonos/fs.archive/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:89: update your workflow using https://app.stepsecurity.io/secureworkflow/althonos/fs.archive/test.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:38","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:40","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:42","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:71","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   4 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: COPYING:0","Info: FSF or OSI recognized license: MIT License: COPYING:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T19:59:24.196Z","repository_id":45164807,"created_at":"2025-08-16T19:59:24.197Z","updated_at":"2025-08-16T19:59:24.197Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274068107,"owners_count":25216848,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["7z","archive","iso","library","pyfilesystem2","python","tar","zip"],"created_at":"2024-10-13T19:31:31.599Z","updated_at":"2025-09-07T17:31:45.989Z","avatar_url":"https://github.com/althonos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `fs.archive` [![star me](https://img.shields.io/github/stars/althonos/fs.archive.svg?style=social\u0026maxAge=3600\u0026label=Star)](https://github.com/althonos/fs.archive/stargazers)\n\n[![Source](https://img.shields.io/badge/source-GitHub-303030.svg?logo=git\u0026maxAge=36000\u0026style=flat-square)](https://github.com/althonos/fs.archive)\n[![PyPI](https://img.shields.io/pypi/v/fs.archive.svg?logo=pypi\u0026style=flat-square\u0026maxAge=3600)](https://pypi.python.org/pypi/fs.archive)\n[![Actions](https://img.shields.io/github/workflow/status/althonos/fs.archive/Test/master?logo=github\u0026style=flat-square\u0026maxAge=300)](https://github.com/althonos/fs.archive/actions)\n[![Codecov](https://img.shields.io/codecov/c/github/althonos/fs.archive/master.svg?logo=codecov\u0026style=flat-square\u0026maxAge=300)](https://codecov.io/gh/althonos/fs.archive)\n[![Codacy](https://img.shields.io/codacy/grade/eadf418db5a84efd9fa1b470529dcad6/master.svg?logo=codacy\u0026style=flat-square\u0026maxAge=300)](https://www.codacy.com/app/althonos/fs.archive/dashboard)\n[![License](https://img.shields.io/pypi/l/fs.archive.svg?style=flat-square\u0026maxAge=36000)](https://choosealicense.com/licenses/mit/)\n[![Versions](https://img.shields.io/pypi/pyversions/fs.archive.svg?logo=python\u0026style=flat-square\u0026maxAge=300)](https://pypi.org/project/fs.archive)\n[![Format](https://img.shields.io/pypi/format/fs.archive.svg?style=flat-square\u0026maxAge=300)](https://pypi.org/project/fs.archive)\n[![GitHub issues](https://img.shields.io/github/issues/althonos/fs.archive.svg?style=flat-square\u0026maxAge=600)](https://github.com/althonos/fs.archive/issues)\n[![Downloads](https://img.shields.io/badge/dynamic/json?style=flat-square\u0026color=303f9f\u0026maxAge=86400\u0026label=downloads\u0026query=%24.total_downloads\u0026url=https%3A%2F%2Fapi.pepy.tech%2Fapi%2Fprojects%2Ffs.archive)](https://pepy.tech/project/fs.archive)\n[![Changelog](https://img.shields.io/badge/keep%20a-changelog-8A0707.svg?maxAge=2678400\u0026style=flat-square)](https://github.com/althonos/fs.archive/blob/master/CHANGELOG.md)\n\n## Requirements\n\n| **PyFilesystem2** | [![PyPI fs](https://img.shields.io/pypi/v/fs.svg?maxAge=300\u0026style=flat-square)](https://pypi.python.org/pypi/fs) | [![Source fs](https://img.shields.io/badge/source-GitHub-303030.svg?maxAge=36000\u0026style=flat-square)](https://github.com/PyFilesystem/pyfilesystem2) | [![License fs](https://img.shields.io/pypi/l/fs.svg?maxAge=36000\u0026style=flat-square)](https://choosealicense.com/licenses/mit/) |\n|:-|:-|:-|:-|\n| **six** | [![PyPI six](https://img.shields.io/pypi/v/six.svg?maxAge=300\u0026style=flat-square)](https://pypi.python.org/pypi/six) | [![Source six]( https://img.shields.io/badge/source-GitHub-303030.svg?maxAge=36000\u0026style=flat-square )]( https://github.com/benjaminp/six) | [![License six](https://img.shields.io/pypi/l/six.svg?maxAge=36000\u0026style=flat-square)](https://choosealicense.com/licenses/mit/) |\n\n`fs.archive` supports all Python versions supported by PyFilesystem2:\nPython 2.7, and Python 3.5 onwards. Code should still be compatible with\nPython 3.4, but is not tested anymore.\n\n## Installation\n\nInstall directly from PyPI, using [pip](https://pip.pypa.io/):\n\n```console\n$ pip install fs.archive\n```\n\n### Additional features\n\n`fs.archive` also provides the following\n[extras](https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies), allowing you to read from more archive formats:\n\n- **tar.xz**: support for `xz` compressed tar files. Requires the additional\n  [`backports.lzma`](https://pypi.python.org/pypi/backports.lzma) module\n  in Python 2, but is available natively in Python 3.\n- **iso**: pure-python reading/writing ISO disk images (with support for ISO\n  9660 Levels 1, 2 and 3, Joliet and Rock Ridge extensions). Requires\n  the [`pycdlib`](https://pypi.python.org/pypi/pycdlib) library.\n- **7z**: support for 7z archives. Requires the [`py7zr`](https://pypi.python.org/pypi/py7zr)\n  and [`iocursor`](https://pypi.python.org/pypi/iocursor) libraries.\n- **all**: install all of the above.\n\n## Usage\n\n### Opener\n\nThe `fs.archive.open_archive` function is the easiest way to open an\narchive filesystem, with an archive located on any other filesystem,\ndirectly determining the class to use from the file extension:\n\n``` python\n\u003e\u003e\u003e from fs import open_fs\n\u003e\u003e\u003e from fs.archive import open_archive\n\n\u003e\u003e\u003e my_fs = open_fs(u'temp://')\n\u003e\u003e\u003e with open_archive(my_fs, u'test.zip') as archive:\n...     type(archive)\n\u003cclass 'fs.archive.zipfs.ZipFS'\u003e\n```\n\n### Constructors\n\nAll the filesystems implemented in `fs.archive` also support reading\nfrom (and if not read-only, writing to) a file handle:\n\n``` python\n\u003e\u003e\u003e import fs.archive.tarfs\n\u003e\u003e\u003e with fs.open_fs(u'mem://') as mem:\n...     with fs.archive.tarfs.TarFS(mem.openbin(u'test.tar', 'w')) as tar:\n...         tar.setbytes(u'hello', b'Hello, World!')\n...     with fs.archive.tarfs.TarFS(mem.openbin(u'test.tar', 'r+')) as tar:\n...         tar.isfile(u'hello')\nTrue\n```\n\n## Feedback\n\nFound a bug ? Have an enhancement request ? Head over to the [GitHub\nissue tracker](https://github.com/althonos/fs.archive/issues) of the\nproject if you need to report or ask something. If you are filling in on\na bug, please include as much information as you can about the issue,\nand try to recreate the same bug in a simple, easily reproductible\nsituation.\n\n\n## Credits\n\n`fs.sshfs` is developed and maintained by:\n- [Martin Larralde](https://github.com/althonos)\n\nThe following people contributed to `fs.archive`:\n- [Matt Alexander](https://github.com/mattalexx)\n\nThis project obviously owes a lot to the PyFilesystem2 project and\n[all its contributors](https://github.com/PyFilesystem/pyfilesystem2/blob/master/CONTRIBUTORS.md).\n\n\n## See also\n\n-   [fs](https://github.com/Pyfilesystem/pyfilesystem2), the core\n    pyfilesystem2 library\n-   [fs.sshfs](https://github.com/althonos/fs.sshfs), a SFTP/SSH\n    implementation for pyfilesystem2 using\n    [paramiko](https://github.com/paramiko/paramiko)\n-   [fs.smbfs](https://github.com/althonos/fs.smbfs), a SMB\n    implementation for pyfilesystem2 using\n    [pysmb](https://github.com/miketeo/pysmb)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falthonos%2Ffs.archive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falthonos%2Ffs.archive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falthonos%2Ffs.archive/lists"}