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.0.tar.gz (2.9 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.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: echelon_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 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.0.tar.gz
Algorithm Hash digest
SHA256 fc6f5391ee5f986da5ec01fb1109ce0cf03d875ba412586e0450f08324fbd94a
MD5 652fd6c4c28154d1de1473162fc61056
BLAKE2b-256 d420e1e1e687bac0988f5f72b58b2ac076dc6e9de8b145ac6407465a289adb24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: echelon_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dbd9a647c3cdad217f199ac0e6023292a698235b78b3fab633f106cc45756467
MD5 c8403f3da681aa4926c8d548b8477b82
BLAKE2b-256 2604fc321e526bc39239d6027280703f43897b931e6912c9928b0e08c5e9044e

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