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.39.tar.gz (34.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.39-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wox_plugin-0.0.39.tar.gz
  • Upload date:
  • Size: 34.9 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.39.tar.gz
Algorithm Hash digest
SHA256 06f42538438a8de72489f117dea871441c0ea1fb769c08e0e7256ad30fc3d50f
MD5 dae82520a7eed3a8cf83158c77369970
BLAKE2b-256 c3e1dc1f19ae75db912a896a27a6f5dea2b7e9be4198371e44bb77eb2ac1f065

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wox_plugin-0.0.39-py3-none-any.whl
  • Upload date:
  • Size: 10.2 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.39-py3-none-any.whl
Algorithm Hash digest
SHA256 6f9cf8b6d2987de04cf2cf3a42c3d57706af75ea5a1c980345b50fb63e01c7a4
MD5 4cbcd6e87a11cbbe99ba166e19571768
BLAKE2b-256 dca43f62557bbe5b03f87ffb676396a89024509dfd7e1bd6c9946911c9b0f270

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