Skip to content

JinjaManager#

Mypy_boto3_builder Index / Mypy Boto3 Builder / JinjaManager

Auto-generated documentation for mypy_boto3_builder.jinja_manager module.

JinjaManager#

Show source in jinja_manager.py:28

Jinja2 Environment manager.

Signature#

class JinjaManager:
    def __init__(self) -> None: ...

JinjaManager.escape_md#

Show source in jinja_manager.py:72

Escape underscore characters.

Signature#

@staticmethod
def escape_md(value: str) -> str: ...

JinjaManager().get_template#

Show source in jinja_manager.py:79

Get jinja2.Template.

Signature#

def get_template(self, template_path: Path) -> Template: ...

JinjaManager.singleton#

Show source in jinja_manager.py:53

Get singleton instance.

Signature#

@classmethod
def singleton(cls) -> "JinjaManager": ...

JinjaManager.update_globals#

Show source in jinja_manager.py:62

Update global variables in jinja2.Environment.

Arguments#

  • kwargs - Globals to set.

Signature#

@classmethod
def update_globals(cls, **kwargs: str | bool | Callable[..., Any]) -> None: ...

JinjaManagerError#

Show source in jinja_manager.py:22

Base JinjaManager exception.

Signature#

class JinjaManagerError(Exception): ...