Python client for the Tinify API, used for TinyPNG and TinyJPG. Tinify compresses your images intelligently. Read more at http://tinify.com.
Go to the documentation for the Python client.
Install the API client:
pip install tinify
import tinify
tinify.key = 'YOUR_API_KEY'
tinify.from_file('unoptimized.png').to_file('optimized.png')
pip install -r requirements.txt -r test-requirements.txt
py.test
To test more runtimes, tox can be used
tox
pip install -r requirements.txt -r test-requirements.txt
TINIFY_KEY=$YOUR_API_KEY py.test test/integration.py
This software is licensed under the MIT License. View the license.