talira

YAML parser and emitter for Swift, built on LibYAML

open sourceMITfree

Yams is a YAML parser for Swift built on LibYAML. It has three groups of conversion APIs: one for Codable types, so YAML converts to and from Swift types the way JSONEncoder does, one for Swift Standard Library types, and a Yams-native Node representation. It builds with the Swift Package Manager, CMake and Ninja, or Bazel, on Apple platforms and others.

Problems it solves

  • read a YAML config file into Swift structs
  • write Swift Codable values out as YAML
  • parse YAML in a Swift command-line tool on Linux

Features

  • YAMLEncoder and YAMLDecoder for Codable types
  • conversion to and from Swift Standard Library types
  • Yams.Node native representation
  • built on LibYAML
  • Swift Package Manager, CMake and Bazel builds