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 then3.11.
Usage
Basic plugin
A basic plugin using a function as the query method.
from pyflowlauncher import Plugin, Result
plugin = Plugin()
@plugin.on_method
def query(query: str):
yield Result(
title="This is a title!",
subtitle="This is the subtitle!",
icon="icon.png"
)
plugin.run()
Methods decorated with @plugin.on_method can yield one or more Result objects, return a list of Result objects, or return a single Result — the framework normalizes all forms into the correct response automatically.
Advanced plugin
A more advanced usage using a Method class as the query method.
from pyflowlauncher import Plugin, Result, Method
from .models.json_rpc import JsonRPCResponse
plugin = Plugin()
class Query(Method):
def __call__(self, query: str) -> JsonRPCResponse:
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()
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyflowlauncher-1.0.2.tar.gz.
File metadata
- Download URL: pyflowlauncher-1.0.2.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9856c95fa801c6627d4a315e4a360449374d1409f326aa6760dd091ca6c91b37
|
|
| MD5 |
2769fe9fc8407c29f5c45ece31a99970
|
|
| BLAKE2b-256 |
e8270d1fcd41493821caa01a47a58b9546b49f3db105a3a5d9bd35a3bcbdc6f6
|
Provenance
The following attestation bundles were made for pyflowlauncher-1.0.2.tar.gz:
Publisher:
release-please.yaml on Garulf/pyFlowLauncher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyflowlauncher-1.0.2.tar.gz -
Subject digest:
9856c95fa801c6627d4a315e4a360449374d1409f326aa6760dd091ca6c91b37 - Sigstore transparency entry: 2161226184
- Sigstore integration time:
-
Permalink:
Garulf/pyFlowLauncher@d0c7d27bcffd1e94080782a25e780f4613025b6d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Garulf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yaml@d0c7d27bcffd1e94080782a25e780f4613025b6d -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyflowlauncher-1.0.2-py3-none-any.whl.
File metadata
- Download URL: pyflowlauncher-1.0.2-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83264ba31e51bde077c0063050bb0ec26c7c2c80a4a080b2c6938f5b05218e4d
|
|
| MD5 |
af08bbfaaf8893b6731b78b4efc2135d
|
|
| BLAKE2b-256 |
1bd789ee9a9074401f634a666df56fd5335285e7e840bd847ee932485d264eb4
|
Provenance
The following attestation bundles were made for pyflowlauncher-1.0.2-py3-none-any.whl:
Publisher:
release-please.yaml on Garulf/pyFlowLauncher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyflowlauncher-1.0.2-py3-none-any.whl -
Subject digest:
83264ba31e51bde077c0063050bb0ec26c7c2c80a4a080b2c6938f5b05218e4d - Sigstore transparency entry: 2161226272
- Sigstore integration time:
-
Permalink:
Garulf/pyFlowLauncher@d0c7d27bcffd1e94080782a25e780f4613025b6d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Garulf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yaml@d0c7d27bcffd1e94080782a25e780f4613025b6d -
Trigger Event:
push
-
Statement type: