{"id":18896140,"url":"https://github.com/tinify/tinify-python","last_synced_at":"2025-04-05T02:12:46.814Z","repository":{"id":35642217,"uuid":"39916633","full_name":"tinify/tinify-python","owner":"tinify","description":"Python client for the Tinify API.","archived":false,"fork":false,"pushed_at":"2025-03-28T09:37:21.000Z","size":295,"stargazers_count":133,"open_issues_count":0,"forks_count":23,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-28T10:35:45.110Z","etag":null,"topics":["image-compression","image-optimization","python","python-client","tinyjpg","tinypng"],"latest_commit_sha":null,"homepage":"https://tinypng.com/developers","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/tinify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.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}},"created_at":"2015-07-29T21:12:43.000Z","updated_at":"2025-03-28T09:37:25.000Z","dependencies_parsed_at":"2024-11-08T08:34:14.279Z","dependency_job_id":null,"html_url":"https://github.com/tinify/tinify-python","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinify","download_url":"https://codeload.github.com/tinify/tinify-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276189,"owners_count":20912288,"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":["image-compression","image-optimization","python","python-client","tinyjpg","tinypng"],"created_at":"2024-11-08T08:32:40.383Z","updated_at":"2025-04-05T02:12:46.787Z","avatar_url":"https://github.com/tinify.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![MIT License](http://img.shields.io/badge/license-MIT-green.svg) ](https://github.com/tinify/tinify-python/blob/main/LICENSE)\n[![CI](https://github.com/tinify/tinify-python/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/tinify/tinify-python/actions/workflows/ci-cd.yml)\n[![PyPI](https://img.shields.io/pypi/v/tinify)](https://pypi.org/project/tinify/#history)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/tinify)](https://pypi.org/project/tinify/)\n[![PyPI - Wheel](https://img.shields.io/pypi/wheel/tinify)](https://pypi.org/project/tinify/)\n\n\n# Tinify API client for Python\n\nPython client for the Tinify API, used for [TinyPNG](https://tinypng.com) and [TinyJPG](https://tinyjpg.com). Tinify compresses your images intelligently. Read more at [http://tinify.com](http://tinify.com).\n\n## Documentation\n\n[Go to the documentation for the Python client](https://tinypng.com/developers/reference/python).\n\n## Installation\n\nInstall the API client:\n\n```\npip install tinify\n```\n\n## Usage\n\n```python\nimport tinify\ntinify.key = 'YOUR_API_KEY'\n\ntinify.from_file('unoptimized.png').to_file('optimized.png')\n```\n\n## Running tests\n\n```\npip install -r requirements.txt -r test-requirements.txt\npy.test\n```\n\nTo test more runtimes, tox can be used\n\n```\ntox\n```\n\n\n\n### Integration tests\n\n```\npip install -r requirements.txt -r test-requirements.txt\nTINIFY_KEY=$YOUR_API_KEY py.test test/integration.py\n```\n\n## License\n\nThis software is licensed under the MIT License. [View the license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinify%2Ftinify-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinify%2Ftinify-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinify%2Ftinify-python/lists"}