Skip to main content

A tool for generating config files from given templates and variables.

Project description

Conforge

A tool for generating config files from given templates and variables.

Installation

pipx install conforge

Usage

conforge config.json

Configuration File

Currently only JSON format is supported. The syntax is:

{
    "variables": {
        "app": {
            "name": "Conforge",
            "version": "1.0.0",
            "description": "A tool for generating config files from given templates and variables."
        }
    },
    "templates": [
        {
            "template": "README.tpl",
            "outputs": [
                "README.md"
            ]
        }
    ]
}

In here, all the variables for generating the config files go under the variables key. The templates are specified in the templates key.

Each template specification is a dictionary having keys template and outputs. The value of template key is the path to the template file that should be used for generating the files specified in the outputs array. Multiple files can be given in the outputs array.

Conforge currently supports Jinja2 as the templating engine.

License

Conforge is licensed under the terms of GPL version 3.0. See the LICENSE file for details.

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

conforge-2.0.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

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

conforge-2.0.0-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file conforge-2.0.0.tar.gz.

File metadata

  • Download URL: conforge-2.0.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.1.0-35-amd64

File hashes

Hashes for conforge-2.0.0.tar.gz
Algorithm Hash digest
SHA256 cfe91227b410e863189a8ed47bff6d53fe35ccfcbdb8701c13e32696d5d1e8cf
MD5 80f79df1c108ccf2ad7e04f807a59b53
BLAKE2b-256 b5c703f7f5f5cab1e498df8ad2f47035631d118c8d9d6febbb8137368078d697

See more details on using hashes here.

File details

Details for the file conforge-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: conforge-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.1.0-35-amd64

File hashes

Hashes for conforge-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 126e9bc2a6582b3719baef042a9701e7254c4abb8a12578da06870c9aa04a633
MD5 2f149ba104c61c5054cbd691eebe9820
BLAKE2b-256 9a73935b10374ce2b01b60401a346460dc179b4abfb7a3b8fdedc1fe30d559da

See more details on using hashes here.

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