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.67.tar.gz
(39.4 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.67.tar.gz.
File metadata
- Download URL: wox_plugin-0.0.67.tar.gz
- Upload date:
- Size: 39.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a0cbf98977110ba509b1fe24b4c4d45a7c64f3630f3e896593789150ce0f8ee
|
|
| MD5 |
6a28b9cf4a5b31f6c1384fc667e1c56b
|
|
| BLAKE2b-256 |
4c6a56b4b2aec2d2536298e7178cab1ccf8d116320761dfd944bdca5505f9ee5
|
File details
Details for the file wox_plugin-0.0.67-py3-none-any.whl.
File metadata
- Download URL: wox_plugin-0.0.67-py3-none-any.whl
- Upload date:
- Size: 16.0 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 |
c2d44b90ffa508d0bd55da9d57be519047d7b7f94346a8f0eab3caf561733084
|
|
| MD5 |
91f8023d7aa8f05a8edefe500db153e7
|
|
| BLAKE2b-256 |
99bcedaa6a50d9cc0adb3cb447239bbcfab4561fc3c7bcd63fb1209e17490f91
|