cs.app.mklinks


Namecs.app.mklinks JSON
Version 20221228 PyPI version JSON
download
home_pagehttps://bitbucket.org/cameron_simpson/css/commits/all
SummaryTool for finding and hardlinking identical files.
upload_time2022-12-27 23:48:44
maintainer
docs_urlNone
authorCameron Simpson
requires_python
licenseGNU General Public License v3 or later (GPLv3+)
keywords python2 python3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            mklinks: tool for finding and hardlinking identical files

*Latest release 20221228*:
* Modernise command, pass a RunState to the merge methods.
* merge: check runstate more frequently, tweak progress bar.
* assimilate: plumb runstate.

Mklinks walks supplied paths looking for files with the same content,
based on a cryptographic checksum of their content. It hardlinks
all such files found, keeping the newest version.

Unlike some rather naive tools out there, mklinks only compares
files with other files of the same size, and is hardlink aware - a
partially hardlinked tree is processed efficiently and correctly.

## Class `FileInfo`

Information about a particular inode.

*Method `FileInfo.__init__(self, dev, ino, size, mtime, paths=())`*:
pylint: disable=too-many-arguments

## Class `Linker`

The class which links files with identical content.

## Function `main(argv=None)`

Main command line programme.

## Class `MKLinksCmd(cs.cmdutils.BaseCommand)`

Main programme command line class.

Command line usage:

    Usage: mklinkscmd paths...
              Hard link files with identical contents.
              -n    No action. Report proposed actions.

# Release Log



*Release 20221228*:
* Modernise command, pass a RunState to the merge methods.
* merge: check runstate more frequently, tweak progress bar.
* assimilate: plumb runstate.

*Release 20210404*:
* FileInfo.checksum: bump read size to 1MiB.
* Requirements bump to match cs.cmdutils change.

*Release 20210401*:
Major bugfix: subdirectory file paths were computed incorrectly.

*Release 20210306*:
Use cs.cmdutils.BaseCommand for main programme, add better progress reporting.

*Release 20171228*:
Initial PyPI release of cs.app.mklinks.

            

Raw data

            {
    "_id": null,
    "home_page": "https://bitbucket.org/cameron_simpson/css/commits/all",
    "name": "cs.app.mklinks",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python2,python3",
    "author": "Cameron Simpson",
    "author_email": "Cameron Simpson <cs@cskk.id.au>",
    "download_url": "https://files.pythonhosted.org/packages/e7/02/cd1bf5cf6f5161148a8f1cf3abb2ec14e1057c2f8b27339e7307fbade6d5/cs.app.mklinks-20221228.tar.gz",
    "platform": null,
    "description": "mklinks: tool for finding and hardlinking identical files\n\n*Latest release 20221228*:\n* Modernise command, pass a RunState to the merge methods.\n* merge: check runstate more frequently, tweak progress bar.\n* assimilate: plumb runstate.\n\nMklinks walks supplied paths looking for files with the same content,\nbased on a cryptographic checksum of their content. It hardlinks\nall such files found, keeping the newest version.\n\nUnlike some rather naive tools out there, mklinks only compares\nfiles with other files of the same size, and is hardlink aware - a\npartially hardlinked tree is processed efficiently and correctly.\n\n## Class `FileInfo`\n\nInformation about a particular inode.\n\n*Method `FileInfo.__init__(self, dev, ino, size, mtime, paths=())`*:\npylint: disable=too-many-arguments\n\n## Class `Linker`\n\nThe class which links files with identical content.\n\n## Function `main(argv=None)`\n\nMain command line programme.\n\n## Class `MKLinksCmd(cs.cmdutils.BaseCommand)`\n\nMain programme command line class.\n\nCommand line usage:\n\n    Usage: mklinkscmd paths...\n              Hard link files with identical contents.\n              -n    No action. Report proposed actions.\n\n# Release Log\n\n\n\n*Release 20221228*:\n* Modernise command, pass a RunState to the merge methods.\n* merge: check runstate more frequently, tweak progress bar.\n* assimilate: plumb runstate.\n\n*Release 20210404*:\n* FileInfo.checksum: bump read size to 1MiB.\n* Requirements bump to match cs.cmdutils change.\n\n*Release 20210401*:\nMajor bugfix: subdirectory file paths were computed incorrectly.\n\n*Release 20210306*:\nUse cs.cmdutils.BaseCommand for main programme, add better progress reporting.\n\n*Release 20171228*:\nInitial PyPI release of cs.app.mklinks.\n",
    "bugtrack_url": null,
    "license": "GNU General Public License v3 or later (GPLv3+)",
    "summary": "Tool for finding and hardlinking identical files.",
    "version": "20221228",
    "split_keywords": [
        "python2",
        "python3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "ea54809c608c1c6bfc7b82693ea0bc25",
                "sha256": "c62117149cf475e6aaf9a3b57c4811ef9deff11948a8ee3e1c2b07d77a5f45d7"
            },
            "downloads": -1,
            "filename": "cs.app.mklinks-20221228-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ea54809c608c1c6bfc7b82693ea0bc25",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6319,
            "upload_time": "2022-12-27T23:48:43",
            "upload_time_iso_8601": "2022-12-27T23:48:43.301972Z",
            "url": "https://files.pythonhosted.org/packages/88/5c/b473357b5134e497a417ebbef44345c2bff5c1358891272fe54f89240395/cs.app.mklinks-20221228-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "6fa89a2a108f72a16ef1ca7be0a85bf0",
                "sha256": "b57b44aa27080f9df1857897be143bbccd3626febd932ab5bf7c1ffb98c558a4"
            },
            "downloads": -1,
            "filename": "cs.app.mklinks-20221228.tar.gz",
            "has_sig": false,
            "md5_digest": "6fa89a2a108f72a16ef1ca7be0a85bf0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6247,
            "upload_time": "2022-12-27T23:48:44",
            "upload_time_iso_8601": "2022-12-27T23:48:44.724911Z",
            "url": "https://files.pythonhosted.org/packages/e7/02/cd1bf5cf6f5161148a8f1cf3abb2ec14e1057c2f8b27339e7307fbade6d5/cs.app.mklinks-20221228.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-27 23:48:44",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "cs.app.mklinks"
}
        
Elapsed time: 0.22693s