copier-ui
UI-neutral abstraction over a copier template survey.
copier-ui reads a template's questions and turns them into a normalised schema with a
dependency graph, visibility state and validation. It owns semantics and renders nothing, so
the same core drives a terminal UI, a web UI, an HTTP API or a test.
It never imports a display library and never requires an event loop.
from copier_ui import TemplateUI
# unsafe=True is copier's own trust gate: this template declares Jinja extensions and tasks,
# and copier_ui refuses to load such a template before importing anything unless you say so
ui = TemplateUI.from_template("gh:stellarshenson/copier-data-science", unsafe=True)
ui.set("dataset_storage", "s3")
ui.state().fields["s3_bucket"].visible # True
ui.render("./my-project")
Part of the copier-tui project.
Metadata
Release files for copier-ui 0.6.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| copier_ui-0.6.11.tar.gz | 12.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| copier_ui-0.6.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.8 kB
Release files / copier_ui-0.6.11.tar.gz
| Download URL | copier_ui-0.6.11.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91cf13b373db5be369c5a2cf55ea99e51408a43f46be14d42ccd1c2015bd44f3
|
|
BLAKE2b-256 checksum How to use checksums |
5c8fda397134de6d789bde53725dcc874874f90cfbcde0f7f1bce7f082e4023c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / copier_ui-0.6.11-py3-none-any.whl
| Download URL | copier_ui-0.6.11-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64f2b1aeebf1dd57997e3162a323930131a37a2ba328935a55f5d05ff4a9713e
|
|
BLAKE2b-256 checksum How to use checksums |
16aadafb9381c8fea489c524cac43f3e867b1c78d0384a50925784df3c4ff274
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|