jsonargparse
jsonargparse copied to clipboard
Implement minimal boilerplate CLIs derived from type hints and parse from command line, config files and environment variables
## 🐛 Bug report ### To reproduce You need a wandb account. Clone my [toy repo](https://github.com/bwdeng20/wd_swp_jsonargparse_debug) and then follow the [official wandb sweep instructions](https://docs.wandb.ai/guides/sweeps/initialize-sweeps) like the following. ```bash wandb sweep...
## 🚀 Feature request Provide an api like `parser.resolve_omegaconf(...)` to manually trigger the resolving on omegaconf node values. ### Motivation Current omegaconf mode has some limitations as described in the...
## 🐛 Bug report Hi all, I'm working on a project that utilizes this great library. However, I ran into a problem with python 3.11. ```yaml scheduler: - class_path: otx.algo.schedulers.warmup_schedulers.LinearWarmupScheduler...
## 🐛 Bug report Using a [`MappingProxyType`](https://docs.python.org/3/library/types.html#types.MappingProxyType) as a read only default value for a `Mapping` parameter fails with ``` Expected a . Got value: {'parameter': 1} ``` ### To...
## 🚀 Feature request change relative path in config from command line ### Motivation I have a set of objects defined in individual yamls and I'd like to be able...
## 🚀 Feature request Support YAML anchors in configs for `CLI`. ### Motivation Anchors reduce duplication of configuration values. For example (not necessarily like this): ```YAML x-common-args: &common_args a: 1...
## What does this PR do? This PR is an initial attempt at https://github.com/omni-us/jsonargparse/issues/244 This allows a user to define a scriptconfig object that gives them fine-grained control over the...
## 🐛 Bug report I am getting an error when parsing a list of objects whose type is the union of two different `dataclass`es. ### To reproduce In `script.py` ```python...
## 🐛 Bug report when use lazy_instance as default value, there is a assert cannot satisfy ```python assert name not in self.__dict__ ``` ### To reproduce 1. Using the CLI...
## 🚀 Feature request Add support for `*args` arguments in `CLI` ### Motivation Currently I cannot instantiate `*args`-like arguments. For example: In `main.py` ```Python from jsonargparse import CLI class A:...