# yatrash
Safely move files into a trash can instead of `rm`.
OS Independent, as long as your OS supports Python's `pathlib` and `shutil`.
Now living on [Github][5]
## Detailed usage
```
$ trash --help
usage: __main__.py [-h] [--trash-dir TRASH_DIR]
[trash_files [trash_files ...]]
...
see the real --help for more
```
## Why do we need another trash utility?
This is mostly for self-educational purposes.
If you actually want a trash utility, see [trash-cli][1] which
implements the [xdg trash specification][2], so it will play nicely
with your Desktop's trash and other tools. It also features more
utilities, such as recover.
## Origin
- [CodeReview][3]
- [Github Gist][4]
- [Github Repository][4] (current home)
[1]: https://pypi.org/project/trash-cli/
[2]: http://www.ramendik.ru/docs/trashspec.html
[3]: https://gist.github.com/charmoniumQ/0c5fe34dbb5b3905440a3b06c4f60634
[4]: https://codereview.stackexchange.com/questions/188842/safely-trash-instead-of-rm
[5]: https://github.com/charmoniumQ/yatrash/
Raw data
{
"_id": null,
"home_page": "https://github.com/charmoniumQ/yatrash/",
"name": "yatrash",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6.0",
"maintainer_email": "",
"keywords": "",
"author": "Samuel Grayson",
"author_email": "sam@samgrayson.me",
"download_url": "https://files.pythonhosted.org/packages/aa/29/6d7698527e3e4b2086a545c6ff02c75f9a4ec416a1dffd82f8816a575a75/yatrash-0.1.3.tar.gz",
"platform": null,
"description": "# yatrash\nSafely move files into a trash can instead of `rm`.\n\nOS Independent, as long as your OS supports Python's `pathlib` and `shutil`.\n\nNow living on [Github][5]\n\n## Detailed usage\n\n```\n$ trash --help\nusage: __main__.py [-h] [--trash-dir TRASH_DIR]\n [trash_files [trash_files ...]]\n\n...\nsee the real --help for more\n```\n\n## Why do we need another trash utility?\n\nThis is mostly for self-educational purposes.\n\nIf you actually want a trash utility, see [trash-cli][1] which\nimplements the [xdg trash specification][2], so it will play nicely\nwith your Desktop's trash and other tools. It also features more\nutilities, such as recover.\n\n## Origin\n\n- [CodeReview][3]\n- [Github Gist][4]\n- [Github Repository][4] (current home)\n\n[1]: https://pypi.org/project/trash-cli/\n[2]: http://www.ramendik.ru/docs/trashspec.html\n[3]: https://gist.github.com/charmoniumQ/0c5fe34dbb5b3905440a3b06c4f60634\n[4]: https://codereview.stackexchange.com/questions/188842/safely-trash-instead-of-rm\n[5]: https://github.com/charmoniumQ/yatrash/\n",
"bugtrack_url": null,
"license": "",
"summary": "Safely move files into a trash can instead of `rm`.",
"version": "0.1.3",
"project_urls": {
"Homepage": "https://github.com/charmoniumQ/yatrash/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "07e136dc5d24f57d2107ecb0ca768531e24bfde0b2d08f725647a2a397cb78e2",
"md5": "bebc98fcd85b036c27f0fe6d939425e3",
"sha256": "854196f622f05d5ed6570747db7c5f44b915766f126cb5a443f72e7035b7ab07"
},
"downloads": -1,
"filename": "yatrash-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bebc98fcd85b036c27f0fe6d939425e3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6.0",
"size": 16442,
"upload_time": "2023-06-12T04:34:53",
"upload_time_iso_8601": "2023-06-12T04:34:53.597133Z",
"url": "https://files.pythonhosted.org/packages/07/e1/36dc5d24f57d2107ecb0ca768531e24bfde0b2d08f725647a2a397cb78e2/yatrash-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "aa296d7698527e3e4b2086a545c6ff02c75f9a4ec416a1dffd82f8816a575a75",
"md5": "94e06a5b6f6ec693846c9173f74d95f4",
"sha256": "29247a1d1c3fe60abbab9d9326f9be7bdc7f768647a8e4577b156ca73e392f59"
},
"downloads": -1,
"filename": "yatrash-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "94e06a5b6f6ec693846c9173f74d95f4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6.0",
"size": 15635,
"upload_time": "2023-06-12T04:34:54",
"upload_time_iso_8601": "2023-06-12T04:34:54.626884Z",
"url": "https://files.pythonhosted.org/packages/aa/29/6d7698527e3e4b2086a545c6ff02c75f9a4ec416a1dffd82f8816a575a75/yatrash-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-12 04:34:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "charmoniumQ",
"github_project": "yatrash",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "yatrash"
}