{ "info": { "author": "Sean Marshallsay", "author_email": "srm.1708@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "======\nreFILE\n======\n\nList, rename and delete files using Python-style regex.\n\n**THIS PROGRAM IS STILL IN THE ALPHA TESTING STAGE SO PLEASE ENSURE THAT YOU\nKEEP REGULAR BACKUPS AND DO NOT USE IT ON ANY IMPORTANT DOCUMENTS OR FILES**\n\n\n------------\nInstallation\n------------\n\nreFILE should be available on the PyPI repository so installing should be as\nsimple as::\n\n $ pip install reFILE\n\nAlternatively you can clone the github repository and use setuptools, like so::\n\n $ git clone https://github.com/Sean1708/reFILE.git\n $ python setup.py install\n\nreFILE uses the pathlib module which only has tentative support for Python 2.\nFor this reason, it is reccomended that you use Python 3 to download reFILE.\nHaving said this, however, reFILE should still work on Python 2 installations.\n\n\n------\nIssues\n------\n\nIf you find any bugs or just generally have somee issues, feel free to open an\nissue ticket at my `github repo`_.\n\n.. _`github repo`: https://github.com/Sean1708/reFILE\n\nAlternatively, if you fancy fixing it yourself just send me a pull request or\ndiff file via github and I'll be happy to incorporate your code.\n\n\n-------\nLibrary\n-------\n\nI have plans to make this package usable as a library but at the moment am\nunsure how best to approach it. If you have any thoughts feel free to contact\nme.\n\n\n-------------\nDocumentation\n-------------\n\nThe refile command line utility performs three useful tasks on a directory of\nfiles; listing files which match a regular expression, renaming files which\nmatche a regular expression and deleting files which match a regular\nexpression.\n\nUsage::\n\n $ refile -h\n $ refile ls [-h] [-rqvn] [-L LIM] [-I PAT] PATTERN [DIR]\n $ refile mv [-h] [-rqvdif] [-L LIM] [-I PAT] [-m DIR] PATTERN REPLACE [DIR]\n $ refile rm [-h] [-rqvdif] [-L LIM] [-I PAT] PATTERN [DIR]\n\n\nGeneral Usage\n=============\n\nTo avoid issues with variable expansion and special characters on the command\nline it is advisable to enclose the regular expression in single quotes::\n\n $ refile ls '.*'\n\nwithout the quotes this would cause a list of all files whose name starts with\na period to be passed to ``refile`` which would, unsurprisingly, lead to\nunexpected behaviour.\n\nIf no directory is specified, the current directory is searched. A directory\ncan be specified as an absolute path or a relative one, if an absolute path is\nused then filenames will be printed as an absolute path and similarly for\nrelative paths. Tilde expansion is performed at the command line but not within\nthe program so wrapping your directory in single quotes is ill-advised.\n\nOptions\n-------\n\nAll options in reFILE must be specified after the subcommand. Many of the\noptions are shared between subcommands, they are:\n\n-h, --help print a useful help message\n-r, --recurse search directories recursively\n-q, --quiet supress all output except errors\n-v, --verbose print extra information\n-L LIM, --limit=LIM maximum depth limit when searching recursively\n-I PAT, --ignore=PAT ignore any files which match the regex PAT\n\n\nListing Files\n=============\n\nUsage::\n\n $ refile ls [-h] [-rqvl] [-L LIM] [-I PAT] PATTERN [DIR]\n\nThe ``ls`` subcommand lists all files in the directory ``DIR`` which match the\nregular expression ``PATTERN``. Internally this is run using the ``re.search``\nfunction so the pattern can match any part of the filename, not just the start.\n\nOptions\n-------\n\n-h, --help print a useful help message\n-n, --no-column suppress columnated output\n-l, --long print extra information about the files\n\n\nRenaming Files\n==============\n\nUsage::\n\n $ refile mv [-h] [-rqvdif] [-L LIM] [-I PAT] [-m DIR] [-D FORMAT]\n PATTERN REPLACE [DIR]\n\nThe ``mv`` subcommand renames any file in the directory ``DIR`` which matches\nthe regular expression ``PATTERN`` to the name ``RENAME``. This is run\ninternally using the ``re.sub`` function.\n\nIf ``PATTERN`` matches more than once in the filename then each match will be\nreplaced by the string ``REPLACE`` providing the matches don't overlap. If the\nregular expression matches the entire filename then ``PATTERN`` and ``REPLACE``\nmust contain groups and backreferences to avoid files overwriting eachother.\nThis is not checked at run-time so it is up to the user to ensure proper usage.\n\nIf the ``-D`` option is specified the creation time of the file will be\nprepended to the ``REPLACE`` string before the rename takes place. The\n``FORMAT`` string is passed to the ``time.strftime`` function so refer to that\nfor more information.\n\nOptions\n-------\n\n-h, --help print a useful help message\n-d, --directories rename directories\n-i, --confirm prompt for confirmation before renaming files\n-f, --force never prompt for confirmation\n-m DIR, --moveto=DIR move files into directory DIR\n-D FORMAT, --date=FORMAT prepend creation time according to strftime format\n\n\nDeleting Files\n==============\n\nUsage::\n\n $ refile rm [-h] [-rqvdif] [-L LIM] [-I PAT] PATTERN [DIR]\n\nThe ``rm`` subcommand deletes all files in the directory ``DIR`` which match\nregular expression ``PATTERN``. The search is performed identically to the\n``ls`` subcommand so a good way to ensure that you are deleting the correct\nfiles is to run the command as ``ls`` first.\n\nOptions\n-------\n\n-h, --help print a useful help message\n-d, --directories delete directories if empty\n-i, --confirm prompt for confirmation before deleting files\n-f, --force never prompt for confirmation", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/Sean1708/reFILE.git", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Sean1708/reFILE", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "reFILE", "package_url": "https://pypi.org/project/reFILE/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/reFILE/", "project_urls": { "Download": "https://github.com/Sean1708/reFILE.git", "Homepage": "https://github.com/Sean1708/reFILE" }, "release_url": "https://pypi.org/project/reFILE/0.4.1/", "requires_dist": [ "argparse", "nose", "ordereddict", "pathlib" ], "requires_python": "", "summary": "Utility for manipulating files via regex.", "version": "0.4.1" }, "last_serial": 1790478, "releases": { "0.0": [ { "comment_text": "", "digests": { "md5": "c278c1bd15a4a69cf53bcb030281b79c", "sha256": "c7c07054dadec87575df408f3601f5ad42e67210a64b58c1ef4f4b24951cfb5f" }, "downloads": -1, "filename": "reFILE-0.0-py3.4.egg", "has_sig": false, "md5_digest": "c278c1bd15a4a69cf53bcb030281b79c", "packagetype": "bdist_egg", "python_version": "3.4", "requires_python": null, "size": 9568, "upload_time": "2014-04-25T13:49:47", "url": "https://files.pythonhosted.org/packages/da/06/a3c0d7e3609720dd25f3fa42a8052d28fae1431e790654b66546e21e9d3c/reFILE-0.0-py3.4.egg" }, { "comment_text": "", "digests": { "md5": "8f98aedbf38b7c65d238b4606c75cb67", "sha256": "87073fd38948731ba015b56e5c5015484a37e00e63b8ea7ea51bbeb7fe2ab170" }, "downloads": -1, "filename": "reFILE-0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8f98aedbf38b7c65d238b4606c75cb67", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7981, "upload_time": "2014-04-25T13:49:45", "url": "https://files.pythonhosted.org/packages/70/d4/d4df73c8e27aa2ea9b9a4b619bce28afdf122409eac23bf464f5891294f6/reFILE-0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "73f109a57a790549c07029ab2ac9d61f", "sha256": "541e1a716c4aa10b94e6c80643fa727aab852735b9bccaf84ac33499fba2965f" }, "downloads": -1, "filename": "reFILE-0.0.tar.gz", "has_sig": false, "md5_digest": "73f109a57a790549c07029ab2ac9d61f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16321, "upload_time": "2014-04-25T13:49:50", "url": "https://files.pythonhosted.org/packages/5b/b1/1dbebe7ed3e5edb206ed041efe0d6e57a764ab5f17029da32697192764a5/reFILE-0.0.tar.gz" } ], "0.1": [ { "comment_text": "", "digests": { "md5": "426f7c8e946a6fd6236170d54a37efef", "sha256": "f8856f2bd75ef9bf7cff87f122dc27e06f1fe6f627d63cf83c890d99c710ffa7" }, "downloads": -1, "filename": "reFILE-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "426f7c8e946a6fd6236170d54a37efef", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9348, "upload_time": "2014-05-06T08:04:55", "url": "https://files.pythonhosted.org/packages/bc/42/cfbd9b90f460c61db3e33b4bd5c5cc39fde815a4bb13acda10c57ac56877/reFILE-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "47e35fe2c53eabf983a9dd36f6568982", "sha256": "1b41c57eb86b698e44ceeda327d0c9c908e95dc6971745af71d95ec00d047581" }, "downloads": -1, "filename": "reFILE-0.1.tar.gz", "has_sig": false, "md5_digest": "47e35fe2c53eabf983a9dd36f6568982", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17276, "upload_time": "2014-05-06T08:04:57", "url": "https://files.pythonhosted.org/packages/67/f2/d1a40badd2ce8c61a6f714dea048dedad3863d897c5356393473b3a27c22/reFILE-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "9e10bd2b53835eebc77bba1f670e911d", "sha256": "3aed658585f1a89f8ef495d6ae4573e965af8c7185047e950a07b62f0002d7dd" }, "downloads": -1, "filename": "reFILE-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9e10bd2b53835eebc77bba1f670e911d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10705, "upload_time": "2014-05-09T19:11:24", "url": "https://files.pythonhosted.org/packages/08/a7/04e6b710d8c846596a0acaab4beaea496dc7a5c7f5921693ae5ded0c3d70/reFILE-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c6ccb25fc3316e25e10abdcfe9bb59e3", "sha256": "459d70e30a0a25652ec3f0f737868eadf51e21ed1c1b2bd574339e54a9ffcba8" }, "downloads": -1, "filename": "reFILE-0.2.tar.gz", "has_sig": false, "md5_digest": "c6ccb25fc3316e25e10abdcfe9bb59e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19339, "upload_time": "2014-05-09T19:11:27", "url": "https://files.pythonhosted.org/packages/f3/44/8e3b8e8fb1bbd4a8c78bf39ef48eace601f0d1c091f5a963bd2efb7cd0c0/reFILE-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "d39584021f5169e3a69890b6033e4416", "sha256": "e35c65619e11ed55835aef26b63237359dcb440062ce69e491311141a41415c4" }, "downloads": -1, "filename": "reFILE-0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d39584021f5169e3a69890b6033e4416", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13069, "upload_time": "2014-05-22T14:28:31", "url": "https://files.pythonhosted.org/packages/b1/13/d514bcd444e0ee9f389b24fa9380509b1876168facd105a8dfb3fde11971/reFILE-0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "407a88fee7ab1d261001e5af38ba5b5b", "sha256": "97d5ddba8c869a96674b1b68c193d976aa1842ce03718c5c9487c272eccb3d5f" }, "downloads": -1, "filename": "reFILE-0.3.tar.gz", "has_sig": false, "md5_digest": "407a88fee7ab1d261001e5af38ba5b5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22364, "upload_time": "2014-05-22T14:28:36", "url": "https://files.pythonhosted.org/packages/ee/33/3dc1fcbdb796bced3cb48418966b919a1b889e212aad64331ed50c682a41/reFILE-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "c59d6fe9d37caf19ab571893cc53ce03", "sha256": "d8932cf623e2e775253a7760de70a8c8fa2fdc399b04a2bf9d4b26a6e2c22ce1" }, "downloads": -1, "filename": "reFILE-0.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c59d6fe9d37caf19ab571893cc53ce03", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13086, "upload_time": "2014-05-22T14:44:54", "url": "https://files.pythonhosted.org/packages/a7/b1/32e131a9aafb7e0256867a6d7e11200cd91637139c3fa63e555850bd2ddd/reFILE-0.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b6de82c3fb39901cb653af18ac36a04e", "sha256": "ce61e02a4db71de541ce67d546ff48e0a5258f5858b083de377b7b81058e016d" }, "downloads": -1, "filename": "reFILE-0.3.1.tar.gz", "has_sig": false, "md5_digest": "b6de82c3fb39901cb653af18ac36a04e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22346, "upload_time": "2014-05-22T14:44:59", "url": "https://files.pythonhosted.org/packages/89/19/66741168c04c7627a5964ec810f70945ae598c7960502f50513cddeea20b/reFILE-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "5c3b3b074c278dcc767d9d9c22fe27b2", "sha256": "8e6a78b51a878092c41cf2e20273caec8bcfc488448db32cad09974629617f19" }, "downloads": -1, "filename": "reFILE-0.3.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5c3b3b074c278dcc767d9d9c22fe27b2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13075, "upload_time": "2014-05-22T14:53:28", "url": "https://files.pythonhosted.org/packages/02/6e/6b5a61b7863c30da44680a4c12bbc4f8b0e10cf29593b3b51c912ce47483/reFILE-0.3.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cba82cf67f725e19335b75957d2fdbf4", "sha256": "cf87f4e057a597d2c1e8dad2f0e06d6d49a2124b3e18f4944bd08a7fa12cc800" }, "downloads": -1, "filename": "reFILE-0.3.2.tar.gz", "has_sig": false, "md5_digest": "cba82cf67f725e19335b75957d2fdbf4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22334, "upload_time": "2014-05-22T14:53:32", "url": "https://files.pythonhosted.org/packages/d0/39/d466f1d7011b26ec422453bd6933a31a7259716983011775a27c44fab0f4/reFILE-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "18beea0db8c9cc141da81e5d95b76651", "sha256": "cc870d6146bf67628e1e347af40de5aa1fbdb1124ca624ae677a79f87cb9e30d" }, "downloads": -1, "filename": "reFILE-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "18beea0db8c9cc141da81e5d95b76651", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13105, "upload_time": "2014-05-22T14:58:11", "url": "https://files.pythonhosted.org/packages/d3/5a/b3bda314f654b77e1e057581c5d3598112db0cda75f9727214aa29789e5b/reFILE-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e7d45af85c7b278dd471277dc7d1845b", "sha256": "90c834391eca7580b75735c2446040b55bdda69dabcd08a131152d2adcd96cd6" }, "downloads": -1, "filename": "reFILE-0.3.3.tar.gz", "has_sig": false, "md5_digest": "e7d45af85c7b278dd471277dc7d1845b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22360, "upload_time": "2014-05-22T14:58:13", "url": "https://files.pythonhosted.org/packages/74/2d/9e3b366e0da2c15f4b59d4a35499083b2d54202a1a5ffb71d9be9954e198/reFILE-0.3.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "97131e34dfb13d053d44597694336a55", "sha256": "494bd5a664ca35aadef9dee3bc8900fd4952c821d2376b7cb20ede552a01125b" }, "downloads": -1, "filename": "reFILE-0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "97131e34dfb13d053d44597694336a55", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13695, "upload_time": "2015-10-28T16:36:50", "url": "https://files.pythonhosted.org/packages/f5/47/22fdb983c579cbbcec8c416efa8d300cfaa943c569106b253c1ebb53ef31/reFILE-0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ce29d58e66f18205bc8c4b3bb3de69eb", "sha256": "2730d9d81c7520532ae25de3f1a67bbfefe26ea8d9ffd07b61f266f9cc5f86f8" }, "downloads": -1, "filename": "reFILE-0.4.tar.gz", "has_sig": false, "md5_digest": "ce29d58e66f18205bc8c4b3bb3de69eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22978, "upload_time": "2015-10-28T16:36:56", "url": "https://files.pythonhosted.org/packages/ce/58/97c8ae5387325c3144364c8ed3fd80e5071681e2b03f8bf6beab50303228/reFILE-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "6da9f88575206e77342ff96ce0699e41", "sha256": "a4543833dc7df578d276d2224bd6a142dca58bef409f4ff601fe6767c53fa20a" }, "downloads": -1, "filename": "reFILE-0.4.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6da9f88575206e77342ff96ce0699e41", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13780, "upload_time": "2015-10-28T16:52:16", "url": "https://files.pythonhosted.org/packages/dc/1a/5ebd9abbed88e89a17f95190bff802427d370b2da8a403983b8be6564607/reFILE-0.4.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "14efb41d02c892db69173e82aa9d5f1d", "sha256": "110437264bd172257a1c4d407864c4980d4d635d4622f86acaa97d2fcb9f1b9b" }, "downloads": -1, "filename": "reFILE-0.4.1.tar.gz", "has_sig": false, "md5_digest": "14efb41d02c892db69173e82aa9d5f1d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23061, "upload_time": "2015-10-28T16:52:26", "url": "https://files.pythonhosted.org/packages/90/4f/12ebcc6f5c99c586bb8b153d434118de646b1395bec73ecf49932ac54215/reFILE-0.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6da9f88575206e77342ff96ce0699e41", "sha256": "a4543833dc7df578d276d2224bd6a142dca58bef409f4ff601fe6767c53fa20a" }, "downloads": -1, "filename": "reFILE-0.4.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6da9f88575206e77342ff96ce0699e41", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13780, "upload_time": "2015-10-28T16:52:16", "url": "https://files.pythonhosted.org/packages/dc/1a/5ebd9abbed88e89a17f95190bff802427d370b2da8a403983b8be6564607/reFILE-0.4.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "14efb41d02c892db69173e82aa9d5f1d", "sha256": "110437264bd172257a1c4d407864c4980d4d635d4622f86acaa97d2fcb9f1b9b" }, "downloads": -1, "filename": "reFILE-0.4.1.tar.gz", "has_sig": false, "md5_digest": "14efb41d02c892db69173e82aa9d5f1d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23061, "upload_time": "2015-10-28T16:52:26", "url": "https://files.pythonhosted.org/packages/90/4f/12ebcc6f5c99c586bb8b153d434118de646b1395bec73ecf49932ac54215/reFILE-0.4.1.tar.gz" } ] }