Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2022-07-21 20:55:29
Size: 571
Editor: SamatJain
Comment:
Revision 4 as of 2025-05-21 20:50:45
Size: 1774
Editor: SamatJain
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== HOCON (Human-Optimized Config Object Notation) ==

 * [[https://github.com/lightbend/config/blob/main/HOCON.md|Specification]]
 * Examples
   * [[https://docs.spongepowered.org/stable/en/server/getting-started/configuration/sponge-conf.html|sponge's global.conf]]
 * Parsing into dataclasses
  * pyhocon + pydantic: https://gist.github.com/martin1keogh/2817e338fb06ad3573cffcfb8e713ac7
  * another pyhocon + pydantic: https://gist.github.com/GreyElaina/d851e9c9304085f7101d45725d378f68
 * [[https://github.com/chimpler/pyhocon/|pyhocon]]: Provides CLI tool for conversion between formats
 * Dataclasses for configuration management
  * [[https://github.com/zifeo/dataconf|dataconf]]: HOCON output by default
  * [[https://github.com/stasharrofi/pytyped/tree/master/pytyped-hocon|pytyped-hocon]]

== Others ==

 * HConfig
 * Dhall
Line 17: Line 35:
 * Used by FreeBSD  * Used by FreeBSD, very similar to nginx
Line 19: Line 37:
 * Seems best, similar to HOCON, but no modern Python package?
  * Install python bindings from libucl git repo: https://github.com/vstakhov/libucl/issues/202

== nginx conf ==

 * [[https://pypi.org/project/crossplane-ng/|crossplane-ng]] / [[https://github.com/nginxinc/crossplane|crossplane] parses nginx conf in Python

HOCON (Human-Optimized Config Object Notation)

Others

  • HConfig
  • Dhall

HCL

TOML

YAML

Hjson

ucl (Universal Configuration Language)

nginx conf

KDL

SamatsWiki: ConfigurationLanguages (last edited 2025-05-22 05:28:26 by SamatJain)