Skip to main content

An unofficial Python Client library for the Helium Console API.

Project description

PyPI version example workflow

py-helium-console-client

An unofficial Python Client library for the Helium Console API. Please see the API Specification for full details.

Installation

The package can be installed via pip:

pip install py_helium_console_client

Usage

To use the Console API, you will first need to generate an API Key from the 'My Account' tab in the Helium Console web interface. Use this key to initialize the ConsoleClient class. This wrapper exposes any of the methods in the specification (at the time of writing), which includes programmatic access for creating, querying, and deleting devices and labels.

Some example commands are shown below. See examples.py for full usage.

from py_helium_console_client import ConsoleClient

API_KEY = 'PASTE_API_KEY_HERE'

client = ConsoleClient(API_KEY)

# list devices on account
devices = client.get_devices()

# search for a device by uuid
uuid_device = client.get_device_by_uuid(devices[0].id)

# get device events
events = client.get_device_events(devices[0].id)

# create device
created_device = client.create_device(name='python-client-test-device',
                              app_key='850AFDC6F1CF2397D3FEAB8C1850E6E1',
                              app_eui='B21C36EBBDC0D75F',
                              dev_eui='ABA47D469E1021AF')

# list labels
labels = client.get_labels()

# create label
created_label = client.create_label('python-client-test-label')

# search for label by id
queried_label = client.search_for_label(created_label.id)

# add label to device
add_label_result = client.add_device_label(created_device.id, created_label.id)

# remove label from device
remove_label_result = client.remove_device_label(created_device.id, created_label.id)

# delete device
deleted_device_result = client.delete_device(created_device.id)

# delete label
deleted_label_result = client.delete_label(created_label.id)

Contributing

This is a small project that I use for developing my own applications on the Helium Network. Please feel free to submit an issue or a PR if you find bugs or have suggestions!

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

py-helium-console-client-0.1.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

py_helium_console_client-0.1.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file py-helium-console-client-0.1.2.tar.gz.

File metadata

  • Download URL: py-helium-console-client-0.1.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.7.9 Windows/10

File hashes

Hashes for py-helium-console-client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 71c60bf1c259cccd231ab0a04f70b3e9798b6f107a3292ffd56e65cf83e5cb2a
MD5 2f98b4b770592589fd60125b0af9ffc4
BLAKE2b-256 32881ec5fa78d7bc9cc297ebec00a6585b903599c6bf24b85da372dd4bf34f99

See more details on using hashes here.

File details

Details for the file py_helium_console_client-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for py_helium_console_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d6138257dcf16c3b54b4e380e24f5bc91ced3e5bb42af5181fe2c4c2b3c320c2
MD5 45f540169b8d71e9742b4691256ca3c1
BLAKE2b-256 9a5e0a57e016017f7815a0baf2e4bbdb2cb3aabf57154b74c058f8ef75d5eeb5

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