patool


Namepatool JSON
Version 2.2.0 PyPI version JSON
download
home_pagehttps://github.com/wummel/patool
Summaryportable archive file manager
upload_time2024-02-14 20:26:58
maintainer
docs_urlNone
authorBastian Kleineidam
requires_python>=3.10
licenseGPL-3
keywords archiver archive compression commandline manager
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Patool
=======

Patool is an archive file manager.

Various archive formats can be created, extracted, tested, listed,
searched, repacked and compared with patool. The advantage of patool is
its simplicity in handling archive files without having to remember a
myriad of programs and options.

The archive format is determined by the file(1) program and as
a fallback by the archive file extension.

patool supports 7z (.7z, .cb7), ACE (.ace, .cba), ADF (.adf), ALZIP (.alz),
APE (.ape), AR (.a), ARC (.arc), ARJ (.arj), BZIP2 (.bz2), BZIP3 (.bz3),
CAB (.cab), CHM (.chm), COMPRESS (.Z), CPIO (.cpio), DEB (.deb), DMS (.dms),
FLAC (.flac), GZIP (.gz), ISO (.iso), LRZIP (.lrz), LZH (.lha, .lzh),
LZIP (.lz), LZMA (.lzma), LZOP (.lzo), RPM (.rpm), RAR (.rar, .cbr),
RZIP (.rz), SHN (.shn), TAR (.tar, .cbt), XZ (.xz),
ZIP (.zip, .jar, .cbz), ZOO (.zoo) and ZSTANDARD (.zst) archive formats.

It relies on helper applications to handle those archive formats
(for example `xz` for XZ (.xz) archives).

The archive formats TAR, ZIP, BZIP2 and GZIP are supported natively
and do not require helper applications to be installed.

Examples
---------
```
# Extract several archives with different formats
patool extract archive.zip otherarchive.rar

# Extract archive with password
patool extract --password somepassword archive.rar

# Test archive integrity
patool test --verbose dist.tar.gz

# List files stored in an archive
patool list package.deb

# Create a new archive
patool create --verbose /path/to/myfiles.zip file1.txt dir/

# Create a new archive with password
patool create --verbose --password somepassword /path/to/myfiles.zip file1.txt dir/

# Show differences between two archives
patool diff release1.0.tar.gz release2.0.zip

# Search for text inside archives
patool search "def urlopen" python-3.3.tar.gz

# Repackage an archive in a different format
patool repack linux-2.6.33.tar.gz linux-2.6.33.tar.bz2
```

Website
--------
See https://wummel.github.io/patool/ for more info and downloads.

API
----
You can use patool functions from other Python applications.
Log output will be on sys.stdout and sys.stderr.
On errors, `PatoolError` will be raised.
Note that extra options or customization
for specific archive programs are not supported.

```
import patoolib
patoolib.extract_archive("archive.zip", outdir="/tmp")
patoolib.test_archive("dist.tar.gz", verbosity=1)
patoolib.list_archive("package.deb")
patoolib.create_archive("/path/to/myfiles.zip", ("file1.txt", "dir/"))
patoolib.diff_archives("release1.0.tar.gz", "release2.0.zip")
patoolib.search_archive("def urlopen", "python3.3.tar.gz")
patoolib.repack_archive("linux-2.6.33.tar.gz", "linux-2.6.33.tar.bz2")
patoolib.is_archive("package.deb")
```

See https://wummel.github.io/patool/ for detailed API documentation.

Test suite status
------------------
Patool has extensive unit tests to ensure the code quality.


