Skip to content

modul/cereal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cereal

Cereal is a commandline tool that converts between different data-serialization and similar formats.

Supported conversions

to JSON to YAML to TOML
from JSON 👍 👍 👍
from YAML 👍 👍 👍
from TOML 👍 👍 👍

Usage

Input and output file formats can be set explicitly via commandline flags. If that's not the case, cereal will try to guess the file format from the file extension.

cereal [-h] [--output OUTPUT] [--from {JSON,YAML,TOML,guess}]
              [--to {JSON,YAML,TOML,guess}] [--version]
              input

positional arguments:
  input                 input file to read serialized data from

optional arguments:
  -h, --help            show this help message and exit
  --output OUTPUT, -o OUTPUT
                        output file path to write serialized data to (default:
                        None)
  --from {JSON,YAML,TOML,guess}, -f {JSON,YAML,TOML,guess}
                        input file format (default: guess)
  --to {JSON,YAML,TOML,guess}, -t {JSON,YAML,TOML,guess}
                        output file format (default: guess)
  --version             show program's version number and exit

About

Convert between common serialization formats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages