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.59.tar.gz (41.9 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.59-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wox_plugin-0.0.59.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

Hashes for wox_plugin-0.0.59.tar.gz
Algorithm Hash digest
SHA256 d32b5b9597822280c0e84707e15f532d1ac4dae58a2dd9ac534761200ed36d07
MD5 fda6736908b845239f5106e95e3aa025
BLAKE2b-256 14f5871a0840727b1c8867d7e515e5f1c1c17c87893836731e080750c9367de6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wox_plugin-0.0.59-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

Hashes for wox_plugin-0.0.59-py3-none-any.whl
Algorithm Hash digest
SHA256 8afec53c50ec40693403db5700143653ba465490633dce86429b1b2a4601b0ab
MD5 849a6a041784ee3443babe7a783a5ee1
BLAKE2b-256 e4b68e79c00022e492df8cc0f680ad395bce181899c1129aaecbf44a75d4e1bb

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