{"id":18917783,"url":"https://github.com/tus/tus-py-client","last_synced_at":"2026-04-08T14:32:52.437Z","repository":{"id":38357073,"uuid":"68359659","full_name":"tus/tus-py-client","owner":"tus","description":"A Python client for the tus resumable upload protocol","archived":false,"fork":false,"pushed_at":"2026-01-26T07:56:53.000Z","size":243,"stargazers_count":201,"open_issues_count":9,"forks_count":45,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-02-23T01:18:59.412Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://tus.io/","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/tus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-09-16T07:09:36.000Z","updated_at":"2026-02-05T10:15:06.000Z","dependencies_parsed_at":"2025-04-14T08:20:27.232Z","dependency_job_id":null,"html_url":"https://github.com/tus/tus-py-client","commit_stats":{"total_commits":154,"total_committers":29,"mean_commits":5.310344827586207,"dds":0.4285714285714286,"last_synced_commit":"bcb032d544b0061f9217ca2f72e4c0abc43d05e3"},"previous_names":["ifedapoolarewaju/tus-py-client"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/tus/tus-py-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tus%2Ftus-py-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tus%2Ftus-py-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tus%2Ftus-py-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tus%2Ftus-py-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tus","download_url":"https://codeload.github.com/tus/tus-py-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tus%2Ftus-py-client/sbom","scorecard":{"id":482052,"data":{"date":"2025-08-11","repo":{"name":"github.com/tus/tus-py-client","commit":"e786fa850f0d8e0a2bd137dd91b5fef7c7b703a7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Code-Review","score":3,"reason":"Found 9/27 approved changesets -- score normalized to 3","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":"Maintained","score":2,"reason":"1 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/CI.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":"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":"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/CI.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/tus/tus-py-client/CI.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/tus/tus-py-client/CI.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/CI.yml:24","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 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":"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":"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":"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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 14 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-19T16:53:23.040Z","repository_id":38357073,"created_at":"2025-08-19T16:53:23.040Z","updated_at":"2025-08-19T16:53:23.040Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31559840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-11-08T10:28:08.171Z","updated_at":"2026-04-08T14:32:52.414Z","avatar_url":"https://github.com/tus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tus-py-client [![Build Status](https://github.com/tus/tus-py-client/actions/workflows/CI.yml/badge.svg)](https://github.com/tus/tus-py-client/actions/workflows/CI.yml)\n\n\u003e **tus** is a protocol based on HTTP for _resumable file uploads_. Resumable\n\u003e means that an upload can be interrupted at any moment and can be resumed without\n\u003e re-uploading the previous data again. An interruption may happen willingly, if\n\u003e the user wants to pause, or by accident in case of a network issue or server\n\u003e outage.\n\n**tus-py-client** is a Python client for uploading files using the _tus_ protocol to any remote server supporting it.\n\n## Documentation\n\nSee documentation here: http://tus-py-client.readthedocs.io/en/latest/\n\n## Get started\n\n```bash\npip install tuspy\n```\n\nNow you are ready to use the api.\n\n```python\nfrom tusclient import client\n\n# Set Authorization headers if it is required\n# by the tus server.\nmy_client = client.TusClient('http://tusd.tusdemo.net/files/',\n                              headers={'Authorization': 'Basic xxyyZZAAbbCC='})\n\n# Set more headers.\nmy_client.set_headers({'HEADER_NAME': 'HEADER_VALUE'})\n\nuploader = my_client.uploader('path/to/file.ext', chunk_size=200)\n\n# A file stream may also be passed in place of a file path.\nfs = open('path/to/file.ext', mode=)\nuploader = my_client.uploader(file_stream=fs, chunk_size=200)\n\n# Upload a chunk i.e 200 bytes.\nuploader.upload_chunk()\n\n# Uploads the entire file.\n# This uploads chunk by chunk.\nuploader.upload()\n\n# you could increase the chunk size to reduce the\n# number of upload_chunk cycles.\nuploader.chunk_size = 800\nuploader.upload()\n\n# Continue uploading chunks till total chunks uploaded reaches 1000 bytes.\nuploader.upload(stop_at=1000)\n```\n\nIf the upload url is known and the client headers are not required, uploaders can also be used standalone.\n\n```python\nfrom tusclient.uploader import Uploader\n\nmy_uploader = Uploader('path/to/file.ext',\n                       url='http://tusd.tusdemo.net/files/abcdef123456',\n                       chunk_size=200)\n```\n\n## Development\n\nIf you want to work on tus-py-client internally, follow these few steps:\n\n1. Setup virtual environment and install dependencies\n\n   ```bash\n   python -m venv env/\n   source env/bin/activate\n   pip install -e .[test]\n   ```\n\n2. Running tests\n\n   ```bash\n   pytest\n   ```\n\n3. Releasing a new version (see https://realpython.com/pypi-publish-python-package/)\n\n   ```bash\n   # Update version in tusclient/__init__.py\n   vim tusclient/__init__.py\n\n   # Update changelogs\n   vim CHANGELOG.md\n\n   pytest\n\n   # Commit and tag\n   git commit -m 'v1.2.3'\n   git tag v1.2.3\n\n   # Build and release\n   pip install build twine\n   python -m build\n   twine check dist/*\n   twine upload dist/*\n\n   # Then: make release on GitHub\n   ```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftus%2Ftus-py-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftus%2Ftus-py-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftus%2Ftus-py-client/lists"}