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.5.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file TextualConfig-0.0.5.tar.gz.

File metadata

  • Download URL: TextualConfig-0.0.5.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

Hashes for TextualConfig-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c7da3708882fe51b960708e2b008014b1e7d639b7fc6e15fcc418e63f95b4ff9
MD5 2ddc4432b147e35938c62375139ec3de
BLAKE2b-256 178a3f1e8508d468234d2502b34eb267f728e24ac3000f11f3c58d8c44159090

See more details on using hashes here.

Supported by

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