Skip to main content

Examples

The following examples show you how to use the emnify Python SDK.

The source code for each example is available in the emnify-sdk-python GitHub repository.

ExampleDescription
Get your first device onlineConnect an emnify SIM to your device and configure the APN to access the internet.
Initialize the SDK clientImport dependencies and initialize the SDK using an application token.
Create and activate a deviceAssign an unassigned SIM, create a new device with defined parameters, and activate it.
Configure a deviceRetrieve a device's details and adjust its attributes, like the name and tags.
Configure the operator blacklistAdd or remove operators from the blacklist.
Disable a deviceChange a device status to disabled.
Delete a deviceDisable and delete a device with specific ID.
Filter a list of SIM cardsReturn all SIMs for a specific customer organization.
Sort all devicesReturn a list of devices sorted by last updated date.
Manage device connectivityReset the device or network connectivity and check the connectivity status.