{"id":27077,"library":"jnjrender","title":"jnjrender","description":"A utility to render Jinja2 templates with a YAML environment, allowing nested template rendering within rendered text. Current version 1.0.11, with no regular release cadence.","status":"active","version":"1.0.11","language":"python","source_language":"en","source_url":"https://pypi.org/project/jnjrender/","tags":["jinja2","template","yaml","rendering"],"install":[{"cmd":"pip install jnjrender","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from jnjrender import render_template","symbol":"render_template","correct":"from jnjrender import render_template"}],"quickstart":{"code":"import os\nfrom jnjrender import render_template\n\ntemplate_string = \"Hello {{ name }}!\"\nenvironment = {\"name\": \"World\"}\nresult = render_template(template_string, environment)\nprint(result)\n# Output: Hello World!","lang":"python","description":"Basic rendering of a Jinja2 template string with a YAML-like environment dictionary."},"warnings":[{"fix":"Use yaml.safe_load(yaml_string) if you have a YAML file or string.","message":"The environment parameter expects a dictionary, not a YAML string. If you have a YAML string, you must parse it yourself (e.g., using PyYAML).","severity":"gotcha","affected_versions":"all"},{"fix":"Use the jinja2 library for full template support.","message":"The library does not handle template inheritance or complex Jinja2 features beyond string interpolation. For advanced Jinja2 usage, consider using jinja2 directly.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider migrating to jinja2's direct API or a more maintained alternative.","message":"The package has not been updated since 2020 (version 1.0.11) and may have unpatched security issues with Jinja2 dependencies.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.0.11':21 'allow':12 'cadenc':26 'current':19 'environ':11 'jinja2':6,27 'jnjrender':1 'nest':13 'regular':24 'releas':25 'render':5,15,17,30 'templat':7,14,28 'text':18 'util':3 'version':20 'within':16 'yaml':10,29","created_at":"2026-05-01T17:44:22.713687+00:00","updated_at":"2026-05-01T17:44:22.713687+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'render_template' from 'jnjrender' (/tmp/tmpsk0tx71g/venv/lib/python3.12/site-packages/jnjrender/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"jnjrender","cli_version":"version 1.2.1","type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/jnjrender/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}