dynamicprompts
Dynamic prompts templating library for Stable Diffusion
Decision gist · record as of 2026-08-14
Yes, if you actively use Stable Diffusion or similar text-to-image generators and need to generate many prompt variations. The low install friction and permissive license make it safe to try. However, the dormant maintenance status means you should verify compatibility with your current image generator version and be prepared to fork or find alternatives if critical bugs emerge. Not recommended if you need active support or expect the package to evolve.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with only jinja2 and pyparsing as runtime dependencies.
- Package is dormant (876 days since last release in March 2024), so expect no active maintenance or bug fixes going forward.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) means you can use, modify, and distribute the package freely with minimal restrictions, though you must include the license notice.
last release 2024-03-21 (876 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 157,039 downloads/mo, #10,769 on PyPI
Alternatives
Verify before relying
pip install dynamicprompts
from dynamicprompts.generators import RandomPromptGenerator
generator = RandomPromptGenerator()
results = generator.generate("I love {red|green|blue} roses", num_images=5)- Whether the package still works with current versions of Stable Diffusion or other image generators it targets
- Whether the optional extras (magicprompt, attentiongrabber) are still functional or maintained elsewhere
- Active community or alternative maintained forks given the dormant status
What it is and what it does
Dynamic Prompts is a templating library that transforms single prompt templates into multiple varied prompts for text-to-image generators. It lets you define variants using curly-brace syntax (e.g., `{red|green|blue}`), reference reusable wildcard files (e.g., `__colors__`), and use Jinja2 for advanced templating. The library can generate prompts randomly or exhaustively (all combinations), making it useful for batch-generating diverse image prompts without manual repetition.
The package depends on jinja2 for template processing and pyparsing for parsing the custom template syntax. It supports Python 3.8 through 3.11 and integrates with the Automatic1111 Stable Diffusion web UI extension. However, the package has been dormant since March 2024, so it receives no active maintenance or updates.
Use it for
- Generate multiple image prompts from a single template to explore variations without manual rewriting
- Build reusable wildcard libraries (colors, materials, subjects) to compose consistent prompt families
- Exhaustively generate all possible prompt combinations to systematically test image generation outputs
- Integrate prompt templating into batch image generation workflows for Stable Diffusion or similar tools
- Create complex prompts with Jinja2 logic for conditional or computed prompt segments
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you actively use Stable Diffusion or similar text-to-image generators and need to generate many prompt variations.
The low install friction and permissive license make it safe to try. However, the dormant maintenance status means you should verify compatibility with your current image generator version and be prepared to fork or find alternatives if critical bugs emerge. Not recommended if you need active support or expect the package to evolve.
Install
dynamicprompts on PyPI
Before you install
Low friction install with only jinja2 and pyparsing as runtime dependencies. Package is dormant (876 days since last release in March 2024), so expect no active maintenance or bug fixes going forward.
License in practice
MIT license (permissive) means you can use, modify, and distribute the package freely with minimal restrictions, though you must include the license notice.
Quickstart
pip install dynamicprompts
from dynamicprompts.generators import RandomPromptGenerator
generator = RandomPromptGenerator()
results = generator.generate("I love {red|green|blue} roses", num_images=5)
Verify before relying
- Whether the package still works with current versions of Stable Diffusion or other image generators it targets
- Whether the optional extras (magicprompt, attentiongrabber) are still functional or maintained elsewhere
- Active community or alternative maintained forks given the dormant status
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesjinja2pyparsing |
| Maintenance | Dormant 876 days since the last release |
| First released | |
| Downloads | 157,039 / month, #10,769 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Text Processing |
Evidence: dynamicprompts-0.31.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “prompt template generation”
- dynamicpromptsGenerates varied text prompts for image generators like Stable…
- pydantic-handlebarsRenders Handlebars templates for composing LLM prompts, with…
- banksBanks is a template language and prompt management system for…
Give your agent the search over MCP, or paste the wish link into any chat.
More Text Processing packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.
Install it if you need to parse text or define grammars programmatically.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.
Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.
tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.
Install it if your project requires CSS tokenization or syntax manipulation.
See also clip-interrogator · Jinja2 · questo · diffusers · prompthub-py · sphinx-prompt · banks · ell-ai · branca · beaupy