{ "info": { "author": "Virgil Dupras", "author_email": "hsoft@hardcoded.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Desktop Environment :: File Managers" ], "description": "==================================================\nSend2Trash -- Send files to trash on all platforms\n==================================================\n\nSend2Trash is a small package that sends files to the Trash (or Recycle Bin) *natively* and on\n*all platforms*. On OS X, it uses native ``FSMoveObjectToTrashSync`` Cocoa calls, on Windows, it\nuses native (and ugly) ``SHFileOperation`` win32 calls. On other platforms, if `PyGObject`_ and\n`GIO`_ are available, it will use this. Otherwise, it will fallback to its own implementation\nof the `trash specifications from freedesktop.org`_.\n\n``ctypes`` is used to access native libraries, so no compilation is necessary.\n\nSend2Trash supports Python 2.7 and up (Python 3 is supported).\n\nInstallation\n------------\n\nYou can download it with pip::\n\n pip install Send2Trash\n\nor you can download the source from http://github.com/hsoft/send2trash and install it with::\n\n >>> python setup.py install\n\nUsage\n-----\n\n>>> from send2trash import send2trash\n>>> send2trash('some_file')\n\nOn Freedesktop platforms (Linux, BSD, etc.), you may not be able to efficiently\ntrash some files. In these cases, an exception ``send2trash.TrashPermissionError``\nis raised, so that the application can handle this case. This inherits from\n``PermissionError`` (``OSError`` on Python 2). Specifically, this affects\nfiles on a different device to the user's home directory, where the root of the\ndevice does not have a ``.Trash`` directory, and we don't have permission to\ncreate a ``.Trash-$UID`` directory.\n\nFor any other problem, ``OSError`` is raised.\n\n.. _PyGObject: https://wiki.gnome.org/PyGObject\n.. _GIO: https://developer.gnome.org/gio/\n.. _trash specifications from freedesktop.org: http://freedesktop.org/wiki/Specifications/trash-spec/\n\n\nChanges\n=======\n\nVersion 1.5.0 -- 2018/02/16\n---------------------------\n\n* More specific error when failing to create XDG fallback trash directory (#20)\n* Windows: Workaround for long paths (#23)\n\nVersion 1.4.2 -- 2017/11/17\n---------------------------\n\n* Fix incompatibility with Python 3.6 on Windows. (#18)\n\nVersion 1.4.1 -- 2017/08/07\n---------------------------\n\n* Fix crash on Windows introduced in v1.4.0. Oops... (#14)\n\nVersion 1.4.0 -- 2017/08/07\n---------------------------\n\n* Use ``bytes`` instead of ``str`` for internal path handling in ``plat_other``. (#13)\n\nVersion 1.3.1 -- 2017/07/31\n---------------------------\n\n* Throw ``WindowsError`` instead of ``OSError`` in ``plat_win``. (#7)\n* Fix ``TypeError`` on python 2 in ``plat_other``. (#12)\n\nVersion 1.3.0 -- 2013/07/19\n---------------------------\n\n* Added support for Gnome's GIO.\n* Merged Python 3 and Python 2 versions in a single codebase.\n\nVersion 1.2.0 -- 2011/03/16\n---------------------------\n\n* Improved ``plat_other`` to follow freedesktop.org trash specification.\n\nVersion 1.1.0 -- 2010/10/18\n---------------------------\n\n* Converted compiled modules to ctypes so that cross-platform compilation isn't necessary anymore.\n\nVersion 1.0.2 -- 2010/07/10\n---------------------------\n\n* Fixed bugs with external volumes in plat_other.\n\nVersion 1.0.1 -- 2010/04/19\n---------------------------\n\n* Fixed memory leak in OS X module.\n\nVersion 1.0.0 -- 2010/04/07\n---------------------------\n\n* Initial Release\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hsoft/send2trash", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "Send2Trash", "package_url": "https://pypi.org/project/Send2Trash/", "platform": "", "project_url": "https://pypi.org/project/Send2Trash/", "project_urls": { "Homepage": "https://github.com/hsoft/send2trash" }, "release_url": "https://pypi.org/project/Send2Trash/1.5.0/", "requires_dist": null, "requires_python": "", "summary": "Send file to trash natively under Mac OS X, Windows and Linux.", "version": "1.5.0" }, "last_serial": 3587748, "releases": { "1.0.0": [], "1.0.1": [], "1.0.2": [], "1.1.0": [ { "comment_text": "", "digests": { "md5": "b0e386572ef212a38ffa469a07b15071", "sha256": "be2f440afbd2377e87d0c2e7c934c493d18ed8986600e8369063946fd3f9a055" }, "downloads": -1, "filename": "Send2Trash-1.1.0.tar.gz", "has_sig": false, "md5_digest": "b0e386572ef212a38ffa469a07b15071", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3862, "upload_time": "2011-02-14T11:01:56", "url": "https://files.pythonhosted.org/packages/e7/3b/2f656712b2b5dc1cefb2006b52a1d9cea0440ecedbf1481c7188816a2f49/Send2Trash-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "c3f2c4ac5496a95452cae48b417c7a9e", "sha256": "9de6d116218650bf24607175cc8e2c2d8a87898491339c13871b0fd462120d04" }, "downloads": -1, "filename": "Send2Trash-1.2.0.tar.gz", "has_sig": false, "md5_digest": "c3f2c4ac5496a95452cae48b417c7a9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5033, "upload_time": "2011-03-16T10:30:50", "url": "https://files.pythonhosted.org/packages/8d/bd/8f13fba8af0c8734ec7ae3511c3fae9678cf0972d7eb64f0168eff45124c/Send2Trash-1.2.0.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "0fe9e60f2da76173d64ab1cdf0fd551b", "sha256": "33f4461eae831eb09a21b70ca202c2a6dfd83db6bafa1e1ca11b5001e22c58fe" }, "downloads": -1, "filename": "Send2Trash-1.3.0.tar.gz", "has_sig": false, "md5_digest": "0fe9e60f2da76173d64ab1cdf0fd551b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5563, "upload_time": "2013-07-19T23:29:21", "url": "https://files.pythonhosted.org/packages/cd/62/e40006ddd56e1b5aa49d343aa2cb3a9014174c237af2cf70011cba173c73/Send2Trash-1.3.0.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "f593b899944f507466f25a881855fad2", "sha256": "c4e297aa23b0a359f239956ac1a5fe6605df53efdcc9d77df75c80a9f21ba5ff" }, "downloads": -1, "filename": "Send2Trash-1.3.1-py3-none-any.whl", "has_sig": true, "md5_digest": "f593b899944f507466f25a881855fad2", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 9497, "upload_time": "2017-07-31T18:22:14", "url": "https://files.pythonhosted.org/packages/58/f9/0a739bfb767959fecaf75243cd67f1fa5d4eb34edb7e22562717e3daf902/Send2Trash-1.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "de458894f7c1eeb4c94d1c26b3c867c0", "sha256": "55b5246f81556853ecdb60f4ce00d5dc25fd7f158944826ccb3f2e828932b240" }, "downloads": -1, "filename": "Send2Trash-1.3.1.tar.gz", "has_sig": true, "md5_digest": "de458894f7c1eeb4c94d1c26b3c867c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5587, "upload_time": "2017-07-31T18:22:13", "url": "https://files.pythonhosted.org/packages/8e/f2/c8965594e46b34fc3dcc7132f4d149aa10b5af57cb47e52a17ee09538b14/Send2Trash-1.3.1.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "df454e51d1f8626dde0788c08c7b81f5", "sha256": "4f4fed83f82ad2185663b7b9ca3d4b07798a47dcb765913182606cbb7396efd2" }, "downloads": -1, "filename": "Send2Trash-1.4.0-py3-none-any.whl", "has_sig": true, "md5_digest": "df454e51d1f8626dde0788c08c7b81f5", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 9852, "upload_time": "2017-08-08T01:35:16", "url": "https://files.pythonhosted.org/packages/9d/58/78431c079c82218eb96eda35e56950d1d3d8672a9c0b1961600463064c33/Send2Trash-1.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0ead156d81c4bb69265406d49dedace7", "sha256": "3ebca0ccdc16b32a424120533efbbb5509f51a9dca71c05f8ee51602738924ab" }, "downloads": -1, "filename": "Send2Trash-1.4.0.tar.gz", "has_sig": true, "md5_digest": "0ead156d81c4bb69265406d49dedace7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5974, "upload_time": "2017-08-08T01:35:14", "url": "https://files.pythonhosted.org/packages/8b/1c/d34a079e469c2a5c950f6ed49e7826088c24980f8407fe9b0e2614d5b474/Send2Trash-1.4.0.tar.gz" } ], "1.4.1": [ { "comment_text": "", "digests": { "md5": "c27b1ca7e8530c984a29a8bb92502bed", "sha256": "a69d90105a1e7f4b4d13d514068f466a75001d18f119a99f1f39d71312994d72" }, "downloads": -1, "filename": "Send2Trash-1.4.1-py3-none-any.whl", "has_sig": true, "md5_digest": "c27b1ca7e8530c984a29a8bb92502bed", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 9983, "upload_time": "2017-08-08T03:15:03", "url": "https://files.pythonhosted.org/packages/14/fc/bd7b5d9fe34f80162f3b9c71d50b4aba26e00217be1ff6bcaf9b243340b1/Send2Trash-1.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ac1473866612061d56417d83ca9c5abf", "sha256": "55e70d96b61a6c05911c96bb14ef313d5dc70d3e0197929dcc868870b58a1196" }, "downloads": -1, "filename": "Send2Trash-1.4.1.tar.gz", "has_sig": true, "md5_digest": "ac1473866612061d56417d83ca9c5abf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6068, "upload_time": "2017-08-08T03:15:01", "url": "https://files.pythonhosted.org/packages/19/fa/c2d97696d2306a9808b0145b7412f66568580ad9998e04c499c1822db832/Send2Trash-1.4.1.tar.gz" } ], "1.4.2": [ { "comment_text": "", "digests": { "md5": "6bee58a10fe51fadcfab90003569d3cc", "sha256": "b308bfafe781617f57b69315f7f0636662405137da667dde3913bf5ff720a3c4" }, "downloads": -1, "filename": "Send2Trash-1.4.2-py3-none-any.whl", "has_sig": true, "md5_digest": "6bee58a10fe51fadcfab90003569d3cc", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 10417, "upload_time": "2017-11-17T18:57:15", "url": "https://files.pythonhosted.org/packages/6c/de/17f0fd21a9d6565b7bf32e4747486bf13603252451887b93b4346c2d2690/Send2Trash-1.4.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3aa42844d608370c9e19d108fdf3782d", "sha256": "725fbce571dffe0b640e2f1788d52c3c544b510f9d8f69b2597c8c2555bc8441" }, "downloads": -1, "filename": "Send2Trash-1.4.2.tar.gz", "has_sig": true, "md5_digest": "3aa42844d608370c9e19d108fdf3782d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6453, "upload_time": "2017-11-17T18:57:13", "url": "https://files.pythonhosted.org/packages/6a/32/7e7f66ed420fabefd7b2f30dd21f4b58689eb080704fc93cfb5319cbc054/Send2Trash-1.4.2.tar.gz" } ], "1.5.0": [ { "comment_text": "", "digests": { "md5": "5a9b5dd1d203c8c6d564e9e7e6818328", "sha256": "f1691922577b6fa12821234aeb57599d887c4900b9ca537948d2dac34aea888b" }, "downloads": -1, "filename": "Send2Trash-1.5.0-py3-none-any.whl", "has_sig": true, "md5_digest": "5a9b5dd1d203c8c6d564e9e7e6818328", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 12076, "upload_time": "2018-02-16T15:00:15", "url": "https://files.pythonhosted.org/packages/49/46/c3dc27481d1cc57b9385aff41c474ceb7714f7935b1247194adae45db714/Send2Trash-1.5.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eccc3563a305b8cb10001ffd1aa92fa0", "sha256": "60001cc07d707fe247c94f74ca6ac0d3255aabcb930529690897ca2a39db28b2" }, "downloads": -1, "filename": "Send2Trash-1.5.0.tar.gz", "has_sig": true, "md5_digest": "eccc3563a305b8cb10001ffd1aa92fa0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10892, "upload_time": "2018-02-16T15:00:13", "url": "https://files.pythonhosted.org/packages/13/2e/ea40de0304bb1dc4eb309de90aeec39871b9b7c4bd30f1a3cdcb3496f5c0/Send2Trash-1.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5a9b5dd1d203c8c6d564e9e7e6818328", "sha256": "f1691922577b6fa12821234aeb57599d887c4900b9ca537948d2dac34aea888b" }, "downloads": -1, "filename": "Send2Trash-1.5.0-py3-none-any.whl", "has_sig": true, "md5_digest": "5a9b5dd1d203c8c6d564e9e7e6818328", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 12076, "upload_time": "2018-02-16T15:00:15", "url": "https://files.pythonhosted.org/packages/49/46/c3dc27481d1cc57b9385aff41c474ceb7714f7935b1247194adae45db714/Send2Trash-1.5.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eccc3563a305b8cb10001ffd1aa92fa0", "sha256": "60001cc07d707fe247c94f74ca6ac0d3255aabcb930529690897ca2a39db28b2" }, "downloads": -1, "filename": "Send2Trash-1.5.0.tar.gz", "has_sig": true, "md5_digest": "eccc3563a305b8cb10001ffd1aa92fa0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10892, "upload_time": "2018-02-16T15:00:13", "url": "https://files.pythonhosted.org/packages/13/2e/ea40de0304bb1dc4eb309de90aeec39871b9b7c4bd30f1a3cdcb3496f5c0/Send2Trash-1.5.0.tar.gz" } ] }