Bash completion
----------------
Install the argcomplete python package with
`apt-get install python3-argcomplete`,
then run
`eval "$(register-python-argcomplete patool)"`.
After that typing `patool`, a `<SPACE>` and then `<TAB>`
lists available options and commands.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/wummel/patool",
    "name": "patool",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "archiver,archive,compression,commandline,manager",
    "author": "Bastian Kleineidam",
    "author_email": "bastian.kleineidam@web.de",
    "download_url": "https://files.pythonhosted.org/packages/97/f3/4631a690c5620e39e03e1e6768f68f5cfe766004311e66d1c17bcd9f293b/patool-2.2.0.tar.gz",
    "platform": null,
    "description": "Patool\n=======\n\nPatool is an archive file manager.\n\nVarious archive formats can be created, extracted, tested, listed,\nsearched, repacked and compared with patool. The advantage of patool is\nits simplicity in handling archive files without having to remember a\nmyriad of programs and options.\n\nThe archive format is determined by the file(1) program and as\na fallback by the archive file extension.\n\npatool supports 7z (.7z, .cb7), ACE (.ace, .cba), ADF (.adf), ALZIP (.alz),\nAPE (.ape), AR (.a), ARC (.arc), ARJ (.arj), BZIP2 (.bz2), BZIP3 (.bz3),\nCAB (.cab), CHM (.chm), COMPRESS (.Z), CPIO (.cpio), DEB (.deb), DMS (.dms),\nFLAC (.flac), GZIP (.gz), ISO (.iso), LRZIP (.lrz), LZH (.lha, .lzh),\nLZIP (.lz), LZMA (.lzma), LZOP (.lzo), RPM (.rpm), RAR (.rar, .cbr),\nRZIP (.rz), SHN (.shn), TAR (.tar, .cbt), XZ (.xz),\nZIP (.zip, .jar, .cbz), ZOO (.zoo) and ZSTANDARD (.zst) archive formats.\n\nIt relies on helper applications to handle those archive formats\n(for example `xz` for XZ (.xz) archives).\n\nThe archive formats TAR, ZIP, BZIP2 and GZIP are supported natively\nand do not require helper applications to be installed.\n\nExamples\n---------\n```\n# Extract several archives with different formats\npatool extract archive.zip otherarchive.rar\n\n# Extract archive with password\npatool extract --password somepassword archive.rar\n\n# Test archive integrity\npatool test --verbose dist.tar.gz\n\n# List files stored in an archive\npatool list package.deb\n\n# Create a new archive\npatool create --verbose /path/to/myfiles.zip file1.txt dir/\n\n# Create a new archive with password\npatool create --verbose --password somepassword /path/to/myfiles.zip file1.txt dir/\n\n# Show differences between two archives\npatool diff release1.0.tar.gz release2.0.zip\n\n# Search for text inside archives\npatool search \"def urlopen\" python-3.3.tar.gz\n\n# Repackage an archive in a different format\npatool repack linux-2.6.33.tar.gz linux-2.6.33.tar.bz2\n```\n\nWebsite\n--------\nSee https://wummel.github.io/patool/ for more info and downloads.\n\nAPI\n----\nYou can use patool functions from other Python applications.\nLog output will be on sys.stdout and sys.stderr.\nOn errors, `PatoolError` will be raised.\nNote that extra options or customization\nfor specific archive programs are not supported.\n\n```\nimport patoolib\npatoolib.extract_archive(\"archive.zip\", outdir=\"/tmp\")\npatoolib.test_archive(\"dist.tar.gz\", verbosity=1)\npatoolib.list_archive(\"package.deb\")\npatoolib.create_archive(\"/path/to/myfiles.zip\", (\"file1.txt\", \"dir/\"))\npatoolib.diff_archives(\"release1.0.tar.gz\", \"release2.0.zip\")\npatoolib.search_archive(\"def urlopen\", \"python3.3.tar.gz\")\npatoolib.repack_archive(\"linux-2.6.33.tar.gz\", \"linux-2.6.33.tar.bz2\")\npatoolib.is_archive(\"package.deb\")\n```\n\nSee https://wummel.github.io/patool/ for detailed API documentation.\n\nTest suite status\n------------------\nPatool has extensive unit tests to ensure the code quality.\n\n\nBash completion\n----------------\nInstall the argcomplete python package with\n`apt-get install python3-argcomplete`,\nthen run\n`eval \"$(register-python-argcomplete patool)\"`.\nAfter that typing `patool`, a `<SPACE>` and then `<TAB>`\nlists available options and commands.\n",
    "bugtrack_url": null,
    "license": "GPL-3",
    "summary": "portable archive file manager",
    "version": "2.2.0",
    "project_urls": {
        "Homepage": "https://github.com/wummel/patool",
        "Source": "https://github.com/wummel/patool"
    },
    "split_keywords": [
        "archiver",
        "archive",
        "compression",
        "commandline",
        "manager"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e664e9dd887985305d4cc88b09bcaaaafe5053197e5ebbeba62473f8c3cf6d80",
                "md5": "9b945037d295756b07791ad90db05923",
                "sha256": "21db6cc2fcd77acd37768258d1ad5aa3df0f676331fd80dfb1eb628626bc9155"
            },
            "downloads": -1,
            "filename": "patool-2.2.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9b945037d295756b07791ad90db05923",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.10",
            "size": 96023,
            "upload_time": "2024-02-14T20:26:46",
            "upload_time_iso_8601": "2024-02-14T20:26:46.994941Z",
            "url": "https://files.pythonhosted.org/packages/e6/64/e9dd887985305d4cc88b09bcaaaafe5053197e5ebbeba62473f8c3cf6d80/patool-2.2.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "97f34631a690c5620e39e03e1e6768f68f5cfe766004311e66d1c17bcd9f293b",
                "md5": "f87745ed3576919ac371d07701d4b5dd",
                "sha256": "7767a747b24fbaa6ecc53579debc18358b6bc792ddb57e0669784c5b29af4a73"
            },
            "downloads": -1,
            "filename": "patool-2.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f87745ed3576919ac371d07701d4b5dd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 1995287,
            "upload_time": "2024-02-14T20:26:58",
            "upload_time_iso_8601": "2024-02-14T20:26:58.385101Z",
            "url": "https://files.pythonhosted.org/packages/97/f3/4631a690c5620e39e03e1e6768f68f5cfe766004311e66d1c17bcd9f293b/patool-2.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-14 20:26:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "wummel",
    "github_project": "patool",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "patool"
}
        
Elapsed time: 0.18489s