Wox/Wox.Plugin.Python
qianlifeng a21dd8d509
Enhance Python host functionality
2024-12-05 23:07:22 +08:00
..
wox_plugin Enhance Python host functionality 2024-12-05 23:07:22 +08:00
README.md Enhance Python host functionality 2024-12-05 23:07:22 +08:00
publish.py Enhance Python host functionality 2024-12-05 23:07:22 +08:00
publish.sh Enhance Python host functionality 2024-12-05 23:07:22 +08:00
setup.py Enhance Python host functionality 2024-12-05 23:07:22 +08:00

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