copier-templates-extensions
Deprecated (renamed). Install `copier-template-extensions` instead.
Decision gist · record as of 2026-08-14
Yes, if you maintain or author Copier templates and need to bundle custom Jinja extensions or dynamic context logic. The package is stable, permissively licensed, and has low install friction. The aging maintenance status (395 days since last release) is a minor concern but not a blocker—the repository is not archived, and the package supports current Python versions. Install it only if you are actively using Copier templates; it has no standalone utility.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; intended for use within Copier template projects, not standalone.
- Low friction install with a single runtime dependency.
- Maintenance status is aging—last release was 395 days ago—but the repository remains active and the package supports current Python versions through 3.14.
License · maintenance · safety
ISC (permissive) — Licensed under ISC (permissive), allowing free use, modification, and distribution with minimal restrictions.
last release 2025-07-15 (395 days) · last repo commit 2025-07-15 · 35 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 138,153 downloads/mo, #11,342 on PyPI
Alternatives
Verify before relying
pip install copier-template-extensions
# In copier.yml:
_jinja_extensions:
- copier_template_extensions.TemplateExtensionLoader
- extensions/context.py:ContextUpdater
# In extensions/context.py:
from copier_template_extensions import ContextHook
class ContextUpdater(ContextHook):
def hook(self, context):
context["derived_value"] = some_computation(context)- Whether the package is actively maintained or in maintenance-only mode given the 395-day gap since last release.
- Real-world performance or stability impact when context hooks run across multiple Copier rendering phases.
What it is and what it does
Copier Template-Extensions is a Jinja2 extension for the Copier project templating tool that solves a specific problem: loading custom Jinja2 extensions from file paths relative to your template root instead of requiring Python dotted import paths. This is useful when you want to bundle custom filters, tests, or macros directly inside your template project without publishing them as separate packages.
The package provides two main features. First, the TemplateExtensionLoader extension lets you register custom extensions by specifying a relative file path and class name (e.g., `extensions/slugify.py:SlugifyExtension`). Second, it includes a ContextHook base class that lets you modify the template rendering context programmatically—adding computed values, inferring answers from user input, or fetching external data—without cluttering your template files with complex Jinja logic. This is particularly useful in template projects where you want to keep template filenames and logic clean while still supporting dynamic behavior.
Use it for
- Add custom Jinja filters (like slugify) to a Copier template without publishing a separate package.
- Infer template variables from user answers (e.g., derive module names based on project type) using a context hook.
- Organize template-specific extensions in a dedicated directory within your template project.
- Fetch or compute context data from external sources during template rendering phases.
- Keep template filenames simple and readable by computing derived values in Python instead of Jinja macros.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you maintain or author Copier templates and need to bundle custom Jinja extensions or dynamic context logic.
The package is stable, permissively licensed, and has low install friction. The aging maintenance status (395 days since last release) is a minor concern but not a blocker—the repository is not archived, and the package supports current Python versions. Install it only if you are actively using Copier templates; it has no standalone utility.
Install
copier-templates-extensions on PyPI
Before you install
Low friction install with a single runtime dependency. Maintenance status is aging—last release was 395 days ago—but the repository remains active and the package supports current Python versions through 3.14.
Requires Python 3.9 or later; intended for use within Copier template projects, not standalone.
License in practice
Licensed under ISC (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install copier-template-extensions
# In copier.yml:
_jinja_extensions:
- copier_template_extensions.TemplateExtensionLoader
- extensions/context.py:ContextUpdater
# In extensions/context.py:
from copier_template_extensions import ContextHook
class ContextUpdater(ContextHook):
def hook(self, context):
context["derived_value"] = some_computation(context)
Verify before relying
- Whether the package is actively maintained or in maintenance-only mode given the 395-day gap since last release.
- Real-world performance or stability impact when context hooks run across multiple Copier rendering phases.
Package facts
| License | ISC permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagecopier-template-extensions |
| Maintenance | Aging 395 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 138,153 / month, #11,342 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 :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software DevelopmentTopic :: UtilitiesTyping :: Typed |
Evidence: copier_templates_extensions-0.3.2-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 › “copier context hook”
- copier-templates-extensionsProvides a Jinja2 extension for Copier that loads custom template…
- copier-template-extensionsExtends Copier's Jinja2 templating with a loader that imports custom…
- copierCopier is a template engine and CLI tool that generates projects from…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also copier-template-extensions · copier · Jinja2 · mkdocs-macros-plugin · ruamel.yaml.jinja2 · sphinx-jinja · django-debug-toolbar-template-profiler · jinja_partials · mkdocs-include-markdown-plugin · djhtml