Skip to main content

Python library to help build Flow Launcher plugins.

Project description

Tests Workflow Status Docs Workflow Status Release Workflow Status pypi PyPI - Python Version GitHub License buymeacoffee

pyFlowLauncher

pyFlowLauncher is an API that allows you to quickly create plugins for Flow Launcher!

Installation

Install via pip:

python -m pip install pyflowlauncher[all]

[!IMPORTANT] Please use the [all] flag in order to support Python versions older then 3.11.

Usage

Basic plugin

A basic plugin using a function as the query method.

from pyflowlauncher import Plugin, Result, send_results
from pyflowlauncher.result import ResultResponse

plugin = Plugin()


@plugin.on_method
def query(query: str) -> ResultResponse:
    r = Result(
        Title="This is a title!",
        SubTitle="This is the subtitle!",
        IcoPath="icon.png"
    )
    return send_results([r])


plugin.run()

Advanced plugin

A more advanced usage using a Method class as the query method.

from pyflowlauncher import Plugin, Result, Method
from pyflowlauncher.result import ResultResponse

plugin = Plugin()


class Query(Method):

    def __call__(self, query: str) -> ResultResponse:
        r = Result(
            Title="This is a title!",
            SubTitle="This is the subtitle!"
        )
        self.add_result(r)
        return self.return_results()

plugin.add_method(Query())
plugin.run()

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

pyflowlauncher-0.10.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyflowlauncher-0.10.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file pyflowlauncher-0.10.0.tar.gz.

File metadata

  • Download URL: pyflowlauncher-0.10.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyflowlauncher-0.10.0.tar.gz
Algorithm Hash digest
SHA256 5496ac71c3916e528cbfd43c68417c1d65de8480548311ab03bc547be1fa2d5c
MD5 349a04282550a9c940debfb952909dff
BLAKE2b-256 17aacfeb5181a9f21cdd5958b3ff0738ac8467c021494266629f4d229fc21cfa

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyflowlauncher-0.10.0.tar.gz:

Publisher: pypi.yaml on Garulf/pyFlowLauncher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyflowlauncher-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: pyflowlauncher-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyflowlauncher-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfc629f33078fdc761a9ef63f16d50e8f78d812f176e215a81210a425df6b74f
MD5 75ee39f5c0c62ffe829b03625ce6da8a
BLAKE2b-256 65ab17ad9ff2d6f23ede43b07ee1efd92bb1d8098220ad6aa60aa428d26aef24

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyflowlauncher-0.10.0-py3-none-any.whl:

Publisher: pypi.yaml on Garulf/pyFlowLauncher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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