AISC Plugin Interface
This repository provides the base interface for writing evaluation plugins.
If you are new to the platform, start here:
That guide covers:
- the plugin contract and discovery model
- how to create a plugin project
- how to implement configuration, inputs, metrics, and progress reporting
- optional integration hooks and current extension points
- common failure modes and architectural feedback areas
Quick Start
Create a new plugin project:
mkdir my-aisc-plugin
cd my-aisc-plugin
uv init --lib --python 3.12
uv add aisc-plugin-interface
Implement a plugin class that inherits from BaseEvaluationPlugin[T], then export it from your package __init__.py.
Minimal example:
from typing import Any
from pydantic import BaseModel, Field
from aisc_plugin_interface import BaseEvaluationPlugin, Measure, metric
class ConfigFormSchema(BaseModel):
threshold: float = Field(default=0.5, ge=0.0, le=1.0)
class MyPlugin(BaseEvaluationPlugin[ConfigFormSchema]):
def evaluate(self, config_data: dict) -> Any:
# Dependencies only used during evaluation should be imported locally here
import numpy as np
# Access configuration form data
config: ConfigFormSchema = self.validate_config_form_data(config_data)
threshold: float = config.threshold
# Your evaluation logic here
# Use self.logger for logging
self.logger.info("Evaluation completed successfully")
return {"MyMetric": [0.99, 0.5, 0.67], "OtherMetric": [0.01, 0.22, 0.77]}
@metric("MyMetric")
def my_metric(self, evaluation_output: Any) -> list[Measure]:
if not evaluation_output:
return []
values = evaluation_output.get("MyMetric", [])
return [Measure(name="MyMetric", score=value) for value in values]
Export it:
from .plugin import MyPlugin
__all__ = ["MyPlugin"]
For the full development workflow, use the guide above.
License
This project is licensed under the Apache License 2.0.
© 2024–2026 Université du Luxembourg and Luxembourg Institute of Science and Technology (LIST). Originally developed within the SerVal Research Group and the Interdisciplinary Centre for Security, Reliability and Trust (SnT).
Release files for aisc-plugin-interface 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aisc_plugin_interface-0.3.0.tar.gz | 18.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aisc_plugin_interface-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.9 kB
Release files / aisc_plugin_interface-0.3.0.tar.gz
| Download URL | aisc_plugin_interface-0.3.0.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc8d1115bbad7a4202d03c106c4ab084107b02dbb1b31fcf0881159e54aba4ac
|
|
BLAKE2b-256 checksum How to use checksums |
88880d8e08c11e3b3bcfac68c8180b5df9f9cda53c1a666c4c2afec7348f73b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / aisc_plugin_interface-0.3.0-py3-none-any.whl
| Download URL | aisc_plugin_interface-0.3.0-py3-none-any.whl |
|---|---|
| Size | 28.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d9f6de9ddbc1ed4f978c557e66a37a03a58b167b773aff48609c91759799aab
|
|
BLAKE2b-256 checksum How to use checksums |
0478c19bb8bd82f0903e22bc616a1fbd3e0fec86a909c36382da586f13e6e88c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|