{"id":20159552,"url":"https://github.com/transloadit/python-sdk","last_synced_at":"2025-06-19T00:04:25.273Z","repository":{"id":37445160,"uuid":"92270907","full_name":"transloadit/python-sdk","owner":"transloadit","description":"Python integration for Transloadit","archived":false,"fork":false,"pushed_at":"2025-06-10T05:58:22.000Z","size":1064,"stargazers_count":14,"open_issues_count":1,"forks_count":8,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-06-10T06:33:57.032Z","etag":null,"topics":["encoding","python","transloadit","uploading"],"latest_commit_sha":null,"homepage":null,"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/transloadit.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":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-05-24T08:49:25.000Z","updated_at":"2025-06-10T05:58:25.000Z","dependencies_parsed_at":"2024-03-25T15:50:45.580Z","dependency_job_id":"41e232bc-a10d-45f5-b129-3af3512252c4","html_url":"https://github.com/transloadit/python-sdk","commit_stats":{"total_commits":151,"total_committers":10,"mean_commits":15.1,"dds":0.5695364238410596,"last_synced_commit":"9077ef2bf7ade7b2aa2e7474d874269bfab147a3"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/transloadit/python-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transloadit%2Fpython-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transloadit%2Fpython-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transloadit%2Fpython-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transloadit%2Fpython-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/transloadit","download_url":"https://codeload.github.com/transloadit/python-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transloadit%2Fpython-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260654627,"owners_count":23042672,"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","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":["encoding","python","transloadit","uploading"],"created_at":"2024-11-14T00:08:56.563Z","updated_at":"2025-06-19T00:04:20.248Z","avatar_url":"https://github.com/transloadit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status](https://github.com/transloadit/python-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/transloadit/python-sdk/actions/workflows/ci.yml)\n[![Coverage](https://codecov.io/gh/transloadit/python-sdk/branch/main/graph/badge.svg)](https://codecov.io/gh/transloadit/python-sdk)\n\n# Transloadit python-sdk\n\nA **Python** Integration for [Transloadit](https://transloadit.com)'s file uploading and encoding service.\n\n## Intro\n\n[Transloadit](https://transloadit.com) is a service that helps you handle file uploads, resize, crop and watermark your images, make GIFs, transcode your videos, extract thumbnails, generate audio waveforms, and so much more. In short, [Transloadit](https://transloadit.com) is the Swiss Army Knife for your files.\n\nThis is a **Python** SDK to make it easy to talk to the [Transloadit](https://transloadit.com) REST API.\n\nOnly Python 3.9+ versions are supported.\n\n## Install\n\n```bash\npip install pytransloadit\n```\n\n## Usage\n\n```python\nfrom transloadit import client\n\ntl = client.Transloadit('TRANSLOADIT_KEY', 'TRANSLOADIT_SECRET')\nassembly = tl.new_assembly()\nassembly.add_file(open('PATH/TO/FILE.jpg', 'rb'))\nassembly.add_step('resize', '/image/resize', {'width': 70, 'height': 70})\nassembly_response = assembly.create(retries=5, wait=True)\n\nprint(assembly_response.data.get('assembly_id'))\n\n# or\nprint(assembly_response.data['assembly_id'])\n```\n\n## Example\n\nFor fully working examples, take a look at [`examples/`](https://github.com/transloadit/python-sdk/tree/HEAD/examples).\n\n## Documentation\n\nSee [readthedocs](https://transloadit.readthedocs.io) for full API documentation.\n\n## Contributing\n\n### Running tests\n\nIf you have a global installation of `poetry`, you can run the tests with:\n\n```bash\npoetry run pytest --cov=transloadit tests\n```\n\nIf you can't use a global installation of `poetry`, e.g. when using Nix Home Manager, you can create a Python virtual environment and install Poetry there:\n\n```bash\npython -m venv .venv \u0026\u0026 source .venv/bin/activate \u0026\u0026 pip install poetry \u0026\u0026 poetry install\n```\n\nThen to run the tests:\n\n```bash\nsource .venv/bin/activate \u0026\u0026 poetry run pytest --cov=transloadit tests\n```\n\nGenerate a coverage report with:\n\n```bash\npoetry run pytest --cov=transloadit --cov-report=html tests\n```\n\nThen view the coverage report locally by opening `htmlcov/index.html` in your browser.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransloadit%2Fpython-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftransloadit%2Fpython-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransloadit%2Fpython-sdk/lists"}