New config file format
See original GitHub issueIn the course of discussions on a number of issues (see, for example, #248, #10, #30 and #227), the topic of extensions to the cookiecutter.json
format has come up. Rather than have the discussion scattered across multiple threads, let’s come up with a next-generation config format that is flexible enough to cater for all the various use cases.
Some thoughts:
- We need to continue parsing the current format as “version 1.0” for backward compatibility.
- Do we stick with JSON, or should we use YAML? (An advantage of using YAML is that the config version is detectable from the filename, an advantage of sticking with JSON is that we don’t have 2 parsers in the code).
- Maybe include a config version, so future enhancements can be versioned more easily?
Issue Analytics
- State:
- Created 9 years ago
- Comments:21 (11 by maintainers)
Top Results From Across the Web
The 3 Best Config File Formats - Jonathan Hall
But more commonly these days, new applications use some sort of standardized configuration file format, such as YAML, JSON, XML or INI.
Read more >How to Write a Configuration file in Python | by Xiaoxu Gao
The most common and standardized formats are YAML, JSON, TOML and INI. A good configuration file should meet at least these 3 criteria:...
Read more >CONFIG - Configuration File - File Format Docs
The CONFIG File format is used for server processes, software applications, and operating system settings. A programmer can write code to instruct a...
Read more >Configuration file format
configr can be used to parse JSON, INI, YAML and TOML format configuration files. Examples of json, ini, yaml, toml format configuration file...
Read more >Configuration file - Wikipedia
In computing, configuration files are files used to configure the parameters and initial settings for some computer programs.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I just started using cookiecutter but I’ll say that YAML config would be welcome. I don’t care for JSON as a config file format, because it’s too strict about having commas but not on the last element which makes it error-prone when editing.
See #848