Skip to main content

Plugin which provides TOML format (data input) support for jinjanator

Project description

jinjanator-plugin-format-toml: Provides TOML format (data input) support for jinjanator

This plugin allows jinjanator to parse TOML data for processing in templates. The format can be selected using --format toml or autoselected by using a data file with a name ending with .toml.

Installation

pip install jinjanator-plugin-format-toml

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 a TOML file with the data, nginx.toml:

[nginx]
hostname="localhost"
webroot="/var/www/project"

This is how you render it into a working configuration file:

$ jinjanate nginx.j2 nginx.toml > nginx.conf

Options

This format does not support any options.

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).

→ Full Changelog

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

jinjanator_plugin_format_toml-25.1.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file jinjanator_plugin_format_toml-25.1.0.tar.gz.

File metadata

File hashes

Hashes for jinjanator_plugin_format_toml-25.1.0.tar.gz
Algorithm Hash digest
SHA256 5cf78a216d3db58b25d88db88df2872fe788cad2f7326fbff62b6a56fcc0d213
MD5 0e3950279153803d2d95cb90a1570c42
BLAKE2b-256 2c71684b2b7452acc204d2a135cc1073805e09ab55e3d58cb29c8efe32edb7de

See more details on using hashes here.

Provenance

The following attestation bundles were made for jinjanator_plugin_format_toml-25.1.0.tar.gz:

Publisher: pypi-package.yml on kpfleming/jinjanator-plugin-format-toml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jinjanator_plugin_format_toml-25.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jinjanator_plugin_format_toml-25.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c6213a54e1ec66a0e01218544697130f87186bbd8d2a37425052787a5de303f
MD5 66bfb7d54d796a06e4a5becbd4547d7c
BLAKE2b-256 90b99f145733051310b7a094c6c42dad9459c00bf3ae6a83b69934284f208579

See more details on using hashes here.

Provenance

The following attestation bundles were made for jinjanator_plugin_format_toml-25.1.0-py3-none-any.whl:

Publisher: pypi-package.yml on kpfleming/jinjanator-plugin-format-toml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page