{ "info": { "author": "stiftcast", "author_email": "stiftcast@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# mtsort\nA cross-platform module for sorting files by time.\n\n[![PyPI version](https://badge.fury.io/py/mtsort.svg)](https://badge.fury.io/py/mtsort)\n[![GitHub license](https://img.shields.io/github/license/stiftcast/mtsort.svg)](https://github.com/stiftcast/mtsort/blob/master/LICENSE)\n\n\nGets last modification time from file(s) and folder(s), \nthen moves them to a new directory, sorting them in new\nfolders. These folder names are in 'yyyy-mm-dd' format.\n\nUseful for sorting large collections of files, which would be otherwise\ntedious to do manually!\n\nTested and confirmed working on Python 3.6 and above.\n\n## Installation\n pip install mtsort\n\nor with the installation script:\n\n python3 setup.py install\n\n## Examples\n\n**Moving files:**\n\n >>> import mtsort\n >>> mtsort.mtmove('/home/test/sourcedir', '/home/test/destdir')\n\nResults in:\n\n```\n before: after:\n . .\n |-- destdir |-- destdir\n |-- sourcedir | |-- 2016-07-29 \n |-- file1 | | |-- file1\n |-- file2 | |-- 2016-07-30\n |-- file3 | | |-- file2\n | |-- 2016-07-31\n | |-- file3\n |-- sourcedir\n``` \n**Copying files:**\n\n >>> import mtsort\n >>> mtsort.mtcopy('/home/test/sourcedir', '/home/test/destdir')\n\nResults in:\n\n```\n before: after:\n . .\n |-- destdir |-- destdir\n |-- sourcedir | |-- 2016-07-29 \n |-- file1 | | |-- file1\n |-- file2 | |-- 2016-07-30\n |-- file3 | | |-- file2\n | |-- 2016-07-31\n | |-- file3\n |-- sourcedir\n |-- file1\n |-- file2\n |-- file3\n```\n\n\nAlternatively, you can simply launch the script on its own, or from the command line to use it:\n\nfrom terminal:\n\n $ mtsort\n\nfrom cmd or Powershell:\n\n C:\\> py -m mtsort\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/stiftcast/mtsort", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "mtsort", "package_url": "https://pypi.org/project/mtsort/", "platform": "", "project_url": "https://pypi.org/project/mtsort/", "project_urls": { "Homepage": "https://github.com/stiftcast/mtsort" }, "release_url": "https://pypi.org/project/mtsort/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "A cross-platform module for sorting files by time.", "version": "1.0.1" }, "last_serial": 4118380, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "c250b80b610b60bcef07683794510313", "sha256": "31300df38b578c234a6137f033ae855bbac2bf3f34994f71cbca63cc4790b0f8" }, "downloads": -1, "filename": "mtsort-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c250b80b610b60bcef07683794510313", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3748, "upload_time": "2018-07-31T00:19:12", "url": "https://files.pythonhosted.org/packages/5c/ed/22c5fda93669e918e8b079d17cf35c4c9afeb00ba92e4aaba156cd0e1346/mtsort-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d492177732cf12cde959623b9c550959", "sha256": "269e265cfb2eec60b246cf3bdfb595ed16fd0880fed2f4d72d7f3c472ff448c5" }, "downloads": -1, "filename": "mtsort-1.0.1.tar.gz", "has_sig": false, "md5_digest": "d492177732cf12cde959623b9c550959", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3291, "upload_time": "2018-07-31T00:19:13", "url": "https://files.pythonhosted.org/packages/60/20/decad78b6ca2a504ec3a49524e3db47263ccf2bf667d1eca08ea5fd7d59a/mtsort-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c250b80b610b60bcef07683794510313", "sha256": "31300df38b578c234a6137f033ae855bbac2bf3f34994f71cbca63cc4790b0f8" }, "downloads": -1, "filename": "mtsort-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c250b80b610b60bcef07683794510313", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3748, "upload_time": "2018-07-31T00:19:12", "url": "https://files.pythonhosted.org/packages/5c/ed/22c5fda93669e918e8b079d17cf35c4c9afeb00ba92e4aaba156cd0e1346/mtsort-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d492177732cf12cde959623b9c550959", "sha256": "269e265cfb2eec60b246cf3bdfb595ed16fd0880fed2f4d72d7f3c472ff448c5" }, "downloads": -1, "filename": "mtsort-1.0.1.tar.gz", "has_sig": false, "md5_digest": "d492177732cf12cde959623b9c550959", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3291, "upload_time": "2018-07-31T00:19:13", "url": "https://files.pythonhosted.org/packages/60/20/decad78b6ca2a504ec3a49524e3db47263ccf2bf667d1eca08ea5fd7d59a/mtsort-1.0.1.tar.gz" } ] }