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 details)
File details
Details for the file TextualConfig-0.0.6.tar.gz
.
File metadata
- Download URL: TextualConfig-0.0.6.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a06b544660540cbf92ce7b873401957aa172a99e000279368cf5ea0eebfba57 |
|
MD5 | fc9bba932338be6a090f45453d8c7f07 |
|
BLAKE2b-256 | 7ac8056d0af26cc2fa428f99804c8e61c13ddc7b0a6b9cb8c7b7754234d19118 |