Skip to content

mahdinazari/easy-archive

Repository files navigation

easy-archive - An archive reader tool for python

Supported format

  • .rar
  • .zip
  • .tar, '.tar.bz2', '.tar.gz', 'tar.xz', '.tgz', '.tz2'
  • .7z
  • ...

Installation

$ pip install easy_archive

Usage

from easy_archive import Archive

archive = Archive('archive_file_path')
archive.[namelist | list | is_encrypted | close]

archive.[extract | extractall]('destination_path')

Features

  • namelist: Returns list of filenames in archive.
  • list: Returns pretty list of filenames in archive.
  • is_encrypted: Specified the archive require password for extract or not.
  • extract: Extract single archive level in current path or given path directory.
  • extractall: Extract all archived level in current path or given path directory.
  • close: Close open archive file.

development

For development execute following:

pip install -r requirement-dev.txt
pip install -e 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages