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.8
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.8.tar.gz | 13.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| copier_ui-1.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.4 kB
Release files / copier_ui-1.0.8.tar.gz
| Download URL | copier_ui-1.0.8.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1979d55b18c97e712578758ac2433ed2e473fa9ddbc9ecc0600cd2db9121590e
|
|
BLAKE2b-256 checksum How to use checksums |
8fc8a415d1ae82f8d0c5dda57b94ed66f752de7ab33c86b19a8e29831eee67f5
|
| 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.8-py3-none-any.whl
| Download URL | copier_ui-1.0.8-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ff62ab4eada75ee7b13b5af7f49354e1f6377a10f6c7e4c781163229067f46f
|
|
BLAKE2b-256 checksum How to use checksums |
59e9f721ff4b967e0d6661e2307dd102548e83a7427bb5f3f3b170bb8abf1682
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|