Metadata-Version: 2.1
Name: pytransloadit
Version: 0.1.12
Summary: A Python Integration for https://transloadit.com file uploading and encoding service.
Home-page: http://github.com/transloadit/python-sdk/
Author: Ifedapo Olarewaju
Author-email: ifedapoolarewaju@gmail.com
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
Requires-Dist: requests (>=2.18.4)
Requires-Dist: six (>=1.11.0)
Requires-Dist: tuspy (>=0.2.3)
Provides-Extra: dev
Requires-Dist: tox (>=2.3.1) ; extra == 'dev'
Requires-Dist: sphinx-autobuild (==0.7.1) ; extra == 'dev'
Requires-Dist: Sphinx (==1.7.1) ; extra == 'dev'
Provides-Extra: test
Requires-Dist: requests-mock (>=1.3.0) ; extra == 'test'
Requires-Dist: mock (>=2.0.0) ; extra == 'test'
Requires-Dist: coverage (>=4.2) ; extra == 'test'
Requires-Dist: pytest (>=3.0.3) ; extra == 'test'
Requires-Dist: pytest-cov (>=2.3.1) ; extra == 'test'

|Build Status|

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.

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://travis-ci.org/transloadit/python-sdk.svg?branch=master
   :target: https://travis-ci.org/transloadit/python-sdk


