Module-cli

Latest version: v22.4.2

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

Scan your dependencies

22.4.2

- Add a small tests suite of e2e tests
- Add `test.yaml` as part of CI
- Minor documentation fixes/changes

22.4.1

- Update `cli` function in template, this function now accepts an optional `Sequence[str]` parameter
- Add new short script: `mcli` (essentially an alias of `module-cli`)
- Update project description

22.4.0

Template updates:
- Update `main` signature from `main() -> str` to `main(args: Sequence[str] | None = None) -> int | str`
- Remove check for `handler` attribute on namespace
- Add `--debug` flag to generated `ArgumentParser`
- Update `main` to catch `Exception`s generated by `handler`, by default only the error message is shown to the user, however if `--debug` is set the exception (with stacktrace) is raised
- Rename `args` parameter to the more aptly-named `ns`

1.0.0

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.