<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> <span aria-hidden="true" id="installation"></span>

## Installation

```bash
pip install pytransloadit

```

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

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

## Verwendung

```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> <span aria-hidden="true" id="beispiel"></span>

## Beispiel

Vollständig funktionsfähige Beispiele finden Sie unter[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> <span aria-hidden="true" id="dokumentation"></span>

## Dokumentation

Die vollständige API-Dokumentation finden Sie auf [readthedocs⁠](https://transloadit.readthedocs.io).
