Skip to main content

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - peagen_templset_vue


peagen_templset_vue

peagen_templset_vue packages a Peagen template set that scaffolds Vue single-file components (SFCs) with a full suite of supporting assets. The template set is registered under the peagen.template_sets entry-point group so the Peagen CLI can discover it automatically after installation.

Overview

  • Opinionated Vue atoms – ptree.yaml.j2 renders a component folder containing an index.ts barrel, the Vue SFC, scoped CSS, and a generated *.d.ts interface file.
  • Comprehensive testing prompts – the template tree includes Jest/Vitest-ready unit tests, dedicated accessibility and visual regression specs, plus Storybook .stories.ts and .stories.mdx documents.
  • Accessible defaults – agent_default.j2 instructs the LLM to prefer TypeScript, provide docstrings, enforce ARIA annotations, and respect WCAG guidance. Project/module extras such as REQUIREMENTS, STATES, and DEPENDENCIES in your Peagen payload are injected directly into that prompt.
  • Dependency-aware rendering – each generated file declares its local dependencies so Peagen can order rendering and feed context into the prompts for downstream files.

Installation

Install the template set alongside the Peagen CLI:

pip install peagen peagen_templset_vue
# or install the template set into an existing environment
pip install peagen_templset_vue

Using Poetry:

poetry add peagen peagen_templset_vue
# or
poetry add peagen_templset_vue

Using uv:

uv pip install peagen peagen_templset_vue

Example: Inspect the bundled templates

After installation you can programmatically explore the template tree before invoking Peagen. The snippet below locates the packaged resources and prints the key prompts that Peagen will feed into its generation pipeline.

from importlib import resources

package = resources.files("peagen_templset_vue.templates.peagen_templset_vue")
with resources.as_file(package) as template_root:
    top_level = sorted(path.name for path in template_root.glob("*.j2"))
    component_dir = template_root / "{{ PKG.NAME }}" / "src" / "components" / "{{ MOD.NAME }}"
    component_files = [
        entry.name for entry in sorted(component_dir.iterdir(), key=lambda path: path.name)
    ]

    print(f"Template root: {template_root.name}")
    print(f"Top-level prompts: {top_level}")
    print("Component template files:")
    for name in component_files:
        print(f"- {name}")

The output highlights the top-level agent_default.j2 prompt plus every Vue component artefact Peagen will scaffold (Vue SFC, TypeScript barrel, CSS, tests, and Storybook stories).

Want to help?

If you want to contribute to swarmauri-sdk, read our guidelines for contributing.

Metadata

Release files for peagen_templset_vue 0.1.0

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

Source distribution (sdist)

Source distribution for peagen_templset_vue 0.1.0
File Size Uploaded
peagen_templset_vue-0.1.0.tar.gz 10.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for peagen_templset_vue 0.1.0
File Interpreter ABI Platform
peagen_templset_vue-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.1 kB

Release files / peagen_templset_vue-0.1.0.tar.gz

Download URL peagen_templset_vue-0.1.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f4457c928232c43261d0815fbc86efe7188475e6f1df94fb63f835644269aae8
BLAKE2b-256 checksum
How to use checksums
43ac85b1b8630ecaf0f8f7df4b33c08b83e246b369144f66a803a91d7f999bf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / peagen_templset_vue-0.1.0-py3-none-any.whl

Download URL peagen_templset_vue-0.1.0-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0fd8c8549d8f0a3b5f7dc607d872d6b222814721c8a743f285e6579a3aa3689e
BLAKE2b-256 checksum
How to use checksums
d7e93f58138f39e16c3b33aed012bf878ac9a4bd70ac8b025ff6ab259e628da4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
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