Skip to main content

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.22

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for copier-ui 1.0.22
File Size Uploaded
copier_ui-1.0.22.tar.gz 14.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for copier-ui 1.0.22
File Interpreter ABI Platform
copier_ui-1.0.22-py3-none-any.whl Python 3 none any Details

Total release size: 29.7 kB

Release files / copier_ui-1.0.22.tar.gz

Download URL copier_ui-1.0.22.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a26a863ba17b84d5a81e2b143c14785dd3637e04e021bb7f29fad7d148a56d3e
BLAKE2b-256 checksum
How to use checksums
751a04a4936eb0c81a382e9fada5e64a84c7c5eff9705994c00b8824f4fe5457
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.22-py3-none-any.whl

Download URL copier_ui-1.0.22-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95ddfb2ca16cfdf9631efd6e396af3153b696d5dbb3c79356d86bc00eae1e967
BLAKE2b-256 checksum
How to use checksums
9c9e47f56bce6cfc9f792edd37ed7c887b079a8dbd495f4634cc0c911cc3c13b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release history Release notifications | RSS feed

1.0.24

2 release files

1.0.23

2 release files

This release

1.0.22 This release

2 release files

1.0.21

2 release files

1.0.20

2 release files

1.0.19

2 release files

1.0.18

2 release files

1.0.17

2 release files

1.0.16

2 release files

1.0.14

2 release files

1.0.13

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

0.6.11

2 release files

0.6.8

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page