Python plugin SDK for Wox launcher
Project description
Wox Plugin Python
This package provides type definitions for developing Wox plugins in Python.
Requirements
- Python >= 3.8 (defined in
pyproject.toml) - Python 3.12 recommended for development (defined in
.python-version)
Installation
# Using pip
pip install wox-plugin
# Using uv (recommended)
uv add wox-plugin
Usage
from wox_plugin import BasePlugin, Query, Result, Context, PluginInitParams
class MyPlugin(BasePlugin):
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
results = []
results.append(
Result(
title="Hello Wox",
subtitle="This is a sample result",
icon="path/to/icon.png",
score=100
)
)
return results
# MUST HAVE! The plugin class will be automatically loaded by Wox
plugin = MyPlugin()
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wox_plugin-0.0.64.tar.gz
(39.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wox_plugin-0.0.64.tar.gz.
File metadata
- Download URL: wox_plugin-0.0.64.tar.gz
- Upload date:
- Size: 39.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7377cf06e5b90696781b70e5fb0fdec365c40cd4088040aef0b32e3a8e1ee21d
|
|
| MD5 |
18565ba87795c858aa3d9b452bea803b
|
|
| BLAKE2b-256 |
c00f10cc187a752ef67173db4d477858b51b102f2d4112dd24c34eeb656416b3
|
File details
Details for the file wox_plugin-0.0.64-py3-none-any.whl.
File metadata
- Download URL: wox_plugin-0.0.64-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e45ced46a010e5a0579f7ec77b3509a337b85d13bbbf14ee28798f491beba88
|
|
| MD5 |
7762292101bc6ed186d2b9f6d7c10954
|
|
| BLAKE2b-256 |
b03eedec146fec3929897ee3274747a3c61ce07ed11275463e9367e35a19d50e
|