Jsonargparse

Latest version: v4.34.0

Safety actively analyzes 682244 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 18 of 18

3.3.1

Not secure
-------------------

Fixed
^^^^^
- instantiate_subclasses work properly when init_args not present.
- Addressed a couple of issues pointed out by sonarcloud.

3.3.0

Not secure
-------------------

Added
^^^^^
- New add_subclass_arguments method to add as type with a specific help option.

3.2.1

Not secure
-------------------

Added
^^^^^
- Automatic Optional for arguments with default None (`30
<https://github.com/omni-us/jsonargparse/issues/30>`__).
- CLI now supports running methods from classes.
- Signature arguments can now be loaded from independent config files (`32
<https://github.com/omni-us/jsonargparse/issues/32>`__).
- add_argument now supports enable_path for type based on jsonschema.
- print_config can now be given as value skip_null to exclude null entries.

Changed
^^^^^^^
- Improved description of parser used as standalone and for ActionParser (`34
<https://github.com/omni-us/jsonargparse/issues/34>`__).
- Removed ``__cwd__`` and top level ``__path__`` that were not needed.

Fixed
^^^^^
- ActionYesNo argument in help the type is now bool.
- Correctly skip self in add_method_arguments for inherited methods.
- Prevent failure of dump in cleanup_actions due to new _ActionConfigLoad.
- Prevent failure in save_paths for dict with int keys.
- Avoid duplicate config check failure message with subcommands.

3.1.0

Not secure
-------------------

Added
^^^^^
- Support for multiple levels of subcommands (`29
<https://github.com/omni-us/jsonargparse/issues/29>`__).
- Default description of subcommands explaining use of ``--help``.

3.0.1

Not secure
-------------------

Fixed
^^^^^
- add_class_arguments incorrectly added arguments from ``__call__`` instead
of ``__init__`` for callable classes.

3.0.0

Not secure
-------------------

Added
^^^^^
- Functions to add arguments from classes, methods and functions.
- CLI function that allows creating a line command line interface with a single
line of code inspired by Fire.
- Typing module that includes predefined types and type generator functions
for paths and restricted numbers/strings.
- Extended support to add_argument type to allow complex type hints.
- Parsers now include ``--print_config`` option to dump defaults.
- Support argcomplete for tab completion of arguments.

Changed
^^^^^^^
- ArgumentParsers by default now use as error_handler the
usage_and_exit_error_handler.
- error_handler and formatter_class no longer accept as value a string.
- Changed SimpleNamespace to Namespace to avoid unnecessary differences with
argparse.

Deprecated
^^^^^^^^^^
- ActionOperators should no longer be used, the new alternative is
restricted number types.


v2.X.X
------

The change log was introduced in v3.0.0. For details of the changes for previous
versions take a look at the git log. It more or less reads like a change log.

Page 18 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.