Installation

Standard Installation

You can install jinja2-fragments from PyPI:

pip install jinja2-fragments

That’s it! It’s a pure Python package that only requires jinja2 as a dependency.

Development Installation

If you’re planning to contribute to the project, you can install the package with development dependencies:

pip install -e .[dev]

Testing Installation

To run tests, install the package with testing dependencies:

pip install -e .[tests]

And then run the test suite with:

pytest

Requirements

  • Python 3.9+

  • Jinja2

This package is designed to be lightweight with minimal dependencies.