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

Uploaded Python 3

File details

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

File metadata

  • Download URL: wox_plugin-0.0.46.tar.gz
  • Upload date:
  • Size: 35.0 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.46.tar.gz
Algorithm Hash digest
SHA256 1d2a2cbf796cee3c415944792717d4151da26577e0ed2c11c0fa48a33382fc0c
MD5 ea62c3c5f4e202d3342a8352c07d6616
BLAKE2b-256 ef271992a8e1d1a1750767290b79a089e20b9b754ce929d31ca29761409e1aaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wox_plugin-0.0.46-py3-none-any.whl
  • Upload date:
  • Size: 10.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.46-py3-none-any.whl
Algorithm Hash digest
SHA256 fba91e747b5dc713c0ea44c813844b3f7a69fe20bb8a958af5d35fb565c7bdb7
MD5 f18c281664dfc0daa6333816007cf4c7
BLAKE2b-256 09b3c93727dcb19e52e963ef63ad07be9c1743412ad547e976f439c5b0e49745

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