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.56.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.56-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wox_plugin-0.0.56.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.56.tar.gz
Algorithm Hash digest
SHA256 21df5b708616a3decc4460895ccff6374aea22b0e9595b5d495f4a0f55ac46fb
MD5 cf2117e949d8a96882bc1909599e529c
BLAKE2b-256 a8bc3244d6021be6cb2c592fe2f3b0a31460bedd778999637a28b4170c4cce6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wox_plugin-0.0.56-py3-none-any.whl
  • Upload date:
  • Size: 15.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.56-py3-none-any.whl
Algorithm Hash digest
SHA256 43f3a2249a807e18d7baedc4f5c3412d212addea5365a1a7eef5eadd33036eea
MD5 00864e0d2238eeef05c980a031882970
BLAKE2b-256 c3b42aa5c1ae182b6c48864ad016246e1966454058f4e094d411f2edec8becd6

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