Plugin which provides XML format (data input) support for jinjanator
Project description
jinjanator-plugin-format-xml: Provides XML format (data input) support for jinjanator
This plugin allows jinjanator to parse XML data for processing in
templates. The format can be selected using --format xml or
autoselected by using a data file with a name ending with .xml.
Installation
pip install jinjanator-plugin-format-xml
Usage
Suppose you have an NGINX configuration file template, nginx.j2:
server {
listen 80;
server_name {{ nginx.hostname }};
root {{ nginx.webroot }};
index index.htm;
}
And you have an XML file with the data, nginx.xml:
<nginx>
<hostname>
localhost
</hostname>
<webroot>
/var/www/project
</webroot>
</nginx>
This is how you render it into a working configuration file:
$ jinjanate nginx.j2 nginx.xml > nginx.conf
Options
process-namespaces: configures the XML parser to replace namespace references in element names with the corresponding namespaces fromxmlnsattributes in the top-level element in the document.
Release Information
Backwards-incompatible Changes
-
Support for Python 3.9 has been removed, and support for Python 3.14 has been added. Since the minimum supported version is now 3.10, the code has been updated to use features introduced in that version.
-
Upgraded to version 25.1.0 of jinjanator-plugins.
Additions
- Added testing against Python 3.13 (again).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file jinjanator_plugin_format_xml-25.1.0.tar.gz.
File metadata
- Download URL: jinjanator_plugin_format_xml-25.1.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18b41587963e586af8abef7f2ca3bffc3332c954fe97c5f08143c4b33edb551a
|
|
| MD5 |
8f1e4d042c83ae5947f28a0cb4cdee42
|
|
| BLAKE2b-256 |
ad5f9d1ff233d4dbd91e8e0c01b52b835a3853575668fcfe50a590b4f394fa08
|
Provenance
The following attestation bundles were made for jinjanator_plugin_format_xml-25.1.0.tar.gz:
Publisher:
pypi-package.yml on kpfleming/jinjanator-plugin-format-xml
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jinjanator_plugin_format_xml-25.1.0.tar.gz -
Subject digest:
18b41587963e586af8abef7f2ca3bffc3332c954fe97c5f08143c4b33edb551a - Sigstore transparency entry: 621364110
- Sigstore integration time:
-
Permalink:
kpfleming/jinjanator-plugin-format-xml@cbe0658d84f6ae64a5c606ed75c4927da857a49e -
Branch / Tag:
refs/tags/25.1.0 - Owner: https://github.com/kpfleming
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-package.yml@cbe0658d84f6ae64a5c606ed75c4927da857a49e -
Trigger Event:
release
-
Statement type:
File details
Details for the file jinjanator_plugin_format_xml-25.1.0-py3-none-any.whl.
File metadata
- Download URL: jinjanator_plugin_format_xml-25.1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00bc7992b9be596e6e1a3fa278b584195d7ff86ef5ee2445980beda15d3fa7c2
|
|
| MD5 |
3e9eecb0cc23a4e89b7f33243977a3a1
|
|
| BLAKE2b-256 |
0f4789bc806f05e2240f96ed57e3309682c9b3b5d5f8c96d887c4607cba7f1f0
|
Provenance
The following attestation bundles were made for jinjanator_plugin_format_xml-25.1.0-py3-none-any.whl:
Publisher:
pypi-package.yml on kpfleming/jinjanator-plugin-format-xml
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jinjanator_plugin_format_xml-25.1.0-py3-none-any.whl -
Subject digest:
00bc7992b9be596e6e1a3fa278b584195d7ff86ef5ee2445980beda15d3fa7c2 - Sigstore transparency entry: 621364111
- Sigstore integration time:
-
Permalink:
kpfleming/jinjanator-plugin-format-xml@cbe0658d84f6ae64a5c606ed75c4927da857a49e -
Branch / Tag:
refs/tags/25.1.0 - Owner: https://github.com/kpfleming
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-package.yml@cbe0658d84f6ae64a5c606ed75c4927da857a49e -
Trigger Event:
release
-
Statement type: