YAML frontend: support direct use of key:value dict for args, params, etc instead of lists of name:+value: dicts
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 155
- Forks
- 182
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 6
Description
Description
The YAML launch syntax is overly verbose for providing:
include:argumentsnode:parametersset_remap:entriesset_parameter:entries
All look like:
include:
arg:
- name: argname
value: argvalue
I propose we allow an additional usage pattern that directly uses mappings (dicts)
include:
arg:
argname: argval
argname2: argval2
For all these mapping types. This would not break existing usage since the check would be
- sequence? check for name: and value:
- mapping? iterate over key+value pairs
Motivation
Increase intuitive/idiomatic use of YAML as a frontend, decrease verboseness
Design / Implementation Considerations
No response
Additional Information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the YAML frontend entry points for include, node, set_remap, and set_parameter, then inspect any parsing tests for their current list-based syntax. Done means direct key-value mappings work for all four cases while the existing name/value list form remains supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, yaml
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100