3lc-compute-plugin-sdk
Plugins are how you extend the 3LC Hub — your own importers, exporters, training jobs, and data tools, appearing in the Hub right next to the built-ins. This SDK is everything a plugin needs: one small Python package to program against, while the Hub takes care of discovery, isolation, serving, and job orchestration.
pip install 3lc-compute-plugin-sdk # import name: tlc_plugin_sdk
Distribution
3lc-compute-plugin-sdk· importtlc_plugin_sdk.
What it gives you
ComputePlugin— the base class you subclass. Implementcompute/get_ui_fragment; job and lifecycle hooks ship as no-op defaults. There is noregister()to call — a plugin's metadata lives in its[tool.tlc-compute]manifest, and the host discovers it from there.JobContext— the surface a long-running job programs against:progress/metric/log/resultfor the generic job panel,emitfor your plugin's own rich UI, and cooperativecancelled.- The worker (
python -m tlc_plugin_sdk.worker) — serves your plugin's Litestar route handlers + the generic reserved routes as an ASGI app, identically whether the host runs it in-process or out-of-process in its own venv. tlc_plugin_sdk.shared.*— batteries the heavy plugins share: URL-alias registration, config storage/UI, the generic-job helpers, image/label/modality utilities, script injection.
Quickstart
See docs/plugin-guide.md for the full author guide (manifest
format, custom routes, the job model, UI fragment, checklist).
The contract version
tlc_plugin_sdk.SDK_CONTRACT_VERSION is this package's own version — one source of truth.
A plugin pins the SDK (3lc-compute-plugin-sdk>=X,<Y) and declares the contract it targets via its
manifest. The host implements a contract range and the SDK version is the lingua franca that
both sides agree on. Versions are SemVer; see Status below for the 0.x stability stance.
Boundary (the one rule)
The SDK is the root of the plugin dependency graph: it depends only on 3lc + uvicorn +
litestar, and never on the host (3lc-compute) or on any plugin. If your plugin only
needs tlc_plugin_sdk, it is portable across host versions and can run in its own isolated venv.
Status
0.2 is the released contract line. Within 0.x the contract evolves additively only:
symbols and schemas that exist keep working, and anything breaking waits for a major bump. In
the browser bridge, PLUGIN_API.libs.io is a stable part of the contract; the other bundled
libs are best-effort (see the guide).
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 3lc_compute_plugin_sdk-0.2.2.tar.gz.
File metadata
- Download URL: 3lc_compute_plugin_sdk-0.2.2.tar.gz
- Upload date:
- Size: 212.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ea35283816eed16446ee2f953de0c045dbeb8c0d14b06859465186ebbcaf14e
|
|
| MD5 |
d8da6e66dfa78cd351043607c8fef0e0
|
|
| BLAKE2b-256 |
7b13090ad33df1b6cf4922ab8a074f04ea6d35620524f76100e5ef1d3f78dfd3
|
File details
Details for the file 3lc_compute_plugin_sdk-0.2.2-py3-none-any.whl.
File metadata
- Download URL: 3lc_compute_plugin_sdk-0.2.2-py3-none-any.whl
- Upload date:
- Size: 70.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77d58630a3c68c61545f0ef316b8dc44a44778bd78301fd07147d5c7c41f4a50
|
|
| MD5 |
b26a3c8256e96a5169a56423525af5c2
|
|
| BLAKE2b-256 |
94011ddaf676093e05c40425fe0574efab787213cfe7ddcf32d843f99c9ebe14
|