Skip to main content

Cloud IoT API API client library

Project description

GA pypi versions

Cloud IoT API: Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform.

Quick Start

In order to use this library, you first need to go through the following steps:

  1. Select or create a Cloud Platform project.

  2. Enable billing for your project.

  3. Enable the Cloud IoT API.

  4. Setup Authentication.

Installation

Install this library in a virtualenv using pip. virtualenv is a tool to create isolated Python environments. The basic problem it addresses is one of dependencies and versions, and indirectly permissions.

With virtualenv, it’s possible to install this library without needing system install permissions, and without clashing with the installed system dependencies.

Supported Python Versions

Python >= 3.6

Deprecated Python Versions

Python == 2.7.

The last version of this library compatible with Python 2.7 is google-cloud-iot==1.0.0.

Mac/Linux

pip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install google-cloud-iot

Windows

pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install google-cloud-iot

Preview

DeviceManagerClient

from google.cloud import iot_v1

client = iot_v1.DeviceManagerClient()

parent = client.location_path('[PROJECT]', '[LOCATION]')


# Iterate over all results
for element in client.list_device_registries(parent):
    # process element
    pass

# Or iterate over results one page at a time
for page in client.list_device_registries(parent).pages:
    for element in page:
        # process element
        pass

Next Steps

Project details


Download files

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

Source Distribution

google-cloud-iot-2.0.0.tar.gz (67.3 kB view details)

Uploaded Source

Built Distribution

google_cloud_iot-2.0.0-py2.py3-none-any.whl (68.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file google-cloud-iot-2.0.0.tar.gz.

File metadata

  • Download URL: google-cloud-iot-2.0.0.tar.gz
  • Upload date:
  • Size: 67.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for google-cloud-iot-2.0.0.tar.gz
Algorithm Hash digest
SHA256 e06342b691f1dd7ec5ebb15df1747918bdd717ad6414d711d45b42122c099b70
MD5 d2a8aa082c58d09e75df0590ef2ba839
BLAKE2b-256 26c2e5941b04201f169cf7f01f866f7c3a29681c38c9ef6f974f760993b77186

See more details on using hashes here.

File details

Details for the file google_cloud_iot-2.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: google_cloud_iot-2.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 68.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for google_cloud_iot-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e1c39061cc106e9dc255bb564cc15b724c8227eeb646799d8e98b0752b649685
MD5 f15d9ad166327c9e8e7f3e3881b1ac82
BLAKE2b-256 6fd7f1ee8035161743fc2a53d386f14ff7cd0e5dc231f44bca95d737bb67f0d0

See more details on using hashes here.

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