semvec/pypi-packages huggingface dataset:
jonja 0.1.6
Simple jinja-based texts and objects render
License: MIT
Requires Python: <4,>=3.10
Keywords: jinja, template, text

# jonja
[![PyPI version](https://badge.fury.io/py/jonja.svg)](https://badge.fury.io/py/jonja)
![PyPI downloads per mounth](https://img.shields.io/pypi/dm/jonja)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/UT1C/jonja)

Jinja-based texts and objects render.

## Installation
```
pip install jonja
```

## Usage
1. Make template
`hello.j2`
```j2
Hello, {{ username }}!
*#!#*
world:
  $cls: "types:SimpleNamespace"
  $kwargs: {name: earth, size: {{ world_size }} }
```
2. Make env
```py
from pathlib import Path
from jonja import JonjaEnv
env = JonjaEnv(Path.cwd() / "static" / "templates")
```
3. Render
```py
text, objs = await env.render("hello", username="mikk", world_size=10_000)
```

## TODO
- [ ] make deepcopy of cached generated objects (maybe controlled by option on both env and render side)
yamt 1.0.2
yet another monkey toolkit
License: MIT
Requires Python: <4.0,>=3.10
Keywords: utils, tools, misc

# yamt (yet another monkey toolkit)
[![PyPI version](https://badge.fury.io/py/yamt.svg)](https://badge.fury.io/py/yamt)
![PyPI downloads per mounth](https://img.shields.io/pypi/dm/yamt)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/UT1C/yamt)

## Installation
```
pip install yamt
```