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.50.tar.gz (37.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.50-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wox_plugin-0.0.50.tar.gz
  • Upload date:
  • Size: 37.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.50.tar.gz
Algorithm Hash digest
SHA256 7ba51e43a46235458475bda0c0f5ebd78c182448b0b8d1865cc7f80a59cfae63
MD5 4eabb37933371f227077f4e50c7252f3
BLAKE2b-256 55004742090635fa738edb9b1f5329c52d5723c9e23e679baee03b1c52525077

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wox_plugin-0.0.50-py3-none-any.whl
  • Upload date:
  • Size: 14.1 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.50-py3-none-any.whl
Algorithm Hash digest
SHA256 c786b003bfc2d1e7513f2d26937fd6d441936c844d7c0a91381fcd0d44884186
MD5 e895b9fcfaa753aed71a1a8200696f0c
BLAKE2b-256 fdc386bd8e0af4e62eb2f0f55e96defc6c7236397f22f05fdd9a6b264e4f9867

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