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.63.tar.gz (39.1 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.63-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wox_plugin-0.0.63.tar.gz
  • Upload date:
  • Size: 39.1 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.63.tar.gz
Algorithm Hash digest
SHA256 63a17f27b384aad1b3f7a06bfa32b086cc6a5aa449154480929e9538dfe42548
MD5 a3a742bc513e4a8498ecd0f824178342
BLAKE2b-256 3cf8e0001e726b8af7d9c6cc3fe09c4aacb5444ed1c82a61756046e4fddf178f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wox_plugin-0.0.63-py3-none-any.whl
  • Upload date:
  • Size: 15.4 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.63-py3-none-any.whl
Algorithm Hash digest
SHA256 cc23ce88ee639d5bb22b5d4f7e16c4a7808e7a197e050406acaf584fe56dd468
MD5 283415aa7ccd6d4fb3f6bda076ef831d
BLAKE2b-256 0b6dff16ee66578b5771a354301687b4938f27604afcd22bb297cbe4cfac8e44

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