Cloud IoT API API client library
Project description
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:
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
Read the Client Library Documentation for Cloud IoT API to see other available methods on the client.
Read the Product documentation to learn more about the product and see How-to Guides.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file google-cloud-iot-2.4.0.tar.gz
.
File metadata
- Download URL: google-cloud-iot-2.4.0.tar.gz
- Upload date:
- Size: 66.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e403aeac9fd7220805a374193902a244da5b707c1dac8b8c05b1de603034d353 |
|
MD5 | 4d5e1c54db7a57bf8c0ea3d87d177314 |
|
BLAKE2b-256 | b1d4bb7d8e105db4e72187a704ad646d9850ef26a43cd695f4a3e7ac7d9c1c03 |
File details
Details for the file google_cloud_iot-2.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: google_cloud_iot-2.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 63.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 227ad0baacdd106f9b71a9eb4ee1f4ef58ea56afe5e127c9f03d321d477fbb68 |
|
MD5 | 0212f4a40025b3ec948f1eef997e8478 |
|
BLAKE2b-256 | f33800d62a3d235dd2e5f971ee8c6f74c589191658cb5049113896fabe087c07 |