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.30.tar.gz
(46.0 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.30.tar.gz.
File metadata
- Download URL: wox_plugin-0.0.30.tar.gz
- Upload date:
- Size: 46.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e23d7b85ba2845f11047b3fa049edf08ebc6d5435ecd6aa486cbfdcb0b1dd3c0
|
|
| MD5 |
3528faf4b6660db9e3d587566911441b
|
|
| BLAKE2b-256 |
3058c09cc97cee3b3253dd1d332fe95c828b241e8f788b5d81dbda6e38767568
|
File details
Details for the file wox_plugin-0.0.30-py3-none-any.whl.
File metadata
- Download URL: wox_plugin-0.0.30-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
deea70fce050fc969ed90584d3635fde96ea76e3c562fca0a1a5b83cf634791e
|
|
| MD5 |
25d561ebaaf3fc30d3be0436a7d548da
|
|
| BLAKE2b-256 |
0e22a418ccaea3dfaa7f25b03ed9012ae9fa0ca94b2c8fdd7710342862555093
|