Metadata-Version: 2.4
Name: embody
Version: 0.1.7
Summary: Generate templated objects
Project-URL: Homepage, https://github.com/i2mint/embody
Author: Thor Whalen
License: Apache-2.0
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: dol
Provides-Extra: dev
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Requires-Dist: ruff>=0.1.0; extra == 'dev'
Provides-Extra: docs
Requires-Dist: sphinx-rtd-theme>=1.0; extra == 'docs'
Requires-Dist: sphinx>=6.0; extra == 'docs'
Description-Content-Type: text/markdown

# embody

Generate templated objects

[Documentation](https://i2mint.github.io/embody/)

To install:	```pip install embody```


# Examples

```python
>>> from embody.templater import Templater
>>> # the following template has templated dicts, strings, and lists
>>> template = {
...     'hello': '{name}',
...     'how are you': ['{verb}', 2, '{name} and {verb} again']
... }
>>> g = Templater.template_func(template=template)
>>> g(name='NAME', verb="VERB")
{'hello': 'NAME', 'how are you': ['VERB', 2, 'NAME and VERB again']}
>>> str(g.__signature__)
'(*, name, verb)'
```
