{"id":13534523,"url":"https://github.com/arsenetar/send2trash","last_synced_at":"2025-12-11T22:49:01.292Z","repository":{"id":47375817,"uuid":"11538225","full_name":"arsenetar/send2trash","owner":"arsenetar","description":"Python library to natively send files to Trash (or Recycle bin) on all platforms.","archived":false,"fork":false,"pushed_at":"2025-10-24T01:17:16.000Z","size":206,"stargazers_count":293,"open_issues_count":34,"forks_count":46,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-12-11T00:37:29.306Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arsenetar.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2013-07-19T22:13:14.000Z","updated_at":"2025-12-01T07:43:18.000Z","dependencies_parsed_at":"2024-01-14T01:23:22.692Z","dependency_job_id":"5e11fadc-ee1a-42da-88a2-71b8320f863d","html_url":"https://github.com/arsenetar/send2trash","commit_stats":{"total_commits":151,"total_committers":20,"mean_commits":7.55,"dds":0.6026490066225165,"last_synced_commit":"91d06989678ecd78ec8878d527ba70f59b60a45b"},"previous_names":["hsoft/send2trash"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/arsenetar/send2trash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsenetar%2Fsend2trash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsenetar%2Fsend2trash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsenetar%2Fsend2trash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsenetar%2Fsend2trash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arsenetar","download_url":"https://codeload.github.com/arsenetar/send2trash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsenetar%2Fsend2trash/sbom","scorecard":{"id":208579,"data":{"date":"2025-08-11","repo":{"name":"github.com/arsenetar/send2trash","commit":"9a2c5bc6902843eb95f78ef3709aecc40b06f834"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"name":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":2,"reason":"Found 5/22 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/default.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/arsenetar/send2trash/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/arsenetar/send2trash/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/arsenetar/send2trash/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/arsenetar/send2trash/codeql-analysis.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/default.yml:18","Warn: pipCommand not pinned by hash: .github/workflows/default.yml:19","Warn: pipCommand not pinned by hash: .github/workflows/default.yml:58","Warn: pipCommand not pinned by hash: .github/workflows/default.yml:59","Warn: pipCommand not pinned by hash: .github/workflows/default.yml:67","Info:   4 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T00:17:58.689Z","repository_id":47375817,"created_at":"2025-08-17T00:17:58.689Z","updated_at":"2025-08-17T00:17:58.689Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27654641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-11T02:00:11.302Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T07:01:35.400Z","updated_at":"2025-12-11T22:49:01.273Z","avatar_url":"https://github.com/arsenetar.png","language":"Python","funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"==================================================\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 or can use pyobjc \nwith NSFileManager. On Windows, it uses native ``IFileOperation`` call if on Vista or newer and \npywin32 is installed or falls back to ``SHFileOperation`` calls. On other platforms, if `PyGObject`_ \nand `GIO`_ are available, it will use this.  Otherwise, it will fallback to its own implementation of \nthe `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\nStatus: Additional Help Welcome\n-------------------------------\n\nAdditional help is welcome for supporting this package.  Specifically help with the OSX and Linux \nissues and fixes would be most appreciated.\n\nInstallation\n------------\n\nYou can download it with pip:\n\n    python -m pip install -U send2trash\n\nTo install with pywin32 or pyobjc required specify the extra `nativeLib`:\n\n    python -m pip install -U send2trash[nativeLib]\n\nor you can download the source from http://github.com/arsenetar/send2trash and install it with::\n\n    \u003e\u003e\u003e python setup.py install\n\nUsage\n-----\n\n\u003e\u003e\u003e from send2trash import send2trash\n\u003e\u003e\u003e send2trash('some_file')\n\u003e\u003e\u003e send2trash(['some_file1', 'some_file2'])\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsenetar%2Fsend2trash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farsenetar%2Fsend2trash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsenetar%2Fsend2trash/lists"}