Skip to main content

Edge SDK for the Scadable IoT platform

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Scadable Edge SDK

Python SDK for defining devices on the Scadable IoT platform.

Installation

pip install scadable-cli

Usage

Create a config.py for your device:

from scadable.edge import Device, ModbusConnection
from scadable.edge.constants import MODBUS_TCP, FIVE_SEC
from dataclasses import dataclass

@dataclass
class Connection(ModbusConnection):
    host: str = "${DEVICE_HOST}"
    port: int = 502
    slave_id: int = 1

class MyPLC(Device):
    id = "device-001"
    protocol = MODBUS_TCP
    connection = Connection
    frequency = FIVE_SEC

Project Structure

gateways/
    gateway-001/
        device-001/
            config.py
        device-002/
            config.py

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

scadable_cli-0.2.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scadable_cli-0.2.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file scadable_cli-0.2.0.tar.gz.

File metadata

  • Download URL: scadable_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for scadable_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2205072d9b09cc0b260cebd0d4fe4c7e7a17c9d97ab346dc5c6d351d25e3284a
MD5 54ce7d426e68db99a909d1405e69bb68
BLAKE2b-256 b44416fa7ce79175a3ec21e7e586bfefc80dd8787210712afeb76bf73c6c1a03

See more details on using hashes here.

File details

Details for the file scadable_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: scadable_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for scadable_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 635fb03f48473426b7c827639d17ad813bb076574e6ee038f9e06b2d1ac360d1
MD5 5708fdd0c57e2cec48fad18b288329ef
BLAKE2b-256 e52dc5934ef8ab793a45fd1ff7cbb8deffdbd683452ba8a4f652acb8c11c41c8

See more details on using hashes here.

Supported by

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