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.32.tar.gz (47.3 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.32-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wox_plugin-0.0.32.tar.gz
Algorithm Hash digest
SHA256 037e48835beb86dc2bf2b396a822be623607630b1a38328637ace667ddb226d5
MD5 ae8d1d5f4c1ee7144ee65dd249691623
BLAKE2b-256 e820911965b2aafccc7558256b38b96a22013407086252987a1c9309a43b2c09

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wox_plugin-0.0.32-py3-none-any.whl
Algorithm Hash digest
SHA256 eaf9b3b0922a535aa6bad1e77ebd6f610a420f4b5740de4f7e1eabbe02dea148
MD5 fca89aaade60a7f59f477e087eb44163
BLAKE2b-256 fa288b2d89ac38fcbad34ec987a10add670ff9469ae65836e6f5eb4bdcd29269

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