Skip to content
This repository has been 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

 
 
 
 
 
 
 
 
 
 
 
 
 

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()