A Config Tool with Textual support.
Project description
TextualConfig
A Config Tool with Textual support.
Install
pip3 install TextualConfig
Usage
from TextualConfig import Config
questions = {
"username": {
"type": "Input",
"args": [],
"kwargs": {
"placeholder": "Username",
},
},
"password": {
"type": "Input",
"args": [],
"kwargs": {
"placeholder": "Password",
"password": True,
},
},
"_doc1": {
"type": "Doc",
"args": *Any_Rich_Renderable # 可用rich渲染的对象列表
},
"enable": {
"type": "Checkbox"
}
}
res = Config("save.path.json", *Any_Rich_Renderable, **questions)
Demo
python3 -m TextualConfig
Home | Config |
---|---|
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
TextualConfig-0.0.6.tar.gz
(5.6 kB
view hashes)