{ "info": { "author": "Johannes Wei\u00dfl", "author_email": "jargon@molb.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Utilities" ], "description": "Motivation\n----------\n\nIf you want to rename files in a directory, things get really cumbersome if:\n\n- the name modifications are not easily automatable (e.g. spelling mistakes)\n- file names contain spaces / special characters (when using a shell)\n- you have to rename a lot of files (when using a GUI)\n- you would need to use temporary files (e.g. ``mv a tmp ; mv b a ; mv tmp b``)\n- etc.\n\nThis script launches a used-defined text editor with a temporary file, where\nevery line is a filename in the directory. This enables the user to rename\n(edit a line) or delete (blank line) entries. After saving and exiting the\neditor, the script checks the file for consistency, detects rename loops and\nfinally performs the changes.\n\nNews\n----\n\n===== ========== ===========================================================\n2.1.0 2017-05-01 Support renaming of intermediate dirs in recursive mode,\n drop ``--safe`` mode, small bugfixes\n2.0.0 2017-03-22 Bugfixes, Python 3 support, ``-o`` and ``-L`` option,\n extensive test suite\n1.1 2010-11-21 Bugfixes\n1.0 2010-05-06 First working version\n===== ========== ===========================================================\n\nExamples\n--------\n\nRename non-hidden files in the current directory::\n\n dir_edit\n\nRename mp3 files in the music directory using gedit::\n\n dir_edit -e gedit ~/Music ~/Music/*.mp3\n\nReview changes before executing them::\n\n dir_edit -vd -L log.txt\n view log.txt\n sh -e log.txt\n\nRename pictures with maximum directory depth 2::\n\n find pics -maxdepth 2 -type f -iregex \".*\\.\\(jpg\\|png\\)\" > file_list\n dir_edit -i file_list\n\nUsage\n-----\n\n::\n\n dir_edit [OPTION]... [DIR] [FILES]...\n\n DIR directory to edit (default: current directory)\n FILES limit to these filenames (default: all non-hidden in directory)\n\n Some options:\n\n -e CMD, --editor=CMD use CMD to edit dirfile (default: $EDITOR or vi)\n -d, --dry-run don't perform any file system modifications\n -v, --verbose output filesystem modifications to stdout\n -L FILE, --logfile FILE path to logfile for verbose mode (default: stdout)\n -i FILE, --input FILE FILE containing paths to be edited\n\nCopyright\n=========\n\n| Copyright (C) 2010-2017 Johannes Wei\u00dfl\n| License GPLv3+:\n| GNU GPL version 3 or later \n| This is free software: you are free to change and redistribute it.\n| There is NO WARRANTY, to the extent permitted by law.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/weisslj/dir-edit", "keywords": "", "license": "GPLv3+", "maintainer": "", "maintainer_email": "", "name": "dir-edit", "package_url": "https://pypi.org/project/dir-edit/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/dir-edit/", "project_urls": { "Homepage": "https://github.com/weisslj/dir-edit" }, "release_url": "https://pypi.org/project/dir-edit/2.1.0/", "requires_dist": null, "requires_python": "", "summary": "Rename or remove files in a directory using an editor", "version": "2.1.0" }, "last_serial": 2841085, "releases": { "2.0.0": [ { "comment_text": "", "digests": { "md5": "1eb0ec5d9dd01ee63ffb3173754ca6ef", "sha256": "b936891ebe9ba3dd09b603dfc780be84cd035c80532bf7fd4c2550bc52c28a4a" }, "downloads": -1, "filename": "dir_edit-2.0.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "1eb0ec5d9dd01ee63ffb3173754ca6ef", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10180, "upload_time": "2017-03-22T20:00:37", "url": "https://files.pythonhosted.org/packages/cd/5c/d948a9d4554b332d5584032b4578a8e008ad0cae9234111a827e835cd66d/dir_edit-2.0.0-py2.py3-none-any.whl" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "558fb016fbc25ba2d5bab75a114b41d6", "sha256": "57e531362e55dd913e15b15fe1051d1fd6b133409b749e463a9d37061dc63cdb" }, "downloads": -1, "filename": "dir_edit-2.1.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "558fb016fbc25ba2d5bab75a114b41d6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10373, "upload_time": "2017-04-30T23:32:06", "url": "https://files.pythonhosted.org/packages/a4/93/84777aea534e075a81fe539a76a282fa3dcf1729a6487eeb8b5f9cf2a72d/dir_edit-2.1.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "558fb016fbc25ba2d5bab75a114b41d6", "sha256": "57e531362e55dd913e15b15fe1051d1fd6b133409b749e463a9d37061dc63cdb" }, "downloads": -1, "filename": "dir_edit-2.1.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "558fb016fbc25ba2d5bab75a114b41d6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10373, "upload_time": "2017-04-30T23:32:06", "url": "https://files.pythonhosted.org/packages/a4/93/84777aea534e075a81fe539a76a282fa3dcf1729a6487eeb8b5f9cf2a72d/dir_edit-2.1.0-py2.py3-none-any.whl" } ] }