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.29.tar.gz (46.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.29-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wox_plugin-0.0.29.tar.gz
  • Upload date:
  • Size: 46.0 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.29.tar.gz
Algorithm Hash digest
SHA256 a9adc22d6e3edfdd162d85d88bb7b3e7851ce79ac7a00eecfcc392dc4994dece
MD5 5d441547a58412bc85b0721c09eb7c32
BLAKE2b-256 6bef99ab0a2936cb5577a7e78d45f9cc469a266c44200a4c365b93f06f0bd458

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wox_plugin-0.0.29-py3-none-any.whl
  • Upload date:
  • Size: 7.6 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.29-py3-none-any.whl
Algorithm Hash digest
SHA256 b14b27524fd3028e6d8630b0c660921440a0725585d2ba29b234343dbcc7fc9d
MD5 94197ecfec54e7454c95288767e7c6d3
BLAKE2b-256 81f58ab6d53ddfa990760dc472d5abfafd9038762888d9c543caf571d6137eac

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