<span aria-hidden="true" id="python-sdk-"></span>

# Python SDK

[transloadit/python-sdk⁠](https://github.com/transloadit/python-sdk)

<span aria-hidden="true" id="user-content-python-sdk-install"></span>

<span aria-hidden="true" id="install"></span>

## Install

```bash
pip install pytransloadit

```

<span aria-hidden="true" id="user-content-python-sdk-usage"></span>

<span aria-hidden="true" id="usage"></span>

## Usage

```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'])

```

<span aria-hidden="true" id="user-content-python-sdk-example"></span>

<span aria-hidden="true" id="example"></span>

## Example

For fully working examples, take a look at[examples/⁠](https://github.com/transloadit/python-sdk/tree/HEAD/examples).

<span aria-hidden="true" id="user-content-python-sdk-documentation"></span>

<span aria-hidden="true" id="documentation"></span>

## Documentation

See [readthedocs⁠](https://transloadit.readthedocs.io) for full API documentation.
