Skip to main content

Getting started with the emnify Python SDK


The emnify Python SDK is open source and the source code is available on GitHub.


Install from source code

git clone
cd emnify-sdk-python
python install

Install with pip

The emnify Python SDK is also available on PyPI as emnify-sdk:

pip install emnify-sdk


Create an application token

To use the Python SDK, you need to create an application token. You can do this on the Integrations page of the emnify Portal under Application Tokens or the emnify REST API.

Once created, you'll apply it to initiate the SDK.

Use the SDK


# Import the package
from emnify import EMnify

# Initiate the SDK instance using your application token
emnify = EMnify(TOKEN)

# Execute a command against the desired API
devices = emnify.devices.get_devices_list()

# Show all the devices
print([device for device in devices])

Replace APP_TOKEN with your application token.

Explore more

Now that you have the SDK configured, it's time to learn what you can do with it.

If you're new to IoT connectivity and emnify, start by learning the common terminology and concepts.

Once you're comfortable with these concepts, you can explore some use cases that show what the SDK is capable of based on a few Examples.

Also, see the emnify System Documentation and our OpenAPI specification.