Skip to main content

Mbed Cloud Python SDK

Project description

The mbed-cloud-sdk gives developers access to the full Arm Mbed suite using Python.

Prerequisites

Python 2.7.10+ / Python 3.4.3+, built with SSL support.

Use of virtual environments or pipenv is recommended to manage python versions and dependencies.

Installation

pip install mbed-cloud-sdk

Usage

These instructions can also be found in the official documentation:

  1. Create an API key in the Mbed Cloud Portal.

  2. Create a configuration file in your $HOME or project directory (.mbed_cloud_config.json):

    {
        "api_key": "your_api_key_here"
    }
  3. Import the library and you’re ready to go.

    from mbed_cloud.connect import ConnectAPI
    connect_api = ConnectAPI()
    connect_api.list_connected_devices().data[0]
    {
      "id": "Device #1",
      "state": "unenrolled",
      ...
    }
    from mbed_cloud.account_management import AccountManagementAPI
    api = AccountManagementAPI()
    list(api.list_users())[0]
    {
      "email": "username@example.org",
      "full_name": "A.N. Individual",
      ...
    }

Documentation and examples

See the full documentation and API reference at https://cloud.mbed.com/docs/v1.2/mbed-cloud-sdk-python/.

Licence

Mbed Cloud SDK for Python is free to use and licensed under the Apache License 2.0. See LICENCE for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mbed_cloud_sdk-1.2.3.0-py2.py3-none-any.whl (793.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page