{ "info": { "author": "Brad Robel-Forrest", "author_email": "brad@bitpony.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "===============================\nGarbageTruck\n===============================\n\n.. image:: https://img.shields.io/pypi/v/garbagetruck.svg\n :target: https://pypi.python.org/pypi/garbagetruck\n\n.. image:: https://img.shields.io/travis/bradrf/garbagetruck.svg\n :target: https://travis-ci.org/bradrf/garbagetruck\n\n.. image:: https://readthedocs.org/projects/garbagetruck/badge/?version=latest\n :target: https://garbagetruck.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/bradrf/garbagetruck/shield.svg\n :target: https://pyup.io/repos/github/bradrf/garbagetruck/\n :alt: Updates\n\nA small tool to periodically move old files into the local file system trash.\n\n* Free software: MIT license\n* Full documentation (including how to install): https://garbagetruck.readthedocs.io.\n\n\nFeatures\n--------\n\nUse `GarbageTruck` to build and maintain scheduled cleanup of files in various directories that tend\nto collect files over time. `GarbageTruck` will send any files older than a relative period to the\nlocal file system trash using the current user's crontab to schedule checks for old files from\ncron_. This makes the utility safe in that any files moved to the trash could be restored simply\nwithout worrying about immediate loss (until the trash is emptied, of course).\n\nFor example, let's say one never cleans out their downloaded files. Here's how to set a\n`GarbageTruck` job to periodically move files older than six months into the trash::\n\n $ garbagetruck set --older-than '6 months' --check-every day 'Clean out old downloads' ~/Downloads/\n\nThis will set up a schedule (using cron_) to look for files each day that are older than three\nmontsh and have them moved into the correct trash (courtesy of send2trash_). The details can be\nshown like this::\n\n $ garbagetruck -l debug list\n [2016-09-03T15:55:32-0700 #31693] INFO garbagetruck Job 57d1db0a8b8427c3041ac1af89b0a348: name=\"Clean out old downloads\" dirs=[\"/Users/brad/Downloads\"] files_older_than=\"3 months\" check_every=\"day\"\n [2016-09-03T15:55:32-0700 #31693] DEBUG garbagetruck * 1 * * * /Users/brad/.virtualenvs/garbage_truck/bin/garbagetruck run 57d1db0a8b8427c3041ac1af89b0a348 # GarbageTruck: Clean out old downloads\n\nEach call to the `set` command will replace the same named job. Alternatively, if the job is no\nlonger useful, remove it like this::\n\n $ garbagetruck remove 'Clean out old downloads'\n\nTo check on a job, any problems and results will be logged to one of the following locations:\n\n* OS X will use :code:`~/Library/Logs/garbagetruck.log`.\n* Other systems will rely on what click_app_dir_ returns.\n\n\nCredits\n---------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _cron: https://pypi.python.org/pypi/python-crontab\n.. _send2trash: https://github.com/hsoft/send2trash\n.. _click_app_dir: http://click.pocoo.org/6/api/#click.get_app_dir\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n\n=======\nHistory\n=======\n\n0.1.0 (2016-09-02)\n------------------\n\n* First release on PyPI.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bradrf/garbagetruck", "keywords": "garbagetruck", "license": "MIT license", "maintainer": null, "maintainer_email": null, "name": "garbagetruck", "package_url": "https://pypi.org/project/garbagetruck/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/garbagetruck/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bradrf/garbagetruck" }, "release_url": "https://pypi.org/project/garbagetruck/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "A small tool to periodically move old files into the local file system trash.", "version": "0.1.0" }, "last_serial": 2323514, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "c554055ace4c0f821e4568a23efeea33", "sha256": "ae7c33eba4b00c409420f6540ab9bf7da8e21c058a6516c61ec574c49c72fbde" }, "downloads": -1, "filename": "garbagetruck-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c554055ace4c0f821e4568a23efeea33", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 9846, "upload_time": "2016-09-04T00:20:24", "url": "https://files.pythonhosted.org/packages/f1/11/1f4964a43e2fd6b97244bf886b2a890dd57ccd2c1d22de3da8d92e2eba17/garbagetruck-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6c2b3a7ebfe0aa9a681ff85f71ce1ada", "sha256": "bec7750203a78389f6ea31959c03fe1c2ebfc678593606dac02d792afcbf27ce" }, "downloads": -1, "filename": "garbagetruck-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6c2b3a7ebfe0aa9a681ff85f71ce1ada", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24395, "upload_time": "2016-09-04T00:20:21", "url": "https://files.pythonhosted.org/packages/09/db/c76b81cd64a229b05ba91004dddef8259ca231d4e032b92b61cd7e7a529c/garbagetruck-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c554055ace4c0f821e4568a23efeea33", "sha256": "ae7c33eba4b00c409420f6540ab9bf7da8e21c058a6516c61ec574c49c72fbde" }, "downloads": -1, "filename": "garbagetruck-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c554055ace4c0f821e4568a23efeea33", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 9846, "upload_time": "2016-09-04T00:20:24", "url": "https://files.pythonhosted.org/packages/f1/11/1f4964a43e2fd6b97244bf886b2a890dd57ccd2c1d22de3da8d92e2eba17/garbagetruck-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6c2b3a7ebfe0aa9a681ff85f71ce1ada", "sha256": "bec7750203a78389f6ea31959c03fe1c2ebfc678593606dac02d792afcbf27ce" }, "downloads": -1, "filename": "garbagetruck-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6c2b3a7ebfe0aa9a681ff85f71ce1ada", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24395, "upload_time": "2016-09-04T00:20:21", "url": "https://files.pythonhosted.org/packages/09/db/c76b81cd64a229b05ba91004dddef8259ca231d4e032b92b61cd7e7a529c/garbagetruck-0.1.0.tar.gz" } ] }