Skip to main content

Fuchs Templates

Fuchs Templates is a simple template engine for HTML/XML written in Python.

Fuchs is the successor of TEX (Template Engine X)

Inspiration

Fuchs was clearly influenced by template engines like Handlebars, Jinja and Genshi. And deliberately combines everything to ensure the best comfort with the highest quality.

Functional references

Fuchs takes its cue from PHP, it has a syntax that allows to execute Python code.

<!DOCTYPE html>
<html>
    <?fuchs 
        # valid python code inside here
        abc = "abc"
    ?>
    <p>{{abc}}</p>
</html>
<!DOCTYPE html>
<html>
    <?fuchs 
        # valid python code inside here
        import random
        abc = random.randint(1,10)
    ?>
    <p>{{abc}}</p>
</html>

Why not Jinja?

For my web framework Wire, I really wanted something that came from myself. I mean, it's easy to add any dependency and be satisfied. But, I don't want that.

Note

Since Fuchs works exclusively on the server side, any security measures were removed when evaluating the code. Keywords like quit(), exit() etc. are therefore usable. Please avoid using them.

Metadata

Release files for wire-fuchs 0.1.0

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

Source distribution (sdist)

Source distribution for wire-fuchs 0.1.0
File Size Uploaded Provenance
wire-fuchs-0.1.0.tar.gz 4.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wire-fuchs 0.1.0
File Interpreter ABI Platform
wire_fuchs-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / wire-fuchs-0.1.0.tar.gz

Download URL wire-fuchs-0.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
70088bf0631eb9c8638feba0e24564163a7a21dd3321f8205c1a581a57499047
BLAKE2b-256 checksum
How to use checksums
7f1e9f632c6d482756a3027c85c63467dececda56bacf3f833830b30c2f23a62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.9 Linux/5.10.84-1-MANJARO

Release files / wire_fuchs-0.1.0-py3-none-any.whl

Download URL wire_fuchs-0.1.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48a4e3dfc73ad3a0646570ffff0da96e4de2cf0519d09d6d594df6c5daa6b3df
BLAKE2b-256 checksum
How to use checksums
f5ed2dee2348f234db6af83469e125fd0988854865d3c940a225e6aee5e6e75f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.9 Linux/5.10.84-1-MANJARO

Security for wire-fuchs 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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