Metadata-Version: 2.1
Name: pytransloadit
Version: 0.2.0
Summary: A Python Integration for https://transloadit.com file uploading and encoding service.
Home-page: http://github.com/transloadit/python-sdk/
Author: Ifedapo Olarewaju
Maintainer: Arnaud Limbourg
License: MIT
Platform: any
Classifier: Programming Language :: Python
Classifier: Natural Language :: English
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Internet :: File Transfer Protocol (FTP)
Classifier: Topic :: Communications :: File Sharing
Classifier: Topic :: Multimedia :: Video :: Conversion
Classifier: Topic :: Multimedia :: Sound/Audio :: Conversion
Provides-Extra: test
Provides-Extra: dev
License-File: LICENSE

|Build status|

Transloadit python-sdk
======================

A **Python** Integration for
`Transloadit <https://transloadit.com>`__\ ’s file uploading and
encoding service.

Intro
-----

`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.

This is a **Python** SDK to make it easy to talk to the
`Transloadit <https://transloadit.com>`__ REST API.

Only Python 3.6+ versions are supported.

Install
-------

.. code:: bash

   pip install pytransloadit

Usage
-----

.. code:: python

   from transloadit import client

   tl = client.Transloadit('TRANSLOADIT_KEY', 'TRANSLOADIT_SECRET')
   assembly = tl.new_assembly()
   assembly.add_file(open('PATH/TO/FILE.jpg', 'rb'))
   assembly.add_step('resize', '/image/resize', {'width': 70, 'height': 70})
   assembly_response = assembly.create(retries=5, wait=True)

   print(assembly_response.data.get('assembly_id'))

   # or
   print(assembly_response.data['assembly_id'])

Example
-------

For fully working examples, take a look at
```examples/`` <https://github.com/transloadit/python-sdk/tree/master/examples>`__.

Documentation
-------------

See `readthedocs <https://transloadit.readthedocs.io>`__ for full API
documentation.

.. |Build status| image:: https://github.com/transloadit/python-sdk/actions/workflows/ci.yml/badge.svg
   :target: https://github.com/transloadit/python-sdk/actions/workflows/ci.yml
