Skip to main content

iot.io Client

iot.io Overview

This project aims to create a lightweight and intuitive system for connecting IoT devices to a central server for small IoT system implementations and hobbyists.

The framework focuses on providing easy to use system of libraries so the end user does not need to understand the protocol implementation, though this also is fairly simple.

The format of the framework is somewhat reminiscent of Socket.IO where handlers functions are defined and executed and run as events are triggered.

Quickstart Guide (Client)

This is an example of a simple IoTClient instance which connects to a server accepting "echo" clients ping the server every 5 seconds with a message and print the server's response.

from iotio_client import IoTClient
import threading
import time

# create client
client = IoTClient("echo_test_client", "echo")


# define a handler for "echo_response" events
@client.on("echo_response")
def echo(data):
    print("'echo_response' from Server: '" + str(data) + "'\n")


def send():
    client.ensure_open()

    # loop while client is connected
    while client.connected:
        message = input("Enter a value to send to the server: ")

        # send message over the echo channel
        client.send("echo", message)
        print("")
        time.sleep(1)


# start background send task
send_thread = threading.Thread(None, send)
send_thread.start()

# connect client
client.run("localhost:5000", use_tls=False)
send_thread.join()

If you would like to see the matching quick-start guide for an example server go here.

Metadata

Release files for iot.io-client 0.4.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iot.io-client 0.4.12
File Size Uploaded Provenance
iot.io-client-0.4.12.tar.gz 10.0 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for iot.io-client 0.4.12
File Interpreter ABI Platform
iot.io_client-0.4.12-py3.8.egg Legacy Egg format - - Details
iot.io_client-0.4.12-py3-none-any.whl Python 3 none any Details

Total release size: 42.1 kB

Release files / iot.io-client-0.4.12.tar.gz

Download URL iot.io-client-0.4.12.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bb8ad11fea16e9568f08d44bbd82ae6bd3324da1fa3afd6ff064f57114932f03
BLAKE2b-256 checksum
How to use checksums
72bf29e1342a0664591b6c97c50f8e4aefeddb3e53f7e4142f944cf861a271a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

Release files / iot.io_client-0.4.12-py3.8.egg

Download URL iot.io_client-0.4.12-py3.8.egg
Size 15.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
d2c9a34afe8dc5f2ee70eb38c72ad32945bb9dfd05980ca1f91196b19c5509f1
BLAKE2b-256 checksum
How to use checksums
fb7dedfbc1a7663150c0c42fe80a08ac23617f8bf530991805e4f86ea16ece2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

Release files / iot.io_client-0.4.12-py3-none-any.whl

Download URL iot.io_client-0.4.12-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3716f1b86055f06cf439a08dd3ef778632716974601c79084c838dc375072030
BLAKE2b-256 checksum
How to use checksums
74cfa017ee26fad9648e8269b96c1bdbb8cb33fd39c7540d8eddfbd9c50c28d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

Security for iot.io-client 0.4.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page