Plim
Plim is a Python port of Ruby's Slim template language built on top of Mako Templates
What it is and what it does
Plim is a Python implementation of Ruby's Slim template language, layered on top of Mako Templates. It uses Mako's preprocessor to convert Slim's compact, indentation-based syntax into standard HTML and Mako markup. Instead of writing verbose HTML tags, you write cleaner, more readable template code that Plim translates before rendering.
The package targets web frameworks like Pyramid, Flask, and TurboGears, and includes optional support for embedded CSS preprocessors (Sass/Scss, Stylus) and JavaScript (CoffeeScript). It also provides a command-line tool (plimc) for compiling templates. However, the project is no longer actively maintained—the last release was in 2022 and there have been no updates since.
Use it for:
- Write web templates in Pyramid or Flask using Slim syntax instead of verbose HTML, reducing boilerplate and improving readability.
- Compile Plim templates to plain HTML or Mako markup via the plimc command-line tool for static site generation or build pipelines.
- Embed and preprocess Sass, Scss, or Stylus stylesheets directly within Plim templates for integrated styling.
- Port existing Ruby Slim templates to Python projects by using Plim as a compatible syntax bridge.
- Use Plim's custom parser extension system to add domain-specific template syntax on top of Mako.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Plim translates a concise Ruby-inspired template syntax into HTML and Mako markup, letting you write cleaner template code that compiles down to valid Mako templates.
No—install only if you are maintaining legacy code already using Plim. The package is abandoned (last release 1428 days ago), and its 8 runtime dependencies create maintenance risk. For new projects, prefer actively maintained alternatives like Jinja2 or Mako directly. If you need Slim-like syntax, consider whether a modern JavaScript template tool or a different Python template engine better suits your current stack.
Install
plim on PyPI
pip
pip install plimuv
uv add plimpoetry
poetry add plimInstalling Plim
Before you install
Low install friction with a pure-Python wheel, but the package is abandoned—last release was 1428 days ago with no recent maintenance. Its 8 runtime dependencies include Mako, Babel, and optional CSS/JavaScript preprocessors (PyExecJS, CoffeeScript, pyScss, stylus), which may add system-level complexity if you need those features.
License in practice
MIT license is permissive and poses no restrictions on commercial or proprietary use, modification, or redistribution.
Quickstart
pip install Plim
from plim import TemplateFile
tpl = TemplateFile('template.plim')
html = tpl.render(name='World')
Mako must be installed and working; optional features (Stylus, CoffeeScript, Sass) require their respective system tools or Python packages.
Verify before relying
- Whether the package's 8 runtime dependencies remain compatible with current versions of Mako, Babel, and preprocessor tools.
- Whether the abandoned status and lack of maintenance since 2022 poses compatibility risks with modern Python or framework versions.
- Specific Python version support beyond 'Python 3' (requires_python is unspecified in the fact sheet).
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — Mako, babel, docutils, markdown2, PyExecJS, CoffeeScript, pyScss, stylus |
| Maintenance | abandoned — 1,428 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 86,689/month — #13,844 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: Plim-1.0.0-py3-none-any.whl
Keywords: mako, templates, ruby, slim, jade, pyjade, pyramid, flask, haml, pyhaml
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
MakoMako compiles Python-embedded templates into…
permissive · top 1,000 on PyPI
pyramid-makoIntegrates the Mako templating engine with the…
permissive · top 5,000 on PyPI
djlintdjlint formats and lints HTML templates with…
copyleft · top 5,000 on PyPI
empyEmPy is a templating system that embeds Python…
permissive · top 15,000 on PyPI
jinja_partialsAdds a `render_partial()` function to Jinja2…
permissive · top 5,000 on PyPI
docling-slimDocling Slim is a lightweight, modular SDK for…
permissive · top 5,000 on PyPI
pyramid-jinja2Integrates the Jinja2 templating engine with…
permissive · top 5,000 on PyPI
html5taggerGenerates HTML5 markup programmatically using…
permissive · top 5,000 on PyPI
pybars3Pybars3 compiles and renders Handlebars.js…
copyleft · top 15,000 on PyPI
pyScssCompiles Sass/SCSS stylesheets to CSS,…
permissive · top 15,000 on PyPI