
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
py-level-fleet
Advanced tools
A powerful Vue.js-like templating engine for Python using Jinja2. This package provides a familiar Vue.js syntax while leveraging the robust features of Jinja2.
p- directivespip install py_level_fleet
from py_level_fleet import render_template
template = """
<div p-if="show">
<p p-text="message"></p>
</div>
<ul>
<li p-for="item in items" p-key="item.id">{{ item.name }}</li>
</ul>
"""
data = {
'show': True,
'message': 'Hello, World!',
'items': [{'id': 1, 'name': 'Item 1'}, {'id': 2, 'name': 'Item 2'}]
}
output = render_template(template, data)
print(output)
p-if: Conditional renderingp-else-if: Alternative conditionp-else: Fallback contentp-for: List renderingp-key: Unique key for list itemsp-bind: Dynamic attribute bindingp-text: Text content bindingp-html: HTML content bindingp-show: Conditional displayp-on: Event handlingp-model: Two-way data bindingp-pre: Skip compilationp-once: Render oncep-cloak: Hide until compiledfrom py_level_fleet import VueJinjaEngine
engine = VueJinjaEngine(enable_async=True)
output = await engine.render_template_async(template, data)
from py_level_fleet import VueJinjaEngine
engine = VueJinjaEngine(sandboxed=True)
output = engine.render_template(template, data)
from py_level_fleet import VueJinjaEngine
from babel.support import Translations
translations = Translations.load('locale', ['en'])
engine = VueJinjaEngine(i18n_translations=translations)
output = engine.render_template(template, data)
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Vishnu Prasad - GitHub
FAQs
A Vue.js-like templating engine using Jinja2 for Python
We found that py-level-fleet demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.