nestedtext
yamlpath
nestedtext | yamlpath | |
---|---|---|
8 | 9 | |
335 | 109 | |
- | - | |
7.9 | 4.8 | |
7 days ago | 3 months ago | |
Python | Python | |
MIT License | ISC License |
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.
nestedtext
-
The yaml document from hell
As /u/astatine said, an excellent but under-recognized alternative syntax for configuration files is NestedText, where everything is a string unless the ingesting code says otherwise, and there is no escaping needed ever.
-
Yaml: First Class Citizen?
I don't know what traits from markdown you'd hope for, but for a relatively obscure but technically excellent format, you can check out NestedText.
-
A Nigthtmare called YML
I recently came to appreciate and favor an alternative format called NestedText. Like YAML, indentation is used for structure, so like YAML, you may hate it.
-
nt2: a CLI converter between NestedText and JSON, YAML, or TOML
I recently discovered NestedText, and really appreciate the design. To me, it hits the nail on the head where projects like strictyaml and hjson come very close.
-
YAML: It's Time to Move On
I'm glad to see people experimenting with alternative document/object representations, but this one might be a hard sell: based on the README[1], it only has Python, Zig and Janet implementations so far. One of the nice things about YAML (and JSON, TOML, etc.) is that they have decently mature C, C++, or Rust libraries that other languages bind to.
[1]: https://github.com/KenKundert/nestedtext
-
My two favorite things share the same love as me for YAML!
NestedText
-
Json alternatives
NestedText was left out. Has the feel of YaML, without all the complexity and user traps.
- KenKundert/nestedtext ... Human Readable and Writable Data Interchange Format
yamlpath
-
jq 1.7 Released
A couple more alternatives:
https://github.com/kellyjonbrazil/jello
https://github.com/wwkimball/yamlpath
-
The yaml document from hell
I used the official reference implementation to make a CLI converter between NestedText and TOML, JSON, and YAML. When generating one of these formats, you can use yamlpath queries to concisely but explicitly apply supported types to data elements.
-
The YAML Document from Hell
I'm a huge fan of NestedText, especially as there is no escaping needed ever.
If you ever want to use it as a pre-format to generate either TOML, JSON, or YAML, I used the official reference implementation to make a CLI converter between them and NestedText.
When generating one of these formats, you can use yamlpath queries to concisely but explicitly apply supported types to data elements.
- My CLI converter: https://github.com/AndydeCleyre/nestedtextto
- yamlpath info: https://github.com/wwkimball/yamlpath/wiki/Search-Expression...
-
Replace Specific Lines in a JSON file
Not what you're asking, but if you wanted to do this with yamlpath:
-
jq help: is it possible to replace a key-value in one json file using the data from another json file?
You may want to take a look at yamlpath for this. If I remember when I'm at a computer I'll try to post more.
-
An introduction to the magic of jq - Understanding the basics of jq with a realistic example
I'm no expert in any of these tools, but here are some yamlpath and jello examples to match:
-
Top python libraries/ frameworks that you suggest every one
yamlpath
-
jq error out when parse multiple lines without \n
FWIW, yamlpath (tested with 3.6.4) seems to strip and forgive those characters:
- List of JSON tools for command line
What are some alternatives?
strictyaml - Type-safe YAML parser and validator.
jiq - jid on jq - interactive JSON query tool using jq expressions
sublime-json5 - JSON5 support for Sublime Text
jinsi - JSON/YAML homoiconic templating language
yaml-reference-parser
taskipy - the complementary task runner for python
skycfg - Skycfg is an extension library for the Starlark language that adds support for constructing Protocol Buffer messages.
pxi - 🧚 pxi (pixie) is a small, fast, and magical command-line data processor similar to jq, mlr, and awk.
dhall-lang - Maintainable configuration files
nvim-jqx - Populate the quickfix with json entries
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
Textrude - Code generation from YAML/JSON/CSV models via SCRIBAN templates