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.21
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.21.tar.gz | 14.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| copier_ui-1.0.21-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.7 kB
Release files / copier_ui-1.0.21.tar.gz
| Download URL | copier_ui-1.0.21.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da9c23c8b8f9a137ab9e35be4e727aec42f2010f2ad644ef90828fe9c9178ccf
|
|
BLAKE2b-256 checksum How to use checksums |
ab795e4681f531f401bf6bc52bea3c4027b3e679a8edf859881c21620182c457
|
| 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.21-py3-none-any.whl
| Download URL | copier_ui-1.0.21-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
684f442fb834510d2d2f0f6ef0c5df753ecd0e88991926ab860108dcb5bd82d4
|
|
BLAKE2b-256 checksum How to use checksums |
c775060fa7337ea07443ed8a39d49b4e124e8c508b3715a0781829a97bd2646d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|