Plug in API - czcorpus/kontext GitHub Wiki

Plug-ins specification

Plug-in API

When talking about plug-ins, both KonText documentation and source code use two similar terms which must be clarified first:

  • PluginApi is a proxy object providing access to functions related to a currently processed request/action. It is typically passed as the first argument of plug-in interface methods.
  • Plug-in interface is an interface of a specific plug-in type (sessions, db, taghelper,...).

Plug-in vs. controller

Plug-in API (kontext.PluginApi class)

The PluginApi is instantiated "per request".

KonText plug-ins interfaces

⚠️ **GitHub.com Fallback** ⚠️