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.31.tar.gz (47.2 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.31-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wox_plugin-0.0.31.tar.gz
  • Upload date:
  • Size: 47.2 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.31.tar.gz
Algorithm Hash digest
SHA256 e1c095c9e5946d214327497c4fddf907a78b438f74688697a0dd9226a281acae
MD5 a22c22e384de2eae56a3571fbc6281fb
BLAKE2b-256 e097ffea76bedbc05bc1f3c37ba429a23347d7fae9bdeb8f2dee8c03dc3a6958

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wox_plugin-0.0.31-py3-none-any.whl
  • Upload date:
  • Size: 9.7 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.31-py3-none-any.whl
Algorithm Hash digest
SHA256 b7bce21a2c849bc166cdd567c5af1b05e2b03f8364fe8a4de6281e64b760d83d
MD5 33dada516446e7d0c324520becf85002
BLAKE2b-256 0b42d45e26712b907e8ae95121d096ca1446ba4362c56a483a36434d1493e822

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