Yapx

Latest version: v0.5.2

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

Scan your dependencies

Page 1 of 3

0.5.2

:clap: Features

- Python 3.12 compatibility

0.5.1

:clap: Features

- Allow stdin input for any type

:point_right: Changes

- *Breaking:* When casting from `str`, return `None` if blank

SLOC Analysis:

| Directory | Empty | Comment | Docstring | Code | Statements |
|-------------|---------|-----------|-------------|--------|--------------|
| src/yapx | 466 | 60 | 596 | 2008 | 1120 |
| tests | 392 | 199 | 275 | 1636 | 820 |

0.5.0

:clap: Features

- `yapx.arg(stdin=...)` to get arg value from stdin stream.

:fist: Fixes

- *Breaking:* Do not append to default sequence value (addresses https://bugs.python.org/issue16399)
- Show default values of more types in `--help`

:point_right: Changes

- *Breaking:* no longer remove commas occurring between sequence parameter values

SLOC Analysis:

| Directory | Empty | Comment | Docstring | Code | Statements |
|-------------|---------|-----------|-------------|--------|--------------|
| src/yapx | 461 | 60 | 591 | 1989 | 1105 |
| tests | 385 | 199 | 264 | 1592 | 806 |

0.4.2

:clap: Features

- `build_parser_from_spec/file` [9e51ae8]

SLOC Analysis:

| Directory | Empty | Comment | Docstring | Code | Statements |
|-------------|---------|-----------|-------------|--------|--------------|
| src/yapx | 455 | 57 | 510 | 1987 | 1100 |
| tests | 382 | 199 | 264 | 1580 | 799 |

0.4.1

:clap: Features

- Suppress `--help-all` flag with `add_help_all=False` [048ad79]

0.4.0

:clap: Features

- *Breaking:* Support infinitely nested subcommands [b8ad0c4]

:fist: Fixes

- Don't add field to dataclass when annotated with `Optional[yapx.Context]` [00db7bd]
- Allow arbitrary types when using pydantic v2 [3105bac]

:point_right: Changes

- Simplify help messages and metavars [66d81d4]

SLOC Analysis:

| Directory | Empty | Comment | Docstring | Code | Statements |
|-------------|---------|-----------|-------------|--------|--------------|
| src/yapx | 434 | 57 | 504 | 1860 | 1030 |
| tests | 364 | 188 | 252 | 1524 | 753 |

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.