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 1.0.10
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-1.0.10.tar.gz | 13.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| copier_ui-1.0.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.5 kB
Release files / copier_ui-1.0.10.tar.gz
| Download URL | copier_ui-1.0.10.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a395c4322b68c5c518bece5068ae9f5bea72aa1789406231d115df4ed4c75c4
|
|
BLAKE2b-256 checksum How to use checksums |
dd1430e47028aa456da99fd6e5727e12d5d07355952fc782c68c62a4c4708f14
|
| 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-1.0.10-py3-none-any.whl
| Download URL | copier_ui-1.0.10-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad78152ba55b48e04ce914a9c7bc3177f336817e1de6ff223f3170b3edd46295
|
|
BLAKE2b-256 checksum How to use checksums |
f0b1fe19bc84c73058456c81510336287b88790891bb875a9862dd32b423cf00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|