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.66.tar.gz
(39.3 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.66.tar.gz.
File metadata
- Download URL: wox_plugin-0.0.66.tar.gz
- Upload date:
- Size: 39.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de50c0cbccf5fa1f008239977c5d005c93301e9c3622aa8afcac8d74b9ff01f3
|
|
| MD5 |
c28045f9514128b81cd07564cd02d2ff
|
|
| BLAKE2b-256 |
5ff4987062b6c07e4527355443e4dc9f1e3b12f0d569e35d38eba885d8f9bf60
|
File details
Details for the file wox_plugin-0.0.66-py3-none-any.whl.
File metadata
- Download URL: wox_plugin-0.0.66-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 |
ab381f22d45c73968a7f64561981584e22b1d31b8c0f486c1c18e8de0854d9ba
|
|
| MD5 |
951aff6951f6405155aae17d7af81907
|
|
| BLAKE2b-256 |
92cd2b5d10913b04311bffee027c44182f14d9bdc4168841d4cfca6c2e9772c2
|