{"id":49091050,"url":"https://github.com/nstrydom2/anonfile-api","last_synced_at":"2026-04-20T18:42:47.640Z","repository":{"id":40362681,"uuid":"170742129","full_name":"nstrydom2/anonfile-api","owner":"nstrydom2","description":"An unofficial Python Anonfiles.com API","archived":false,"fork":false,"pushed_at":"2026-02-03T04:09:47.000Z","size":15305,"stargazers_count":64,"open_issues_count":2,"forks_count":24,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-02-03T18:09:46.619Z","etag":null,"topics":["anon","anonfile","anonfile-api","anonfiles","anonymous","api","file-download","file-upload","pypi","python","rest-client"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nstrydom2.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["nstrydom2"]}},"created_at":"2019-02-14T18:56:45.000Z","updated_at":"2026-02-03T04:09:53.000Z","dependencies_parsed_at":"2024-06-21T03:33:23.563Z","dependency_job_id":"69b404f8-3f21-41b7-97b5-7f504e6f52b6","html_url":"https://github.com/nstrydom2/anonfile-api","commit_stats":{"total_commits":241,"total_committers":7,"mean_commits":34.42857142857143,"dds":0.4771784232365145,"last_synced_commit":"2175e6fd2b79607017038a4441a9ff323e0b9105"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/nstrydom2/anonfile-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstrydom2%2Fanonfile-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstrydom2%2Fanonfile-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstrydom2%2Fanonfile-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstrydom2%2Fanonfile-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nstrydom2","download_url":"https://codeload.github.com/nstrydom2/anonfile-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstrydom2%2Fanonfile-api/sbom","scorecard":{"id":697423,"data":{"date":"2025-08-11","repo":{"name":"github.com/nstrydom2/anonfile-api","commit":"2175e6fd2b79607017038a4441a9ff323e0b9105"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":5,"reason":"Found 6/12 approved changesets -- score normalized to 5","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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-package.yml:1","Warn: no topLevel permission defined: .github/workflows/python-publish.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":"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: MIT 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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-package.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/nstrydom2/anonfile-api/python-package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-package.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/nstrydom2/anonfile-api/python-package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/nstrydom2/anonfile-api/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/nstrydom2/anonfile-api/python-publish.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:34","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:35","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:36","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:37","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:38","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:28","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:29","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:30","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:31","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:32","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  10 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":"Branch-Protection","score":5,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'master'","Info: 'force pushes' disabled on branch 'master'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'master'","Warn: 'stale review dismissal' is disabled on branch 'master'","Warn: required approving review count is 1 on branch 'master'","Warn: codeowners review is required - but no codeowners file found in repo","Warn: 'last push approval' is disabled on branch 'master'","Warn: no status checks found to merge onto branch 'master'","Info: PRs are required in order to make changes on branch 'master'"],"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":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 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-22T04:09:14.803Z","repository_id":40362681,"created_at":"2025-08-22T04:09:14.804Z","updated_at":"2025-08-22T04:09:14.804Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32060846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["anon","anonfile","anonfile-api","anonfiles","anonymous","api","file-download","file-upload","pypi","python","rest-client"],"created_at":"2026-04-20T18:42:46.830Z","updated_at":"2026-04-20T18:42:47.634Z","avatar_url":"https://github.com/nstrydom2.png","language":"Python","funding_links":["https://github.com/sponsors/nstrydom2"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"https://github.com/nstrydom2/anonfile-api\" title=\"Project Logo\"\u003e\r\n    \u003cimg height=\"150\" style=\"margin-top:15px\" src=\"https://raw.githubusercontent.com/nstrydom2/anonfile-api/master/logo.svg\"\u003e\r\n  \u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n# Anonfiles.com Unofficial Python API\r\n\r\n[![PyPI version shields.io](https://img.shields.io/pypi/v/anonfile)](https://pypi.python.org/pypi/anonfile/)\r\n[![CI](https://github.com/nstrydom2/anonfile-api/actions/workflows/python-package.yml/badge.svg?branch=master)](https://github.com/nstrydom2/anonfile-api/actions/workflows/python-package.yml)\r\n[![PyPI download total](https://img.shields.io/pypi/dm/anonfile)](https://pypi.python.org/pypi/anonfile/)\r\n[![PyPI pyversions](https://img.shields.io/pypi/pyversions/anonfile)](https://pypi.python.org/pypi/anonfile/)\r\n[![PyPI license](https://img.shields.io/pypi/l/anonfile)](https://pypi.python.org/pypi/anonfile/)\r\n\r\n\r\nThis unofficial Python API was created to make uploading and downloading files\r\nfrom https://anonfiles.com simple and effective for programming in Python. The goal of\r\nthe project is to create an intuitive library for anonymous file sharing.\r\n\r\n## Getting Started\r\n\r\nThese instructions will get you a copy of the project up and running on your local\r\nmachine for development and testing purposes. See deployment for notes on how to\r\ndeploy the project on a live system.\r\n\r\n### Prerequisites\r\n\r\nPython 3.8+ is required to run this application, other than that there are no\r\nprerequisites for the project, as the dependencies are included in the repository.\r\n\r\n### Installing\r\n\r\nTo install the library is as simple as running\r\n\r\n```bash\r\npip install anonfile\r\n```\r\n\r\nfrom the command line. To install this library in debug mode with dev dependencies, use\r\n\r\n```bash\r\npip install -e .[dev]\r\n```\r\n\r\ninstead. It is recommended to create an virtual environment prior\r\nto installing this library. If you only intend to use this library from the CLI,\r\nuse [pipx](https://pypa.github.io/pipx/) for the installation instead:\r\n\r\n```bash\r\npipx install anonfile\r\n```\r\n\r\n### Dev Notes\r\n\r\nRun unit tests locally:\r\n\r\n```bash\r\npytest --verbose -s [--token \"REDACTED\"]\r\n```\r\n\r\nAdd the `-k test_*` option if you want to test only a single function.\r\n\r\n## Usage\r\n\r\nImport the module and instantiate the `AnonFile()` constructor. Setting the download\r\ndirectory in `path` is optional. Using the API `token` in the constructor is optional\r\nas well. A valid `token` registers all file uploads online, i.e. a list of all uploaded\r\nfiles is made accessible to any user that [signs into your account](https://anonfiles.com/login).\r\n\r\n```python\r\nfrom anonfile import AnonFile\r\n\r\nanon = AnonFile()\r\n\r\n# upload a file and enable progressbar terminal feedback (off by default)\r\nupload = anon.upload('/home/guest/jims_paperwork.doc', progressbar=True)\r\nprint(upload.url.geturl())\r\n\r\n# download a file and set the download directory\r\nfrom pathlib import Path\r\ntarget_dir = Path.home().joinpath('Downloads')\r\ndownload = anon.download(\"https://anonfiles.com/9ee1jcu6u9/test_txt\", path=target_dir)\r\nprint(download.file_path)\r\n```\r\n\r\nAnd voilà, pain-free anonymous file sharing. If you want more information about\r\nthe `AnonFile` API visit [anonfiles.com](https://anonfiles.com/docs/api).\r\n\r\n## Command Line Interface\r\n\r\n```bash\r\n# open help page for specific commands\r\nanonfile [download|upload|preview|log] --help\r\n\r\n# note: both methods expect at least one argument, but can take on more\r\nanonfile download --url https://anonfiles.com/93k5x1ucu0/test_txt\r\nanonfile upload --file ./test.txt\r\n```\r\n\r\n## Built With\r\n\r\n* [Requests](http://docs.python-requests.org/en/master/) - Http for Humans\r\n* [TQDM](https://github.com/tqdm/tqdm) - Fast \u0026 Extensible Progress Bars\r\n* [anonfiles.com](https://anonfiles.com/docs/api) - AnonFiles.com REST API\r\n\r\n## Versioning\r\n\r\nNavigate to [tags on this repository](https://github.com/nstrydom2/anonfile-api/tags)\r\nto see all available versions.\r\n\r\n## Authors\r\n\r\n| Name             | Mail Address                | GitHub Profile                                |\r\n|------------------|-----------------------------|-----------------------------------------------|\r\n| Nicholas Strydom | nstrydom@gmail.com          | [nstrydom2](https://github.com/nstrydom2)     |\r\n\r\nSee also the list of [contributors](https://github.com/nstrydom2/anonfile-api/contributors)\r\nwho participated in this project.\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for more details.\r\n\r\n## Acknowledgments\r\n\r\n* Joseph Marie Jacquard\r\n* Charles Babbage\r\n* Ada Lovelace\r\n* My Dad\r\n* Hat tip to anyone whose code was used\r\n* Inspiration\r\n* etc\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstrydom2%2Fanonfile-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnstrydom2%2Fanonfile-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstrydom2%2Fanonfile-api/lists"}