https://github.com/althonos/fs.archive
Pyfilesystem2 for various archive filesystems
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 5 committers (20.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.3%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Pyfilesystem2 for various archive filesystems
Basic Info
Statistics
- Stars: 18
- Watchers: 3
- Forks: 4
- Open Issues: 5
- Releases: 0
Topics
Metadata Files
README.md
fs.archive 
Requirements
| PyFilesystem2 | |
|
|
|:-|:-|:-|:-|
| six |
|
|
|
fs.archive supports all Python versions supported by PyFilesystem2:
Python 2.7, and Python 3.5 onwards. Code should still be compatible with
Python 3.4, but is not tested anymore.
Installation
Install directly from PyPI, using pip:
console
$ pip install fs.archive
Additional features
fs.archive also provides the following
extras, allowing you to read from more archive formats:
- tar.xz: support for
xzcompressed tar files. Requires the additionalbackports.lzmamodule in Python 2, but is available natively in Python 3. - iso: pure-python reading/writing ISO disk images (with support for ISO
9660 Levels 1, 2 and 3, Joliet and Rock Ridge extensions). Requires
the
pycdliblibrary. - 7z: support for 7z archives. Requires the
py7zrandiocursorlibraries. - all: install all of the above.
Usage
Opener
The fs.archive.open_archive function is the easiest way to open an
archive filesystem, with an archive located on any other filesystem,
directly determining the class to use from the file extension:
``` python
from fs import openfs from fs.archive import openarchive
myfs = openfs(u'temp://') with openarchive(myfs, u'test.zip') as archive: ... type(archive)
```
Constructors
All the filesystems implemented in fs.archive also support reading
from (and if not read-only, writing to) a file handle:
``` python
import fs.archive.tarfs with fs.open_fs(u'mem://') as mem: ... with fs.archive.tarfs.TarFS(mem.openbin(u'test.tar', 'w')) as tar: ... tar.setbytes(u'hello', b'Hello, World!') ... with fs.archive.tarfs.TarFS(mem.openbin(u'test.tar', 'r+')) as tar: ... tar.isfile(u'hello') True ```
Feedback
Found a bug ? Have an enhancement request ? Head over to the GitHub issue tracker of the project if you need to report or ask something. If you are filling in on a bug, please include as much information as you can about the issue, and try to recreate the same bug in a simple, easily reproductible situation.
Credits
fs.sshfs is developed and maintained by:
- Martin Larralde
The following people contributed to fs.archive:
- Matt Alexander
This project obviously owes a lot to the PyFilesystem2 project and all its contributors.
See also
Owner
- Name: Martin Larralde
- Login: althonos
- Kind: user
- Location: Heidelberg, Germany
- Company: EMBL / LUMC, @zellerlab
- Twitter: althonos
- Repositories: 91
- Profile: https://github.com/althonos
PhD candidate in Bioinformatics, passionate about programming, SIMD-enthusiast, Pythonista, Rustacean. I write poems, and sometimes they are executable.
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Martin Larralde | m****e@e****r | 154 |
| Martin Larralde | m****e@e****e | 37 |
| Matt Alexander | g****b@m****e | 1 |
| Matt Alexander | m****t@a****e | 1 |
| Martin Larralde | m****e@e****r | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 12
- Total pull requests: 4
- Average time to close issues: about 1 month
- Average time to close pull requests: about 1 month
- Total issue authors: 5
- Total pull request authors: 2
- Average comments per issue: 2.83
- Average comments per pull request: 1.5
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- mattalexx (4)
- geoffjukes (3)
- dcoshea (3)
- krateng (1)
- dAnjou (1)
Pull Request Authors
- mattalexx (2)
- krateng (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 278 last-month
- Total dependent packages: 0
- Total dependent repositories: 3
- Total versions: 15
- Total maintainers: 1
pypi.org: fs.archive
Enhanced archive filesystems for Pyfilesystem2
- Homepage: https://github.com/althonos/fs.archive
- Documentation: https://fs.archive.readthedocs.io/
- License: MIT
-
Latest release: 0.7.3
published almost 4 years ago
Rankings
Maintainers (1)
Dependencies
- codecov * test
- docker * test
- mock * test
- semantic-version * test