Snippet API for Python#

class eot.wowool.snippet.Snippet#
__init__(source: str, engine: eot.wowool.native.core.engine.Engine)#

Initialize the Snippet application

Parameters
  • source – The Wowool source code

  • source – str

__call__(document: eot.wowool.document.document.Document, diagnostics: eot.wowool.diagnostic.Diagnostics) eot.wowool.document.document.Document#
Parameters

document (Document) – The document to be processed and enriched with the annotations from the snippet

Returns

The given document with the new annotations. See the JSON format