$npx skillfedfor your agent

banks

A prompt programming language

Worth itPyPI MarkupReleased Aug 20268.4M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — banks-2.5.0-py3-none-any.whl
v2.5.0 · released 2026-08-08 · Python >=3.9 · 7 runtime deps: deprecated, eval-type-backport, filetype, griffe, jinja2, platformdirs, pydantic

Yes. Banks is actively maintained, has low install friction, carries a permissive MIT license, and solves a real problem—moving beyond ad-hoc string formatting for LLM prompts. The Beta status and recent release (6 days old) suggest active development. Install it if you're building LLM applications and want structured, versioned, reusable prompts; skip it if you're only calling LLMs with simple one-off strings.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction install with a pure-Python wheel.
  • Maintenance is active with a recent release (6 days old) and steady repository activity.
  • Seven runtime dependencies are all well-established packages, though optional dependencies (litellm, redis) add capability for advanced features.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal restrictions.

last release 2026-08-08 (6 days) · last repo commit 2026-08-08 · 128 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 8,360,654 downloads/mo, #1,631 on PyPI

Verify before relying

pip install banks

from banks import Prompt

prompt_template = """
{% chat role="system" %}
You are a {{ persona }}.
{% endchat %}
"""

p = Prompt(prompt_template)
messages = p.chat_messages({"persona": "helpful assistant"})
  • Whether optional dependencies (litellm, redis) are required for core templating or only for specific advanced features like LLM-based text generation and caching.
  • Performance characteristics when rendering complex templates with many dynamic LLM calls or large image payloads.
  • Stability guarantees given Beta development status (Development Status :: 4).
Same gist for agents: .md · .json

What it is and what it does

Banks is a template-based prompt programming language built on Jinja2 that transforms generic prompt blueprints into structured LLM inputs. Rather than manually formatting prompts with f-strings or string concatenation, you write templates using custom tags like `{% chat %}` to define message roles and content, then render them with context variables. The system handles conversion to chat message objects, image embedding for vision models, and metadata attachment for prompt versioning and management.

The package integrates with LLM providers through optional dependencies: it can invoke LLMs during template rendering to generate few-shot examples or perform function calling, supports prompt caching directives from providers like Anthropic, and stores prompts on disk with version tracking. Core templating requires only the base dependencies (Jinja2, Pydantic, Griffe for documentation), while advanced features like in-prompt LLM completion or Redis-backed caching require optional packages.

Use it for

  • Build reusable chat prompt templates with system/user/assistant roles and render them as structured message objects for API calls.
  • Include images in prompts for vision models and have Banks handle URL encoding or local file upload during rendering.
  • Generate few-shot examples by invoking an LLM during template rendering to populate example sections dynamically.
  • Define and version prompts with metadata, storing them on disk for team reuse and tracking changes across iterations.
  • Attach function definitions to prompts and let Banks orchestrate LLM tool-calling roundtrips automatically.
  • Mark sections of prompts for provider-specific caching (e.g., Anthropic's ephemeral cache) to reduce latency and cost.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Banks is actively maintained, has low install friction, carries a permissive MIT license, and solves a real problem—moving beyond ad-hoc string formatting for LLM prompts. The Beta status and recent release (6 days old) suggest active development. Install it if you're building LLM applications and want structured, versioned, reusable prompts; skip it if you're only calling LLMs with simple one-off strings.

Install

banks on PyPI

Before you install

Low friction install with a pure-Python wheel. Maintenance is active with a recent release (6 days old) and steady repository activity. Seven runtime dependencies are all well-established packages, though optional dependencies (litellm, redis) add capability for advanced features.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal restrictions.

Quickstart

pip install banks

from banks import Prompt

prompt_template = """
{% chat role="system" %}
You are a {{ persona }}.
{% endchat %}
"""

p = Prompt(prompt_template)
messages = p.chat_messages({"persona": "helpful assistant"})

Verify before relying

  • Whether optional dependencies (litellm, redis) are required for core templating or only for specific advanced features like LLM-based text generation and caching.
  • Performance characteristics when rendering complex templates with many dynamic LLM calls or large image payloads.
  • Stability guarantees given Beta development status (Development Status :: 4).

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
7 packages
deprecatedeval-type-backportfiletypegriffejinja2platformdirspydantic
MaintenanceActively maintained 6 days since the last release
Last repo commit
First released
Downloads8,360,654 / month, #1,631 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Evidence: banks-2.5.0-py3-none-any.whl

Tags

Capabilities
llm prompt templatingchat message generationprompt versioning managementdynamic prompt renderingjinja2 prompt languagemultimodal prompt builderfunction calling in prompts
Topics
llm-promptingtemplate-engineprompt-management

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 › “llm prompt templating”

  • banksBanks is a template language and prompt management system for…
  • pomlPOML is a markup language and Python SDK for structuring, templating,…
  • pydantic-handlebarsRenders Handlebars templates for composing LLM prompts, with…

Give your agent the search over MCP, or paste the wish link into any chat.

More Markup packages

PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
markdown-it-py Worth it
PyPI · Python Modules · released May 2026

A Python markdown parser that converts markdown to HTML following the CommonMark specification, with support for plugins and custom syntax rules.

Install it if you need reliable markdown-to-HTML conversion.

MITpure Python · 3.10+
613.8Mdownloads / mo
beautifulsoup4 Worth it
PyPI · Python Modules · released Jun 2026

Beautiful Soup parses HTML and XML documents into a navigable tree, providing Pythonic methods to search, iterate, and modify the parsed content.

Install it if you need to parse or extract data from markup documents.

MITpure Python · 3.7.0+
432.1Mdownloads / mo
et-xmlfile With conditions
PyPI · Markup · released Oct 2024

et_xmlfile writes large XML files with minimal memory overhead by serializing elements to disk as they are created, rather than holding the entire tree in memory.

Install it if incremental XML writing fits your use case; skip it if your XML documents are small or you already use lxml.

MITpure Python · 3.8+dormant
343.3Mdownloads / mo
tomlkit Worth it
PyPI · Markup · released Jul 2026

Parses and edits TOML files while preserving formatting, comments, and structure, then serializes them back with layout intact.

Install it if you're building tools that touch TOML files and user readability of the source matters.

MITpure Python · 3.9+
338.0Mdownloads / mo
docstring-parser Worth it
PyPI · Python Modules · released Apr 2026

Parses Python docstrings in ReST, Google, Numpydoc, and Epydoc formats, extracting structured information like descriptions, parameters, return types, and exceptions.

Install it if you need to programmatically read and extract structured data from Python docstrings.

MITpure Python · 3.8+
274.9Mdownloads / mo

See also llm · poml · pdd-cli · promptflow · renderers · prompty · pydantic-handlebars · ell-ai · dynamicprompts · toon-format