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.55.tar.gz (39.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.55-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wox_plugin-0.0.55.tar.gz
  • Upload date:
  • Size: 39.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.55.tar.gz
Algorithm Hash digest
SHA256 36c7e4507eaedd80a74e8af4eb7d927879e2fa9f2940aebddcaadc6c29c526ce
MD5 8c7db78eb7da1c468b8cfb8e0ef212d7
BLAKE2b-256 e0b2d213c0e7f19035de54eda72d3fe22d1f8b5fdeb18dccfdbf654a335a86e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wox_plugin-0.0.55-py3-none-any.whl
  • Upload date:
  • Size: 15.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.55-py3-none-any.whl
Algorithm Hash digest
SHA256 0feac2b7485ca7cac290ca2ef142b6507b609be96b5acf52cf3261eb03a6fdc3
MD5 6c6de29eea404989ae9cbf0c5e95020e
BLAKE2b-256 aeaf13c9617c3e346e5a8e0d16527db1a61744358c0e6ffa8e4ad56914883798

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