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-1.0.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

conforge-1.0.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: conforge-1.0.0.tar.gz
  • Upload date:
  • Size: 14.9 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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 52ea977499e930e52d15497191fdb56ae8ed9fc2bfcf2d5b14cb29b9ce5f4092
MD5 78e1719b963ac579bf3d2eccfea034c6
BLAKE2b-256 32be9373327690cbee8e323e764be525a65759f551c3169cff4eb88afbcdf3f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: conforge-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 938332f0a48e3658d96819369b5e4dd69144d0ca2ea74e660b5f8ae219ba15c4
MD5 d14b568118c02bb4caffb7218b2f738f
BLAKE2b-256 fa3ee59b05db0d93b7e82f6a17ca08c3bb21a426222c9459d2900d1cb2c50a09

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