Skip to main content

wheezy.template

tests Coverage Status Documentation Status pypi version

wheezy.template is a python package written in pure Python code. It is a lightweight template library. The design goals achived:

  • Compact, Expressive, Clean: Minimizes the number of keystrokes required to build a template. Enables fast and well read coding. You do not need to explicitly denote statement blocks within HTML (unlike other template systems), the parser is smart enough to understand your code. This enables a compact and expressive syntax which is really clean and just pleasure to type.
  • Intuitive, No time to Learn: Basic Python programming skills plus HTML markup. You are productive just from start. Use full power of Python with minimal markup required to denote python statements.
  • Do Not Repeat Yourself: Master layout templates for inheritance; include and import directives for maximum reuse.
  • Blazingly Fast: Maximum rendering performance: ultimate speed and context preprocessor features.

Simple template:

@require(user, items)
Welcome, @user.name!
@if items:
    @for i in items:
        @i.name: @i.price!s.
    @end
@else:
    No items found.
@end

It is optimized for performance, well tested and documented.

Resources:

Install

wheezy.template requires python version 3.10+. It is independent of operating system. You can install it from pypi site:

pip install -U wheezy.template

To build from source with optional C extensions, install Cython and build without PEP 517 isolation so the build can see your environment:

pip install Cython setuptools
pip install -U --no-build-isolation --no-cache-dir wheezy.security[cython]

Note: compiling extensions requires a working C compiler toolchain.

If you run into any issue or have comments, go ahead and add on github.

Release files for wheezy.template 3.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wheezy.template 3.2.5
File Size Uploaded
wheezy_template-3.2.5.tar.gz 19.3 kB Details

Release files / wheezy_template-3.2.5.tar.gz

Download URL wheezy_template-3.2.5.tar.gz
Size 19.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c7c0bf85af0f70ca2ef4b6ea9a74ef372f73392aa17bea0d885dcba7356d0867
BLAKE2b-256 checksum
How to use checksums
431db4fb6ee3f6a0af54ac26e0425b7947bd7d9ed786a75ca173a40640c25bc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page