Skip to main content

Plugin SDK for the Echelon platform

Project description

echelon-sdk

Python SDK for building Echelon plugins.

Install

pip install echelon-sdk

Usage

from echelon import EchelonPlugin, StopPropagation

class MyPlugin(EchelonPlugin):
    def init(self):
        self.on("message:incoming", self.on_message)

    def on_message(self, ctx: dict) -> dict:
        ctx["content"] = ctx["content"].strip()
        return ctx

    def shutdown(self):
        self.log.info("goodbye")

Place your plugin in {workdir}/plugins/<id>/ with a manifest.json alongside the entrypoint. Echelon loads it automatically on startup with hot-reload on file changes.

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

echelon_sdk-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

echelon_sdk-0.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file echelon_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: echelon_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.13 Linux/6.19.14-arch1-1

File hashes

Hashes for echelon_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 96f8e38fee6c41ed3d65789290cc2fc21e9826d7748015c5c99ceae5877f444d
MD5 acd437d43ed29301cf452b3f236bba27
BLAKE2b-256 058cbc1f176afb45dbd6103fafc150bb7c5981641f9b013f39b1fecca4fcea72

See more details on using hashes here.

File details

Details for the file echelon_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: echelon_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.13 Linux/6.19.14-arch1-1

File hashes

Hashes for echelon_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b29309285fc736a94da16b34bb5e58fc8f3ae07ea6f06092441e5450fe1ab84f
MD5 1fa8c7811b223c4559de08df04d709ac
BLAKE2b-256 351be0fbc216202bb5e19a230e79bcc67fe7f0653e214d7b047dddf131ec518f

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