Generate templated objects
Project description
embody
Generate templated objects
To install: pip install embody
Examples
>>> 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)'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
embody-0.1.7.tar.gz
(339.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
embody-0.1.7-py3-none-any.whl
(23.2 kB
view details)
File details
Details for the file embody-0.1.7.tar.gz.
File metadata
- Download URL: embody-0.1.7.tar.gz
- Upload date:
- Size: 339.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d60465fcda8ac303b5be5ca383d1f26e54fc54a55c49ffa62ce96e40a67e3b7
|
|
| MD5 |
8c51547ed6123ad8429b9b02d4d95935
|
|
| BLAKE2b-256 |
662ed67cd37df7d3fdf661dd005b50eb60490e79b2d6d192e1279eb50f46451e
|
File details
Details for the file embody-0.1.7-py3-none-any.whl.
File metadata
- Download URL: embody-0.1.7-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f21159c038487bc777313d55ecb0a751c6076c11977d88711cec78d79117d9e
|
|
| MD5 |
fdabecda4674ca45c359d1efc82cb646
|
|
| BLAKE2b-256 |
1a0a9efeea6ffaf6eeeac2ad850ef0a6a3e33274fef4091bdf893a52206e9200
|