Last updated: May 29, 2024

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

# Releasing our official Python SDK

![Ifedapo Olarewaju](/assets/images/teammates/ife.jpeg?dpl=dpl_6nhQNS5wkVkPZWuKMzXcWrAHNJL5)

**Ifedapo Olarewaju**

Developer · Lagos, Nigeria · Show bio

[](https://x.com/ifedapolarewaju)[](https://github.com/ifedapoolarewaju)

And the SDKs keep rolling in! 😄 Yet again, we are proudly announcing another official SDK release. Guess who is joining our list this time around? (HINT: 🐍)

That's right, it's our brand new, fully featured Python SDK!

![Welcoming our brand new Python SDK](/_next/static/immutable/media/2017-08-python.1ugdw66ii9-8v.png)

Like the [Java SDK](/blog/2017/05/java-sdk-release.md), this one also comes with the following features:

* Create an Assembly (of course). This comes with full support for [tus⁠](https://tus.io)resumable uploads, which is great for when you are uploading large files on an unreliable network.
* Get an Assembly
* Cancel the execution of an Assembly
* List Assemblies
* Create a Template
* Update a Template
* Delete a Template
* List Templates
* Get a Template
* Get the monthly bill for your account

Here are a few quick steps to help you get started:

**1.** Install the SDK with pip

```bash
pip install pytransloadit

```

Now head to your code editor and let's get started!

**2.** Import the `transloadit.client` module, and instantiate the `Transloadit` class. This will require you to enter your [API credentials](/c/template-credentials/):

```python
from transloadit import client

tl = client.Transloadit('YOUR_TRANSLOADIT_KEY', 'YOUR_TRANSLOADIT_SECRET')

```

**3.** Create a new Assembly instance and add the file that you want to upload, along with your preferred Assembly Steps and Instructions, in order to process it. After doing so, your code should look like this:

```python
from transloadit import client

tl = client.Transloadit('YOUR_TRANSLOADIT_KEY', 'YOUR_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})

```

**4.** Submit the Assembly to Transloadit by calling the `create` method. This method enables [tus'⁠](https://tus.io) resumable uploads by default. You can also choose to add the `wait`(boolean) parameter in order to wait for the encoding to finish before getting a response.

```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(wait=True)

print assembly_response.data.get('assembly_id')

```

And there you have it: in fewer than ten lines, you have saved the world! 🌍

For more detailed documentation and examples, please take a look at:

* Examples: [https://github.com/transloadit/python-sdk/tree/master/examples⁠](https://github.com/transloadit/python-sdk/tree/master/examples)
* Source code: [https://github.com/transloadit/python-sdk⁠](https://github.com/transloadit/python-sdk)
* Documentation: [https://transloadit.readthedocs.io/en/latest/⁠](https://transloadit.readthedocs.io/en/latest/)

We hope you are as excited about these releases as we are!

[#integrations](/blog/tags/integrations.md)[#python-sdk](/blog/tags/python-sdk.md)

### 👩‍💻 Join 20k+ developers

Sign up for our [monthly newsletter](/newsletters.md) to receive direct links to 3 exclusive tech — and 2 product updates. No less, no more.

Your email:

Get access

## File uploading and encoding. Made simple.

Transloadit streamlines file handling for developers, trusted by brands like Coursera and The New York Times. We’re known for a reliable API, top-notch support, and a strong commitment to open source, with projects like [Uppy⁠](https://uppy.io) and [Tus⁠](https://tus.io) setting standards in file processing.

[Sign up](/c/)[Book a Demo](https://survey.typeform.com/to/kRg47Xi5)

No credit card needed · 5 GB included in the free plan

Cancel anytime
