Skip to main content

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
Home Config

Project details


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page