Expand description
Plugin manifest (plugin.toml) parsing and validation.
id = "example_plugin" # ^[a-z0-9][a-z0-9_]{0,63}$
name = "Example Plugin"
version = "1.0.0" # semantic version
description = "Optional description shown in the Plugins panel"
repository = "https://github.com/example/example-plugin"
api = ">=1.0, <2" # optional eov-plugin-api requirement
[environment] # optional; defaults to any eov version
version = ">=1.0.0, <2.0.0" # eov application version requirement
[icon] # optional, for the Plugins panel
kind = "svg"
data = "<svg xmlns='http://www.w3.org/2000/svg'/>"
[ui] # optional
slint = ">=1.17" # Slint version the .slint files need
[[slide_formats]] # optional, repeatable
id = "gradient" # ^[a-z0-9][a-z0-9_-]{0,63}$, unique here
name = "Synthetic gradient slide" # shown in the file picker
extensions = ["gradient"] # file extensions, without the dot
schemes = [] # URI schemes (`omero` for omero://…)The plugin library must be named after the id (lib<id>.so,
lib<id>.dylib or <id>.dll) and sit next to plugin.toml. Unknown keys
are ignored so that manifests written for newer hosts still load (an eov
without slide sources runs a plugin with [[slide_formats]], without its
formats).
Structs§
- Plugin
Environment - Requirements on the host application.
- Plugin
Manifest - The parsed contents of a
plugin.tomlmanifest. - Plugin
Ui - UI requirements.
- Slide
Format Spec - A slide format the plugin reads, declared so that eov
knows its file extensions and URI schemes without running plugin code:
the file picker, the series bar, folder scans and
eov batchoffer them, and opening a matching slide asks the plugin’s slide source.
Constants§
- MANIFEST_
FILENAME - Name of the manifest file inside each plugin directory.
- MAX_
SLIDE_ FORMATS - Most
[[slide_formats]]a manifest may declare. - RESERVED_
SCHEMES - URI schemes no plugin may claim: local files and eov’s own links.
Functions§
- is_
contained_ relative_ path - Whether
pathis relative and stays inside its base directory (no root, drive prefix or..component). - is_
valid_ plugin_ id - Whether
idis a valid plugin id: lowercase ASCII letters, digits and_, starting with a letter or digit, at most 64 characters.