mirror of https://github.com/Wox-launcher/Wox
![]() |
||
---|---|---|
.. | ||
wox_plugin | ||
README.md | ||
publish.py | ||
publish.sh | ||
setup.py |
README.md
Wox Plugin Python
This package provides type definitions for developing Wox plugins in Python.
Installation
pip install wox-plugin
Usage
from wox_plugin import Plugin, Query, Result, Context, PluginInitParams
class MyPlugin(Plugin):
async def init(self, ctx: Context, params: PluginInitParams) -> None:
self.api = params.API
async def query(self, ctx: Context, query: Query) -> list[Result]:
# Your plugin logic here
return []
License
MIT