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.70.tar.gz
(66.7 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.70.tar.gz.
File metadata
- Download URL: wox_plugin-0.0.70.tar.gz
- Upload date:
- Size: 66.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13897b100ca5c4180decb57d20afdd1382b28accb55b343e19b0daa7917161a4
|
|
| MD5 |
567a2bf88241032e7625a9811b9ad104
|
|
| BLAKE2b-256 |
ed8797b05bbfc6bc7b863f7db60f99e239d2a8d1a537e665a0c2830dff52705b
|
File details
Details for the file wox_plugin-0.0.70-py3-none-any.whl.
File metadata
- Download URL: wox_plugin-0.0.70-py3-none-any.whl
- Upload date:
- Size: 46.7 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 |
44aae9de2227207ea1133441588203f972bc8977d3d91c3a566ed897c7d5252b
|
|
| MD5 |
270b0c44b6048aaf66e7f129a390e102
|
|
| BLAKE2b-256 |
142f49b43c45f6e5904d5367f0c0bb2342b0da5c1570aa3da3c30d476a1d0434
|