Python Template engine

Open-source Python projects categorized as Template engine

Top 18 Python Template engine Projects

  • Jinja2

    A very fast and expressive template engine.

    Project mention: Jinja and Django Jinja | reddit.com/r/Python | 2023-03-03

    But, on the other hand, I can read in the jinja repository that there is not the same Switching From Other Template Engines and also exists documentation about Support for templates engines

  • MicroWebSrv

    A micro HTTP Web server that supports WebSockets, html/python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32)

    Project mention: way to control led strips by phone | reddit.com/r/led | 2022-10-26

    setting up your own simple webserver

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • MicroWebSrv2

    The last Micro Web Server for IoTs (MicroPython) or large servers (CPython), that supports WebSockets, routes, template engine and with really optimized architecture (mem allocations, async I/Os). Ready for ESP32, STM32 on Pyboard, Pycom's chipsets (WiPy, LoPy, ...). Robust, efficient and documented!

  • MarkupSafe

    Safely add untrusted strings to HTML/XML markup.

  • Mako

    Mirror of Mako Templates for Python - gitthub main is now at https://github.com/sqlalchemy/mako (by zzzeek)

    Project mention: Marko: An HTML-Based Language | news.ycombinator.com | 2023-01-30

    At least in Python, that's kinda what https://www.makotemplates.org is. Although if you're just using a subset of PHP suitable for templating, it's not really clear to me what benefit there is to PHP syntax versus, say, Jinja2 syntax.

  • Chameleon

    Fast HTML/XML template engine for Python (by malthe)

    Project mention: Ask HN: What is the best language/framework for getting things done on the web? | news.ycombinator.com | 2022-05-14

    My own favorite syntax(es) are TAL, TALES, and METAL (Template Attribute Language, TAL Expression Syntax, and Macro Expansion TAL). There are many implementations in various languages. The OG implementation was in Python as part of the Zope:

    https://pagetemplates.readthedocs.io/en/latest/tal.html

    These days I reach for Chameleon, another Python implementation:

    https://chameleon.readthedocs.io/

    I'm aware of at least five implementations for JS: template-tal, jstal, Distal, DomTal, ZPT-JS.

  • jinja_partials

    Simple reuse of partial HTML page templates in the Jinja template language for Python web frameworks. #pypackage

    Project mention: Building a fullstack app with Flask and HTMx | news.ycombinator.com | 2022-03-29

    Recently saw Michael Kennedy's presentation at Python Web Conference where he talks about this. He also has a course on using Flask + HTMX. Even if you don't take the course, you do have access to the github repo for that course.

    https://github.com/talkpython/htmx-python-course

    He wrote a small library extending Jinja that does what you're referencing here, I believe. It's a little different than Jinja macros and include (you can reference the github issues for a discussion on that).

    https://github.com/mikeckennedy/jinja_partials

    Maybe that's what you're looking for?

  • Sonar

    Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • emrichen

    A Template engine for YAML & JSON

    Project mention: Yq is a portable yq: command-line YAML, JSON, XML, CSV and properties processor | news.ycombinator.com | 2023-02-04

    Templating yaml with a text templating language like Helm's templating language is a terrible idea. Templating objects and serializing them to Yaml (with input also being Yaml) I find quite nice: https://github.com/con2/emrichen

  • pyxl4

    Extend Python syntax with HTML.

    Project mention: Rux: A JSX-inspired way to render view components in Ruby | news.ycombinator.com | 2023-03-06
  • cinje

    A Pythonic and ultra fast template engine DSL.

  • Template Render Engine

    Template Render Engine

  • jinsi

    JSON/YAML homoiconic templating language

  • fastgen

    A CLI for your next FastAPI project

    Project mention: ⚡FastGen v0.3.5, What's new !? | reddit.com/r/Python | 2022-12-15

    For Contributions and Issues visit the fastgen Github repo

  • ix

    Simple dotfile pre-processor with a per-file configuration and no dependencies.

  • discord-qalib

    👾 Discord library built on discord.py to simplify source code by rendering templates of embeds and menus

    Project mention: Flask-like library for discord.py | reddit.com/r/Python | 2023-01-14

    The link to the repository is https://github.com/YousefEZ/discord-qalib and is on pypi https://pypi.org/project/discord-qalib/ Let us know if there should be other features, and feel free to contribute! There is also documentation on the wiki and GitHub pages, https://yousefez.github.io/discord-qalib/

  • tempren

    Template-based file renaming utility

    Project mention: Tempren - template-based file renaming utility | reddit.com/r/commandline | 2022-09-30

    For some time I have been looking for something more flexible than simple append/replace renamers and I ended up writing my own template-based batch file renaming utility - tempren.

  • htmotor

    ✈️ HTML Template engine for Python. Supports XSS preventation and many more!

  • yate

    Yet another template engine. Yate is a small, fast html template engine.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-03-06.

Python Template engine related posts

Index

What are some of the best open-source Template engine projects in Python? This list will help you:

Project Stars
1 Jinja2 9,118
2 MicroWebSrv 547
3 MicroWebSrv2 535
4 MarkupSafe 525
5 Mako 173
6 Chameleon 158
7 jinja_partials 115
8 emrichen 86
9 pyxl4 73
10 cinje 29
11 Template Render Engine 18
12 jinsi 16
13 fastgen 16
14 ix 11
15 discord-qalib 10
16 tempren 8
17 htmotor 3
18 yate 1
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com