skillfed

Plim

Plim is a Python port of Ruby's Slim template language built on top of Mako Templates

plim v1.0.0 86.7K downloads/30d#13,844 on PyPI173
Permissive license MIT Abandoned released

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 plim

uv

uv add plim

poetry

poetry add plim

Installing 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

Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: PylonsFramework :: PyramidFramework :: TurboGearsIntended Audience :: DevelopersLicense :: OSI ApprovedLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: MicrosoftOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Pre-processorsTopic :: Text Processing :: Markup :: HTML

Tags

slim template language pythonmako template preprocessorruby slim porthtml template syntaxlightweight template markupjade haml alternativeindentation-based templates
template-engineabandonedmako-based

More Python Modules packages