https://github.com/althonos/fs.archive

Pyfilesystem2 for various archive filesystems

https://github.com/althonos/fs.archive

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

7z archive iso library pyfilesystem2 python tar zip

Keywords from Contributors

bioinformatics genome metagenomes filesystem filesystem-library ftp pyfilesystem progress-bar
Last synced: 5 months ago · JSON representation

Repository

Pyfilesystem2 for various archive filesystems

Basic Info
  • Host: GitHub
  • Owner: althonos
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 229 KB
Statistics
  • Stars: 18
  • Watchers: 3
  • Forks: 4
  • Open Issues: 5
  • Releases: 0
Topics
7z archive iso library pyfilesystem2 python tar zip
Created over 8 years ago · Last pushed over 3 years ago
Metadata Files
Readme Changelog License

README.md

fs.archive star me

Source PyPI Actions Codecov Codacy License Versions Format GitHub issues Downloads Changelog

Requirements

| PyFilesystem2 | PyPI fs | Source fs | License fs | |:-|:-|:-|:-| | six | PyPI six | Source six | License 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 xz compressed tar files. Requires the additional backports.lzma module 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 pycdlib library.
  • 7z: support for 7z archives. Requires the py7zr and iocursor libraries.
  • 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

  • fs, the core pyfilesystem2 library
  • fs.sshfs, a SFTP/SSH implementation for pyfilesystem2 using paramiko
  • fs.smbfs, a SMB implementation for pyfilesystem2 using pysmb

Owner

  • Name: Martin Larralde
  • Login: althonos
  • Kind: user
  • Location: Heidelberg, Germany
  • Company: EMBL / LUMC, @zellerlab

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

All Time
  • Total Commits: 194
  • Total Committers: 5
  • Avg Commits per committer: 38.8
  • Development Distribution Score (DDS): 0.206
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email 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
bug (10) fixed (6) enhancement (1)
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

  • Versions: 15
  • Dependent Packages: 0
  • Dependent Repositories: 3
  • Downloads: 278 Last month
Rankings
Dependent repos count: 8.9%
Dependent packages count: 10.1%
Average: 12.7%
Downloads: 14.3%
Stargazers count: 14.6%
Forks count: 15.4%
Maintainers (1)
Last synced: 6 months ago

Dependencies

tests/requirements.txt pypi
  • codecov * test
  • docker * test
  • mock * test
  • semantic-version * test