par2deep


Namepar2deep JSON
Version 1.10.2 PyPI version JSON
download
home_pagehttps://github.com/brenthuisman/par2deep
SummaryProduce, verify and repair par2 files recursively.
upload_time2024-07-23 14:25:28
maintainerNone
docs_urlNone
authorBrent Huisman
requires_pythonNone
licenseLGPL
keywords par2 file integrity
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## par2deep

Analogous to the various *deep commands (md5deep, hashdeep...) this tool serves to create, verify and repair parity files in a file tree.

This tool will generate one parity file (plus a file for the recovery blocks) per file that you protect. This makes it simple to move files if you change your mind on how your file tree must be organized. Just move the `par2` files along.

For your convenience, par2deep installs the [par2cmdline-turbo](https://github.com/animetosho/par2cmdline-turbo) [Python package](https://github.com/brenthuisman/par2cmdline-turbo.py).

## Motivation

I chose to use the old but well tested and well known `par2` program to base this tool on, instead of similar tools such as `zfec`, `rsbep` or something like `pyFileFixity`. Some recent forks of `par2` have added recursive scanning abilities, but they're generally not cross-platform. They also do not offer an interactive way of diagnosing (parts of) your file tree, and different problem handling for different areas of your file tree.

I use `par2deep` to secure my photos and music across drives, machines and operating systems, and I intend to keep securing my data this way in the decades to come. I felt that the wide availability of the `par2` tool was my best bet.

## Install

If you have Python installed, you can use pip! Make sure to update pip before installation (PyQt5 won't install without a recent pip).

    $ pip install -U pip
    $ pip install par2deep

Alternatively, clone/download this repo and install:

    $ pip install ./par2deep

Or run directly:

    $ python par2deep

### Windows

If you use Windows, and do not have Python installed, you can grab an installer [here](https://github.com/brenthuisman/par2deep/releases). These msi packages are generated created with the `cx_Freeze` package using the `setup_cx.py` script:

    $ python3 setup_cx.py bdist_msi

Configuration used to produce the release `.msi`: Python 3.8.10 64bit (for Windows 7 compatibility), cx_Freeze 6.4.

## Usage

After installation, run with `par2deep` for the GUI or `par2deep-cli` if you live in the terminal. Command line options may be enumerated by using the --help option. Note that `-q` will update, fix or recreate parity files as it sees fit. If unrepairable damage is found, it will recreate parity data.

An optional `par2deep.ini` file may be placed in the target directory or as `~/.par2deep` defining all the commandline options. For the excludes, separate by comma.

Example `par2deep.ini`:

	excludes = [new, root]
	extexcludes = [JPG, jpg]
	par_cmd = c:/sync/apps/par/par2.exe

## Dependencies

* tqdm
* configargparse
* Send2Trash
* PyQt5
* On exotic platforms: provide your own `par2`

### Changelog

* 2024-07-23: v1.10.2: Moved `par2cmdline-turbo` to its own package.
* 2024-01-29: v1.10.1: Escape user provided directory properly.
* 2024-01-24: v1.10: Replaced libpar2 builtin with par2cmdline-turbo v1.1.1. Provide builtin par2cmdline-turbo for Win x86_64, Linux x84_64 and ARM64, Macos x86_64 and ARM64. This should fix issues with filename encodings, filesize limits.
* 2022-02-03: v1.9.4.2: Fixed `cli.py`, fixed some package name casing, `pardeep` now always starts Qt GUI, removed `gui_tk.py`.
* 2022-01-31: v1.9.4.1: Moved kinda-broken (no UTF8 filename support) `gopar` changes to gopar branch, release last commit as new version as it fixes some things.
* 2020-04-26: v1.9.4: Include libpar2 for win64 and lin64 platforms, no external `par2` needed anymore.
* 2020-04-20: recreate verified_repairable creates backup. backups are shows upon init. orphans are shown upon init.
* 2020-04-16: v1.9.3: Packaging still is a pain!
* 2020-04-16: v1.9.0: GUI rewritten in with Qt (PyQt5). Open Issues should be solved for 2.0.0 release.
* 2019-02-15: v1.0.5: Instead of deleting files (os.remove), now Send2Trash is used.
* 2018-12-05: v1.0.4: Gui mode is now shutdownable (threads dont keep running in the background anymore).
* 2018-12-05: v1.0.3. Once again fixed imports. Should now work with local, pip-installed and bundled versions. Gui and cli now show filename during executing actions stage.
* 2018-05-30: v1.0.2. GUI updates: file doubleclick now checkes if string is file, added tooltips to GUI settings, and treeview category headers have a bit for info (nb of files in category). CLI updates: same par2deep import check as GUI.
* 2018-05-25: v1.0.1. Crossplatform doubleclick in treeview. Improved Windows par2 executable finding. New cx_Freeze installer script. Converted relative imports.
* 2016-08-20: Ensured par2 command is called correctly from Windows and other OS in GUI mode. Added NSIS installer script.
* 2016-08-12: Revamped tool. Reset to v1.0.0. Includes Tkinter gui. cli unchanged apart from cosmetics.
* 2016-08-07: Added optional config files, excludes, extensions, and parity completeness check.
* 2016-08-06: Program no longer maps to `par2` commandline options but (loosely) to `hashdeep` tools: run it, and see what has changed and needs to be done with respect to the previous run.
* 2016-03-22: Finish port to Python 3, added setup.py.
* 2016-03-19: Added quiet mode, keep backup files upon unsuccesful repair.
* 2016-03-17: First release



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/brenthuisman/par2deep",
    "name": "par2deep",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "par2 file integrity",
    "author": "Brent Huisman",
    "author_email": "brent@huisman.pl",
    "download_url": null,
    "platform": null,
    "description": "## par2deep\n\nAnalogous to the various *deep commands (md5deep, hashdeep...) this tool serves to create, verify and repair parity files in a file tree.\n\nThis tool will generate one parity file (plus a file for the recovery blocks) per file that you protect. This makes it simple to move files if you change your mind on how your file tree must be organized. Just move the `par2` files along.\n\nFor your convenience, par2deep installs the [par2cmdline-turbo](https://github.com/animetosho/par2cmdline-turbo) [Python package](https://github.com/brenthuisman/par2cmdline-turbo.py).\n\n## Motivation\n\nI chose to use the old but well tested and well known `par2` program to base this tool on, instead of similar tools such as `zfec`, `rsbep` or something like `pyFileFixity`. Some recent forks of `par2` have added recursive scanning abilities, but they're generally not cross-platform. They also do not offer an interactive way of diagnosing (parts of) your file tree, and different problem handling for different areas of your file tree.\n\nI use `par2deep` to secure my photos and music across drives, machines and operating systems, and I intend to keep securing my data this way in the decades to come. I felt that the wide availability of the `par2` tool was my best bet.\n\n## Install\n\nIf you have Python installed, you can use pip! Make sure to update pip before installation (PyQt5 won't install without a recent pip).\n\n    $ pip install -U pip\n    $ pip install par2deep\n\nAlternatively, clone/download this repo and install:\n\n    $ pip install ./par2deep\n\nOr run directly:\n\n    $ python par2deep\n\n### Windows\n\nIf you use Windows, and do not have Python installed, you can grab an installer [here](https://github.com/brenthuisman/par2deep/releases). These msi packages are generated created with the `cx_Freeze` package using the `setup_cx.py` script:\n\n    $ python3 setup_cx.py bdist_msi\n\nConfiguration used to produce the release `.msi`: Python 3.8.10 64bit (for Windows 7 compatibility), cx_Freeze 6.4.\n\n## Usage\n\nAfter installation, run with `par2deep` for the GUI or `par2deep-cli` if you live in the terminal. Command line options may be enumerated by using the --help option. Note that `-q` will update, fix or recreate parity files as it sees fit. If unrepairable damage is found, it will recreate parity data.\n\nAn optional `par2deep.ini` file may be placed in the target directory or as `~/.par2deep` defining all the commandline options. For the excludes, separate by comma.\n\nExample `par2deep.ini`:\n\n\texcludes = [new, root]\n\textexcludes = [JPG, jpg]\n\tpar_cmd = c:/sync/apps/par/par2.exe\n\n## Dependencies\n\n* tqdm\n* configargparse\n* Send2Trash\n* PyQt5\n* On exotic platforms: provide your own `par2`\n\n### Changelog\n\n* 2024-07-23: v1.10.2: Moved `par2cmdline-turbo` to its own package.\n* 2024-01-29: v1.10.1: Escape user provided directory properly.\n* 2024-01-24: v1.10: Replaced libpar2 builtin with par2cmdline-turbo v1.1.1. Provide builtin par2cmdline-turbo for Win x86_64, Linux x84_64 and ARM64, Macos x86_64 and ARM64. This should fix issues with filename encodings, filesize limits.\n* 2022-02-03: v1.9.4.2: Fixed `cli.py`, fixed some package name casing, `pardeep` now always starts Qt GUI, removed `gui_tk.py`.\n* 2022-01-31: v1.9.4.1: Moved kinda-broken (no UTF8 filename support) `gopar` changes to gopar branch, release last commit as new version as it fixes some things.\n* 2020-04-26: v1.9.4: Include libpar2 for win64 and lin64 platforms, no external `par2` needed anymore.\n* 2020-04-20: recreate verified_repairable creates backup. backups are shows upon init. orphans are shown upon init.\n* 2020-04-16: v1.9.3: Packaging still is a pain!\n* 2020-04-16: v1.9.0: GUI rewritten in with Qt (PyQt5). Open Issues should be solved for 2.0.0 release.\n* 2019-02-15: v1.0.5: Instead of deleting files (os.remove), now Send2Trash is used.\n* 2018-12-05: v1.0.4: Gui mode is now shutdownable (threads dont keep running in the background anymore).\n* 2018-12-05: v1.0.3. Once again fixed imports. Should now work with local, pip-installed and bundled versions. Gui and cli now show filename during executing actions stage.\n* 2018-05-30: v1.0.2. GUI updates: file doubleclick now checkes if string is file, added tooltips to GUI settings, and treeview category headers have a bit for info (nb of files in category). CLI updates: same par2deep import check as GUI.\n* 2018-05-25: v1.0.1. Crossplatform doubleclick in treeview. Improved Windows par2 executable finding. New cx_Freeze installer script. Converted relative imports.\n* 2016-08-20: Ensured par2 command is called correctly from Windows and other OS in GUI mode. Added NSIS installer script.\n* 2016-08-12: Revamped tool. Reset to v1.0.0. Includes Tkinter gui. cli unchanged apart from cosmetics.\n* 2016-08-07: Added optional config files, excludes, extensions, and parity completeness check.\n* 2016-08-06: Program no longer maps to `par2` commandline options but (loosely) to `hashdeep` tools: run it, and see what has changed and needs to be done with respect to the previous run.\n* 2016-03-22: Finish port to Python 3, added setup.py.\n* 2016-03-19: Added quiet mode, keep backup files upon unsuccesful repair.\n* 2016-03-17: First release\n\n\n",
    "bugtrack_url": null,
    "license": "LGPL",
    "summary": "Produce, verify and repair par2 files recursively.",
    "version": "1.10.2",
    "project_urls": {
        "Homepage": "https://github.com/brenthuisman/par2deep"
    },
    "split_keywords": [
        "par2",
        "file",
        "integrity"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7cab94f0b1a6ab7bd47fdf52a08ad1eee0c44f66f8af0396ff8bc830b3a01296",
                "md5": "2543bfb08d6e5ab1e248ffdb0543b6e1",
                "sha256": "ef116783540025fb373e88e3a482a6cb3143bfbedf79b1c23f9a863700c13583"
            },
            "downloads": -1,
            "filename": "par2deep-1.10.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2543bfb08d6e5ab1e248ffdb0543b6e1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 18011,
            "upload_time": "2024-07-23T14:25:28",
            "upload_time_iso_8601": "2024-07-23T14:25:28.516031Z",
            "url": "https://files.pythonhosted.org/packages/7c/ab/94f0b1a6ab7bd47fdf52a08ad1eee0c44f66f8af0396ff8bc830b3a01296/par2deep-1.10.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-23 14:25:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "brenthuisman",
    "github_project": "par2deep",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "par2deep"
}
        
Elapsed time: 0.26515s