Skip to content

simple-eiffel/simple_codec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple_ library logo

simple_codec

Documentation | GitHub

License: MIT Eiffel Design by Contract

Unified API for encoding/decoding structured data across multiple formats (JSON, TOML, YAML, XML).

Part of the Simple Eiffel ecosystem.

Status

Planned - Design document available at simple_codec_design.md

Overview

Instead of learning four different APIs, developers use one common interface with format-specific backends:

codec: SIMPLE_CODEC
data: CODEC_VALUE

create codec

-- Parse any format (auto-detected from extension)
data := codec.parse_file ("config.toml")
data := codec.parse_file ("config.json")
data := codec.parse_file ("config.yaml")

-- Same API regardless of source
name := data.string_item ("name")

-- Convert between formats
codec.to_file (data, "output.json", {CODEC_FORMAT}.json)

Dependencies

  • simple_json (JSON backend)
  • simple_toml (TOML backend)
  • simple_yaml (YAML backend)
  • simple_xml (XML backend)

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages