Skip to main content

A Swarmauri Peagen Template Set for Vue Atom

Project description

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 atomsptree.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 defaultsagent_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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

peagen_templset_vue-0.1.1.dev27.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

peagen_templset_vue-0.1.1.dev27-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file peagen_templset_vue-0.1.1.dev27.tar.gz.

File metadata

  • Download URL: peagen_templset_vue-0.1.1.dev27.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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}

File hashes

Hashes for peagen_templset_vue-0.1.1.dev27.tar.gz
Algorithm Hash digest
SHA256 7f2b7899e154d33f854504e8b689bc9a2175ce4b962082a819b427343d9a4260
MD5 e36b8f9d487d234d996564621ac22d9b
BLAKE2b-256 17ab8248dc428d98f19e267467b13372c5b65c0b1e2fda7d8f793c198b0754b8

See more details on using hashes here.

File details

Details for the file peagen_templset_vue-0.1.1.dev27-py3-none-any.whl.

File metadata

  • Download URL: peagen_templset_vue-0.1.1.dev27-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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}

File hashes

Hashes for peagen_templset_vue-0.1.1.dev27-py3-none-any.whl
Algorithm Hash digest
SHA256 5b079f55dd843c899555d9c2d019348b4d7d8d2a962f52f2d7f6dda250444d06
MD5 fdf8ca09ab765d9e89e8ecfb4fce16f0
BLAKE2b-256 c160c56fa1b75de9a1ba1c42857a9ebf571216b000e8af88e3d7740b1989fcef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page