python-liquid
A Python engine for the Liquid template language.
Decision gist · record as of 2026-08-14
Yes. Python Liquid is actively maintained, has no known vulnerabilities, installs with low friction, and is MIT-licensed. It is a solid choice if you need Liquid template rendering in Python—particularly if you are migrating from Shopify or another Liquid implementation, or if you need to safely render customer-supplied templates. The Golden Liquid test suite alignment is a strong signal of correctness.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with five common runtime dependencies (babel, markupsafe, python-dateutil, pytz, importlib-resources).
- Actively maintained—last commit 2026-08-08, released 6 days ago.
- Supports Python 3.9 through 3.14 on CPython and PyPy.
License · maintenance · safety
MIT (permissive) — MIT license (permissive): you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions, provided you include the license notice.
last release 2026-08-08 (6 days) · last repo commit 2026-08-08 · 98 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,293,845 downloads/mo, #4,096 on PyPI
Alternatives
Verify before relying
from liquid import render
print(render("Hello, {{ you }}!", you="World"))
# Hello, World!
# Or parse once, render many times:
from liquid import parse
template = parse("Hello, {{ you }}!")
print(template.render(you="World"))- Performance characteristics compared to other Liquid implementations or template engines
- Whether the Golden Liquid test suite coverage is complete or if edge cases remain
- Support for custom filters, tags, or extensions beyond the standard Liquid spec
What it is and what it does
Python Liquid is a Liquid template engine—a safe, expression-based template language originally from Shopify—implemented in pure Python. It parses and renders templates that contain variable placeholders, filters, control flow (if/for/unless), and other Liquid constructs, making it suitable for customer-facing or untrusted template input where you need safety guarantees that general-purpose Python code execution would not provide.
The package offers two main entry points: a simple `render()` function for one-off template rendering, and an `Environment` class for managing multiple templates, configuring autoescape and template loaders, and reusing parsed templates. It follows Shopify's Liquid specification closely and validates against the Golden Liquid test suite. Runtime dependencies handle date/time operations (python-dateutil, pytz), internationalization (babel), HTML escaping (markupsafe), and resource loading (importlib-resources).
Use it for
- Render user-supplied or customer-provided templates safely without executing arbitrary Python code
- Generate HTML emails or documents from template files with variable substitution and conditional logic
- Build a template-based reporting or document generation system with Shopify Liquid syntax
- Migrate Liquid templates from Ruby or JavaScript environments to a Python backend
- Implement a theme or customization system where end users write templates in a familiar, safe syntax
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Python Liquid is actively maintained, has no known vulnerabilities, installs with low friction, and is MIT-licensed. It is a solid choice if you need Liquid template rendering in Python—particularly if you are migrating from Shopify or another Liquid implementation, or if you need to safely render customer-supplied templates. The Golden Liquid test suite alignment is a strong signal of correctness.
Install
python-liquid on PyPI
Before you install
Low friction: pure Python wheel with five common runtime dependencies (babel, markupsafe, python-dateutil, pytz, importlib-resources). Actively maintained—last commit 2026-08-08, released 6 days ago. Supports Python 3.9 through 3.14 on CPython and PyPy.
License in practice
MIT license (permissive): you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions, provided you include the license notice.
Quickstart
from liquid import render
print(render("Hello, {{ you }}!", you="World"))
# Hello, World!
# Or parse once, render many times:
from liquid import parse
template = parse("Hello, {{ you }}!")
print(template.render(you="World"))
Verify before relying
- Performance characteristics compared to other Liquid implementations or template engines
- Whether the Golden Liquid test suite coverage is complete or if edge cases remain
- Support for custom filters, tags, or extensions beyond the standard Liquid spec
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesbabelimportlib-resourcesmarkupsafepython-dateutilpytz |
| Maintenance | Actively maintained 6 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,293,845 / month, #4,096 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming 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: python_liquid-2.3.1-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 › “safe template rendering”
- python-liquidPython Liquid is a template engine that renders Liquid templates—a…
- tinyhtmlRenders HTML5 safely from Python expressions using a functional API…
- django-markdownifyA Django template filter that converts Markdown text to sanitized…
Give your agent the search over MCP, or paste the wish link into any chat.
More Markup packages
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.
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.
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.
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.
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.
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.
See also liquidpy · curlylint · djlint · tinyhtml · Jinja2 · ShopifyAPI · chevron · pydantic-handlebars · html5tagger · django-mjml