Pytooling.cliabstraction

Latest version: v0.4.1

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

Scan your dependencies

Page 1 of 2

0.4.1

**Release created on: 07.07.2023 - 22:20:50**

New Features

*None*

Changes

* Bumped dependencies.
* Changed string formatting to use f-strings.
* Added more roles to Sphinx.
* Changed pipeline to use `dev` branches of pipeline templates.

Bug Fixes

* Fixed Python module index.

0.4.0

**Release created on: 02.03.2022 - 10:51:49**

New Features
* New test cases to increase code coverage.
(Especially, each Argument class is now tested standalone.)
* Added VSCode settings file.
* Added example to documentation landing page.
* Added new documentation content and diagrams.
* Added doc-strings to almost every module, class or method.
* Cross referenced doc-strings and normal documentation pages.
Added `see also` sections.
* Added `todo` boxes for undocumented sections with item lists.
* Added consumer section to documentation landing page.
* Started to document `Program` and `Executable` in standalone chapters.
* Added key-value-pair flags (`-gDebug=True`).

Changes
* Tested many variants on how a Program is instantiated.
* Reworked diagrams.
* Extracted some information from diagrams into tables for better visualization/comparison.
* Added checks for MacOS.
* Exchanged Jinja template for `autoapi`.
* Modified options for `autodoc` to include inherited, private and special members.
* Massive renaming and class name cleanups to simplify usage of Argument and Flag classes.
* Split classes of similar style into new Python modules.
* Updated README.
* Updated News section in documentation landing page.

Bug Fixes
* Test case fixed on MinGW64 by installing `msys/git`.
* Fixed wrong package name in `.gitignore`.

0.3.0

**Release created on: 28.12.2021 - 11:11:08**

New Features
* Derived class `Executable` from `Program` to add process launching and interfacing capabilities.
* Launch and terminate a process.
* Send interactive input to STDIN.
* Read line-by-line from STDOUT.
* Preserve order of CLI options.
* Added unit tests for `Executable`.

Changes
* Removed `Executable` option from `Program` so it doesn't conflict with *Docker usecase* where 2 executables are needed in a multiple inheritance usage.
* Refactored abstracted CLI for `Git` into an `Examples` module.

Bug Fixes
*None*

0.2.1

**Release created on: 27.12.2021 - 22:40:50**

New Features
*None*

Changes
* Bumped dependencies.
* Reworked behavior of `__repr__` and `__str__`.
* Reworked and tested dry-run mode.

Bug Fixes
* Fixed URLs to Codacy.
* Fixed issues reported by Codacy. Mainly doc-strings.
* Added missing call to parent class initializer.

0.2.0

**Release created on: 26.12.2021 - 02:17:09**

New Features
* Transform parameters to `AsArgument(...)` to a string or list of strings.
* Added test cases for class `Program` based on `Git`.

Changes
* Bumped dependencies.
* Filter classes for an pyAttribute based on scope.
* Handle executable paths with absolute path, binary directory or just from PATH.
* Merged `.coveragerc` and `pytest.ini` into `pyproject-toml`
* Extracted a common helper method into a mixin class.

Bug Fixes
*None*

0.1.1

**Release created on: 24.12.2021 - 08:15:29**

New Features
* Updated documentation and added a diagram to demonstrate relations between Argument classes.
* Implemented an `AsArgument(...)` method on every Argument class.

Changes
* Changed inheritance for `TupleArgument` from `NameValuedCommandLineArgument` to `NamedCommandLineArgument`.

Bug Fixes
* Fixed inheritance of subclass parameters (e.g. `pattern`).
* CLI parameter assembly as:
* list of strings (`ToArgumentList(...)`)
* string (`__str__(...)`)

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.