Python micro framework for CLI applications
Project description
FlameWok
Very tiny framework project to build quickly python apps running ONLY in terminal.
The purpose of this package is to get you rid as much as possible of the tedious part of creating menus and forms, and help to keep the code clean.
Fully functionnal now. Works great !
Create forms
from flamewok import Form
my_form = Form([
("name", "what is your name ?"),
("age", "how old are you ?"),
])
response = my_form.ask()
Create menus :
from flamewok import Menu
menu = Menu()
def hello():
print("Hi there ! here is the callback hello !")
menu.ask()
def how():
print("I'm quite fine, thank you :)")
menu.ask()
def exit():
print("Good Bye folks !")
quit()
menu.add_boxes([
"\nChoose an option:\n",
(1, "hello !", hello),
(2, "how are you ?", how),
("x", "exit", exit),
])
menu.ask()
yes, that simple.
check the examples to get a better idea of what you can do.
flamewok is available here: https://github.com/byoso/flamewok
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flamewok-1.0.0.tar.gz
(5.6 kB
view hashes)