Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.
/ Flox Public archive

Helper library for Wox & Flow Launcher

License

Notifications You must be signed in to change notification settings

Garulf/Flox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3228e17 · Dec 31, 2023
Mar 29, 2022
Oct 19, 2023
Aug 2, 2021
Jul 28, 2021
Dec 31, 2023
Jan 19, 2022

Repository files navigation

Release

Depreciated in favor of pyFlowLauncher! Please see: https://github.com/garulf/pyflowlauncher

FLOX

Flox is a Python library to help build Flow Launcher and Wox plugins

Flox adds many useful methods to speed up plugin development

Heavily inspired from the great work done by deanishe at: deanishe/alfred-workflow

Installation

PIP install from pypi

pip install flox-lib

PIP install from github

pip install git+https://github.com/garulf/flox.git

Basic Usage

from flox import Flox

import requests

# have your class inherit from Flox
class YourClass(Flox):

    def query(self, query):
        for _ in range(250):
            self.add_item(
                title=self.args,
                subtitle=str(_)
            )

    def context_menu(self, data):
        self.add_item(
            title=data,
            subtitle=data
        )

if __name__ == "__main__":
    your_class = YourClass()
    your_class.run()