LIBUCL
yj
Our great sponsors
LIBUCL | yj | |
---|---|---|
5 | 6 | |
1,594 | 921 | |
- | - | |
7.9 | 3.6 | |
4 days ago | 4 months ago | |
C | Go | |
BSD 2-clause "Simplified" License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
LIBUCL
-
That's a Lot of YAML
Have you seen ucl? https://github.com/vstakhov/libucl
It seems very similar.
-
Structured configuration in Go
Structured configuration is the type of configuration language I wanted for Djinn, whereby parameters could be grouped together into blocks, and nested within each other. Hence, the structure. The language I came up with was heavily influenced by HCL, and libucl and has support for duration and size literal values. Below is what the language looks like,
- Libucl: Universal configuration language parser library
- An Intuition for Lisp Syntax
-
The YAML file of Prometheus Operator has over 13k lines, one of the longest YAML files on GitHub ever
Here you go: https://github.com/vstakhov/libucl
yj
-
That's a Lot of YAML
For anyone looking for such a script, there's some CLIs that make it easy. One is `yq -o props` [1], another way is to use `yq -j` or `yj` [2] to convert to JSON and pipe it to `gron` [3].
[1] https://github.com/mikefarah/yq
[2] https://github.com/sclevine/yj
[3] https://github.com/tomnomnom/gron
- Conversion of HCL to/from JSON
-
Tombl – Easily query .toml files from bash
Also checkout yj[1] which can convert between various formats among toml->json
[1]: https://github.com/sclevine/yj
-
What excites you about being a DevOps engineer?
json is just a subset of yaml. https://github.com/sclevine/yj
- Select, put and delete data from JSON, TOML, YAML, XML and CSV files
-
docker-compose.toml
This requires yj and obviously docker-compose to be on your $PATH. You can use yj to convert your docker-compose.yaml to TOML like this
What are some alternatives?
yaml-cpp - A YAML parser and emitter in C++
www.yaml.org - The yaml.org website
frozen - JSON parser and generator for C/C++ with scanf/printf like interface. Targeting embedded systems.
noyaml - A silly emotional rant about the state of devops tooling/the infrastructure sector in 2018. #noyaml.com
YAJL - A fast streaming JSON parsing library in C.
hjson - Hjson, a user interface for JSON
RapidJSON - A fast JSON parser/generator for C++ with both SAX/DOM style API
tombl - Easily query TOML files from bash
JsonCpp - A C++ library for interacting with JSON.
flatten-tool - Tools for generating CSV and other flat versions of the structured data
Boost.PropertyTree - Boost.org property_tree module
rq - Record Query - A tool for doing record analysis and transformation