FlowLauncher-OSRS-Wiki-Search/lib/Flox_lib-0.19.6.dist-info/METADATA

66 lines
1.5 KiB
Text
Raw Normal View History

2024-07-04 23:17:56 +02:00
Metadata-Version: 2.1
Name: Flox-lib
Version: 0.19.6
Summary: Python library to help build Flow Launcher and Wox plugins.
Home-page: https://github.com/Garulf/Flox
Author: William McAllister
Author-email: dev.garulf@gmail.com
License: MIT
Project-URL: Bug Tracker, https://github.com/Garulf/Flox/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Description-Content-Type: text/markdown
License-File: LICENSE.txt
[![Release](https://github.com/Garulf/Flox/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/Garulf/Flox/actions/workflows/release.yml)
# 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](https://github.com/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__":
YourClass()
```