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.58.tar.gz
(41.9 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.58.tar.gz.
File metadata
- Download URL: wox_plugin-0.0.58.tar.gz
- Upload date:
- Size: 41.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11db4e5492b936645880980d5c7d828151a625ac08a654b90df8e86f601685ff
|
|
| MD5 |
b7ba3c3dd939ffbac36136efbdc89c50
|
|
| BLAKE2b-256 |
e8c4d6cb2f45ea80a41cd57dde7485f8ceec09413fb42e3e84b75c2ca5eca0b0
|
File details
Details for the file wox_plugin-0.0.58-py3-none-any.whl.
File metadata
- Download URL: wox_plugin-0.0.58-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edcb40e15d59cfc0a8c71dd7805d1d1a60cd0d67bde56e389f4377d6d627d588
|
|
| MD5 |
f3621e3d24ca005248b3bf5f9261e71e
|
|
| BLAKE2b-256 |
8c5594375874cf748104fec1176f92ce99992969019a8642fe55ae1456afef11
|