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.51.tar.gz (41.4 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.51-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wox_plugin-0.0.51.tar.gz
Algorithm Hash digest
SHA256 b03fd31db61d880d3ffe808456a579d25c0abc48075410fd2a0f656145268ec5
MD5 240e984c1623285e3c3a339cf11995b6
BLAKE2b-256 3a3b8b3f829cf6014e2a1faf507a3d453d738f12f97f24b9b63e7b5529ddb0cc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wox_plugin-0.0.51-py3-none-any.whl
Algorithm Hash digest
SHA256 4855c3124f539f96d4dd81d1becc52e5f4f875bc5553e87bd43d2f3f6bc503a5
MD5 331e7e4a934b9c366ac596ed2d24ff5d
BLAKE2b-256 b8574a1aed7d815ea45774dcbe2eaa2c830c2b8be4fc38f7d45b0b670993a96c

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