Pureconfig

screenshot of Pureconfig

A boilerplate-free library for loading configuration files

Overview:

PureConfig is a Scala library that simplifies the process of loading configuration files in a boilerplate-free way. It supports reading configuration files written in HOCON, Java .properties, or JSON formats and converts them to native Scala classes. With PureConfig, users no longer need to write code to deserialize each field of the configuration manually.

Features:

  • Support for various configuration formats: PureConfig can read configuration files written in HOCON, Java .properties, or JSON formats.
  • Sealed traits and case classes support: PureConfig can convert sealed traits and case classes from the configuration file to native Scala classes without any boilerplate code.
  • Collections and optional values support: PureConfig handles collections, optional values, and other types out-of-the-box.
  • Customizable support for custom types: Users can easily add support for custom types or customize the behavior of existing types.

Summary:

PureConfig is a Scala library that simplifies the process of loading configuration files by generating the necessary boilerplate code at compile-time. It supports various configuration formats and automatically converts them to native Scala classes. With PureConfig, users can avoid writing manual deserialization code and easily customize the behavior of the library for their specific needs.