jsonargparse
jsonargparse copied to clipboard
Implement minimal boilerplate CLIs derived from type hints and parse from command line, config files and environment variables
## 🚀 Feature request Support the ability to configure a function's arguments as a group. I will give an example of how this might look, to explain it further, I'm...
## 🐛 Bug report If I specify a default value for a `Path_fr` parameter, the validation ignores it. This is pretty weird because clearly the value is present and used...
## 🚀 Feature request I would like a way for a class to have programatic mechanism such that a developer can tell jsonargparse what it's signature is and so they...
`jsonargparse` has a few deliberate deviations with respect to `argparse`. However, there are some differences which are not needed and it is preferable to remove them to stay more aligned...
- jsonargparse when installed without any optional dependencies, the default parser mode would use json - if pyyaml is installed, the default parser mode becomes yaml - for backward compatibility,...
## 🚀 Feature request Hi, Thanks for this tool. The Python language steering council has accepted PEP 680, which adds a TOML parser to the Python standard library. I was...
## 🐛 Bug report ### To reproduce I have these classes,both `A` and `B` are inherited from `Base`,`C` is inherited from `pydantic.BaseModel` (dataclass-like class): ```python from typing import Union from...
If I have a CLI implementation (`before.py`) with a `Foo.a` argument ```python class Foo: def __init__(self, a=2): ... def fn(foo: Foo = Foo()): ... from jsonargparse import ArgumentParser, ActionConfigFile parser...
## 🐛 Bug report When instantiating objects from a custom class where a default is specified in the signature, jsonargparse infers the defaults from the the wrong class: ### To...
This is a minimal reproduction. If I have this Python code which implements `jsonargparse.ArgumentParser` ```python # test.py from lightning.pytorch.cli import LRSchedulerCallable, ReduceLROnPlateau from jsonargparse import ArgumentParser, ActionConfigFile class Model: def...