python-liquid 3.0.0


pip install python-liquid

  Latest version

Released: Nov 13, 2026


Meta
Author: James Prior
Requires Python: >=3.12

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Programming Language
  • Python
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14
  • Python :: 3.15
  • Python :: Implementation :: CPython
  • Python :: Implementation :: PyPy

Python Liquid

Python Liquid is a Python engine for Liquid, the safe, customer-facing template language.
We follow Shopify/Liquid closely and test against the Golden Liquid test suite.

PyPi - Version conda-forge Python versions
Tests Coverage
PyPI - Downloads
License


Table of Contents

Install

Install python-liquid from PyPi using your favorite package manager.

pip

pip install python-liquid

uv

uv add python-liquid

pipenv

pipenv install -u python-liquid

conda

conda install -c conda-forge python-liquid

Links

Related Projects

Quick Start

render()

Use the package-level liquid.render() function to render a template with Liquid's default configuration. The first argument is template source code and the second is a dictionary of template variables.

import liquid

print(liquid.render("Hello, {{ you }}!", {"you": "World"}))  # Hello, World!

parse()

Use liquid.parse() to get an instance of liquid.Template, which can be rendered multiple times with different data.

from liquid import parse

template = parse("Hello, {{ you }}!")
print(template.render(you="World"))  # Hello, World!
print(template.render(you="Liquid"))  # Hello, Liquid!

Configure

You'll need to create an instance of liquid.Environment to configure Liquid, then load and render templates from that.

from liquid import Environment, CachingFileSystemLoader

env = Environment(
  autoescape=True,
  loader=CachingFileSystemLoader("./templates")
)

template = env.get_template("index.liquid")
another_template = env.parse("{% render 'greeting' %}, World!")

See docs.

Contributing

Please see Contributing to Python Liquid.

3.0.0 Nov 13, 2026
2.3.7 Nov 13, 2026
2.3.6 Oct 25, 2026
2.3.5 Oct 17, 2026
2.3.4 Oct 05, 2026
2.3.3 Sep 29, 2026
2.3.2 Sep 22, 2026
2.3.1 Aug 08, 2026
2.3.0 Jul 06, 2026
2.2.2 Jun 23, 2026
2.2.1 Jun 16, 2026
2.2.0 May 06, 2026
2.1.0 Aug 15, 2025
2.0.2 May 21, 2025
2.0.1 Mar 17, 2025
2.0.0 Mar 16, 2025
1.13.0 Feb 08, 2025
1.12.2 Dec 26, 2024
1.12.1 Feb 13, 2024
1.12.0 Feb 07, 2024
1.11.0 Feb 01, 2024
1.10.2 Dec 14, 2023
1.10.0 Sep 03, 2023
1.9.4 Aug 13, 2023
1.9.3 Jul 10, 2023
1.9.2 Apr 24, 2023
1.9.1 Apr 17, 2023
1.9.0 Apr 17, 2023
1.8.1 Feb 14, 2023
1.8.0 Jan 27, 2023
1.7.0 Jan 04, 2023
1.6.1 Dec 16, 2022
1.6.0 Dec 16, 2022
1.5.1 Dec 06, 2022
1.5.0 Nov 30, 2022
1.4.7 Oct 31, 2022
1.4.6 Oct 26, 2022
1.4.5 Sep 10, 2022
1.4.4 Sep 07, 2022
1.4.3 Aug 23, 2022
1.4.2 Aug 16, 2022
1.4.1 Aug 10, 2022
1.4.0 Aug 06, 2022
1.3.0 Jul 24, 2022
1.2.1 May 06, 2022
1.2.0 May 04, 2022
1.1.7 Apr 22, 2022
1.1.6 Mar 25, 2022
1.1.5 Mar 02, 2022
1.1.4 Feb 12, 2022
1.1.3 Jan 28, 2022
1.1.2 Jan 19, 2022
1.1.1 Jan 10, 2022
1.1.0 Dec 24, 2021
1.0.3 Dec 15, 2021
1.0.2 Dec 13, 2021
1.0.1 Dec 13, 2021
1.0.0 Dec 12, 2021
0.11.0 Nov 23, 2021
0.10.1 Nov 13, 2021
0.10.0 Nov 07, 2021
0.9.0 Oct 26, 2021
0.8.1 Jul 13, 2021
0.8.0 Jun 15, 2021
0.7.7 Jun 08, 2021
0.7.6 May 04, 2021
0.7.5 Apr 30, 2021
0.7.4 Apr 21, 2021
0.7.3 Apr 11, 2021
0.7.2 Apr 05, 2021
0.7.1 Mar 28, 2021
0.7.0 Mar 20, 2021
0.6.4 Mar 17, 2021
0.6.3 Mar 16, 2021
0.6.2 Mar 08, 2021
0.6.1 Mar 03, 2021
0.6.0 Feb 26, 2021
0.5.6 Dec 07, 2020
0.5.5 Dec 07, 2020
0.5.3 Dec 07, 2020
0.5.2 Oct 15, 2020
0.5.1 Oct 15, 2020

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
babel (>=2)
markupsafe (>=3)
python-dateutil
tzdata