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
Release history Release notifications | RSS feed
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.2.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file echelon_sdk-0.1.2.tar.gz.
File metadata
- Download URL: echelon_sdk-0.1.2.tar.gz
- Upload date:
- Size: 3.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b211f32fbad28b1935e928ddf2595236402b33648a70fe059aaf38d09a98353f
|
|
| MD5 |
a05d5b6e66d15325caed2e7ade546842
|
|
| BLAKE2b-256 |
072a4a055ffd3bb5fa35a7eb768d20fe05fe80a3042cc34ff3500f837ec776ac
|
File details
Details for the file echelon_sdk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: echelon_sdk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d9ab35928e29857163d03cfd7e8121e8ecf9eb9a6c5bee94bf7767a928df6ad
|
|
| MD5 |
caf964949f2c41a2030f8b44d335f6c8
|
|
| BLAKE2b-256 |
6ef6957960a33a1a353cf86ab2a87734f500e5d2b72e31c7ac074790f6b76221
|