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.47.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.47-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wox_plugin-0.0.47.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.47.tar.gz
Algorithm Hash digest
SHA256 4fde3adf78414207e9c0fc2b344f5e8ce734af0e4ec0512e22c500c85efadb2d
MD5 f68b91330812ff401abd185dae38cf15
BLAKE2b-256 b0589650486585760ae45760d24136482fd8fb91571a31af9751778700a09432

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wox_plugin-0.0.47-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.47-py3-none-any.whl
Algorithm Hash digest
SHA256 42244568ed3d8875610715a0d711f18297355607e3ee9f43e8185c04cf9ffca7
MD5 a273ccd0dbf74f8cc1b53ab63c8b0674
BLAKE2b-256 341841ae21c4e12dc6270d58836446d3408110d9142bfc6eeb0fd5321d68a77c

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