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.73.tar.gz
(69.6 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.73.tar.gz.
File metadata
- Download URL: wox_plugin-0.0.73.tar.gz
- Upload date:
- Size: 69.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06583839a8a83e725bc640743c6b880aae80965e5a72f61b5cdd4a7be601b411
|
|
| MD5 |
450e10a0c8d12f4c15414f845dd56935
|
|
| BLAKE2b-256 |
7a7aa36d78b85d2312def23144201b4a815dabebc4261adc3dc8ce1c5a4ec25d
|
File details
Details for the file wox_plugin-0.0.73-py3-none-any.whl.
File metadata
- Download URL: wox_plugin-0.0.73-py3-none-any.whl
- Upload date:
- Size: 48.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 |
7cfef044c411e9bc5d87eb5eaed4e305121e1c8cf0207d4b802509f682421f4a
|
|
| MD5 |
2a6703cee78b34056ab488dfb8061589
|
|
| BLAKE2b-256 |
c65fc2b2052529bdfaa791f990759b71b89241858981509e2989bed1aa70509f
|