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

Uploaded Python 3

File details

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

File metadata

  • Download URL: wox_plugin-0.0.43.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.43.tar.gz
Algorithm Hash digest
SHA256 cd95a5c9cc9618084a6fa2531cb6078037ba9dd47469b613eba490759121f2d7
MD5 693f2b16cf2e11be4e02d978737b5922
BLAKE2b-256 0a74944f6d0b26f23d96f703e7c554cdf84d0ace389b84d1fde71180095eba2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wox_plugin-0.0.43-py3-none-any.whl
  • Upload date:
  • Size: 10.3 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.43-py3-none-any.whl
Algorithm Hash digest
SHA256 dc3e16ec117999e4395fe9bc0a1927654152f87565e283baa5fa79c1ab8ebcf5
MD5 41bf44314b9b0933f7dfd32e7193e8b7
BLAKE2b-256 bb42d9850440a7acb67432e551ee832155c3a9017ac647480743c3f4bafbf7a0

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