Skip to main content

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


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.61.tar.gz (39.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wox_plugin-0.0.61-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file wox_plugin-0.0.61.tar.gz.

File metadata

  • Download URL: wox_plugin-0.0.61.tar.gz
  • Upload date:
  • Size: 39.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.13

File hashes

Hashes for wox_plugin-0.0.61.tar.gz
Algorithm Hash digest
SHA256 607f8ad9dd382da6c4b52586388802f076fdfcf31e76ddf0096c36521312c054
MD5 d480041aabeb0d3babe78ae799282253
BLAKE2b-256 205b319c3ff560d2b75a1bf96ee79520b83af30d91f1adcce69e14d081ca932f

See more details on using hashes here.

File details

Details for the file wox_plugin-0.0.61-py3-none-any.whl.

File metadata

  • Download URL: wox_plugin-0.0.61-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.13

File hashes

Hashes for wox_plugin-0.0.61-py3-none-any.whl
Algorithm Hash digest
SHA256 ec8dc22547ed646ed97b247cc5847fbb7361d8352b4f1360bae278cb4819fd95
MD5 52e72f78c9f440924aa98ce0bc97cad8
BLAKE2b-256 d4561d2e63c6702372a63f97c19dca1e900b675413ea3b0cd3bcce34da0967a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page