Skip to main content

ruamel.yaml.jinja2

version:

0.2.7

updated:

2021-09-23

repository:

https://sourceforge.net/projects/ruamel-yaml-jinja2/

pypi:

https://pypi.org/project/ruamel.yaml.jinja2/

jinja2 templates for YAML files can normally not be loaded as YAML before rendering the template. This plugin allows pre and post-processing based on the round-trip processor.

It works by rewriting the jinja2 constructs and keeping track of what needs to be “un-rewritten” for this to work, you need to use the same YAML() instance for loading and dumping.

Its intended use is allowing you to update hardcoded values in the YAML file, and not to update the jinja2 template part (which might even only be available in a comment).

See, the bottom of, this StackOverflow answer or this one.

https://sourceforge.net/p/ruamel-yaml-jinja2/code/ci/default/tree/_doc/_static/license.svg?format=raw https://sourceforge.net/p/ruamel-yaml-jinja2/code/ci/default/tree/_doc/_static/pypi.svg?format=raw https://sourceforge.net/p/oitnb/code/ci/default/tree/_doc/_static/oitnb.svg?format=raw

ChangeLog

0.2.7 (2021-09-23):
  • add link to example answers on SO, add badges to README

0.2.6 (2021-09-23):
  • fix README

0.2.5 (2021-09-23):
0.2.4:
  • fix spurious .pth file for nested package.

0.2.3:
  • handling jinja2 comments, PR supplied by Jude N

0.2.2 (2017-10-11):
  • fix for Python 3.x

0.2.1 (2017-06-23):
  • add univeral wheel

0.2.0 (2017-06-23):
  • rename to __plug_in__.py

0.1.3 (2017-06-18):
  • remove generation of non-functional jinja2 executable

0.1.2 (2017-06-16):
  • added keyword, dependency on ruamel.yaml

0.1.1 (2017-06-14):
  • initial plug-in version

Release files for ruamel.yaml.jinja2 0.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ruamel.yaml.jinja2 0.2.7
File Size Uploaded
ruamel.yaml.jinja2-0.2.7.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ruamel.yaml.jinja2 0.2.7
File Interpreter ABI Platform
ruamel.yaml.jinja2-0.2.7-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 20.0 kB

Release files / ruamel.yaml.jinja2-0.2.7.tar.gz

Download URL ruamel.yaml.jinja2-0.2.7.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8449be29d9a157fa92d1648adc161d718e469f0d38a6b21e0eabb76fd5b3e663
BLAKE2b-256 checksum
How to use checksums
91e0ad199ab894f773551fc352541ce3305b9e7c366a4ae8c44ab1bc9ca3abff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.4

Release files / ruamel.yaml.jinja2-0.2.7-py2.py3-none-any.whl

Download URL ruamel.yaml.jinja2-0.2.7-py2.py3-none-any.whl
Size 5.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
eb36abd4d308794e9a497e48f98cbd2b921d2cd2946bbc9f1bea42c9b142a241
BLAKE2b-256 checksum
How to use checksums
d0ef6281be4ef86a6a0e6f06004c2e4526de3d880f4eaf4210a07a269ad330b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.4

Release history Release notifications | RSS feed

This release

0.2.7 This release

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page