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.52.tar.gz (38.6 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.52-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wox_plugin-0.0.52.tar.gz
  • Upload date:
  • Size: 38.6 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.52.tar.gz
Algorithm Hash digest
SHA256 b4a9ae0817a0d02fa8d5974ca09d072895b80534dc8ec24d81ef43a97d68a7f9
MD5 41f9cb838ac54000eafc794f050aab8b
BLAKE2b-256 5cd496892408cd8c75dbd48fb5fab96d763edd21145e637a5cbbcdf16abc015e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wox_plugin-0.0.52-py3-none-any.whl
  • Upload date:
  • Size: 14.8 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.52-py3-none-any.whl
Algorithm Hash digest
SHA256 72687aac490cd0a403493415aaad3d6bc2806a63697bebbb803338cc24c704ca
MD5 125a6257027dc7bd35e2df6bdf843f61
BLAKE2b-256 c81903d3898f62e6b6c383a83d01ac990a7bce219d89596f2c040649f7d98877

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