Skip to the content.

ATS Utilities

ats_utilities is framework for creating Apps/Tools/Scripts.

Developed in python code.

The README is used to introduce the modules and provide instructions on how to install the modules, any machine dependencies it may have and any other information that should be provided before the modules are installed.

ats_utilities_python_checker ats_utilities_package_checker GitHub issues open GitHub contributors

πŸ“‹ Table of Contents

Table of Contents

πŸš€ Installation

Used next development environment

debian linux os

ats_utilities_python3_build ats_utilities_interface_checker ats_utilities_isp_checker ats_utilities_srp_checker ats_utilities_toc

Currently there are four ways to install framework

Install using pip

Python is located at pypi.org.

You can install by using pip

# python3
pip3 install ats-utilities
Install using build

Navigate to release page download and extract release archive.

To install ats-utilities, run

tar xvzf ats-utilities-x.y.z.tar.gz
cd ats-utilities-x.y.z
# python3
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py 
python3 -m pip install --upgrade setuptools
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
pip3 install -r requirements.txt
python3 -m build --no-isolation --wheel
pip3 install dist/ats-utilities-x.y.z-py3-none-any.whl
rm -f get-pip.py
Install using py setup

Navigate to release page download and extract release archive.

To install ats-utilities, locate and run setup.py with arguments

tar xvzf ats-utilities-x.y.z.tar.gz
cd ats-utilities-x.y.z
# python3
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
python3 -m pip install --upgrade setuptools
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
pip3 install -r requirements.txt
python3 setup.py install_lib
python3 setup.py install_egg_info
rm -f get-pip.py
Install using docker

You can use Dockerfile to create image/container.

πŸ“¦ Dependencies

These modules requires other modules and libraries (Python 3.x)

πŸ“ Framework structure

ats_utilities is designed from the ground up around robust, object-oriented paradigms and industrial-grade design patterns. The codebase strictly adheres to SOLID principles and is partitioned into highly decoupled, modular packages.

Design Pillars

Object-Oriented Architecture (OOP): Employs strong encapsulation, strict interface segregation, and clear class hierarchies to model system components.

SOLID Compliance: Engineered to facilitate seamless framework extension without modification (Open/Closed) and to decouple operations via explicit interface abstractions (Dependency Inversion).

Domain-Driven Package Organization: Functionality is organized into dedicated sub-packagesβ€”such as registries, bundle dataclasses, engines, and validatorsβ€”ensuring clear separation of concerns.

Click to expand framework structure ```bash ats_utilities/ β”œβ”€β”€ base/ β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”œβ”€β”€ ibase.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  └── setup/ β”‚Β Β  β”œβ”€β”€ bundle.py β”‚Β Β  β”œβ”€β”€ dep_validator.py β”‚Β Β  β”œβ”€β”€ dependencies.py β”‚Β Β  β”œβ”€β”€ factory.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”œβ”€β”€ keys.py β”‚Β Β  β”œβ”€β”€ opt_validator.py β”‚Β Β  β”œβ”€β”€ options.py β”‚Β Β  β”œβ”€β”€ registry.py β”‚Β Β  └── validator.py β”œβ”€β”€ checker/ β”‚Β Β  β”œβ”€β”€ context/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ icontext_provider.py β”‚Β Β  β”‚Β Β  └── __init__.py β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”œβ”€β”€ format/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ iformat_validator.py β”‚Β Β  β”‚Β Β  └── __init__.py β”‚Β Β  β”œβ”€β”€ ichecker.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”œβ”€β”€ proxy_validator.py β”‚Β Β  β”œβ”€β”€ reporter/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ data.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ data_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ icheck_reporter.py β”‚Β Β  β”‚Β Β  └── __init__.py β”‚Β Β  β”œβ”€β”€ setup/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ bundle.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dep_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dependencies.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ factory.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ keys.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ opt_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ options.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ registry.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ types.py β”‚Β Β  β”‚Β Β  └── validator.py β”‚Β Β  └── type/ β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  └── itype_validator.py β”œβ”€β”€ config_io/ β”‚Β Β  β”œβ”€β”€ conf_file.py β”‚Β Β  β”œβ”€β”€ data.py β”‚Β Β  β”œβ”€β”€ data_validator.py β”‚Β Β  β”œβ”€β”€ iconf_file.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”œβ”€β”€ loader/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ iloader.py β”‚Β Β  β”‚Β Β  └── __init__.py β”‚Β Β  β”œβ”€β”€ processor/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ cfg_processor.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ factory_processor.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ iconfig_processor.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ifactory_processor.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ini_processor.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ json_processor.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ xml_processor.py β”‚Β Β  β”‚Β Β  └── yaml_processor.py β”‚Β Β  β”œβ”€β”€ setup/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ bundle.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dep_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dependencies.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ factory.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ keys.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ opt_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ options.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ registry.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ types.py β”‚Β Β  β”‚Β Β  └── validator.py β”‚Β Β  └── storer/ β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  └── istorer.py β”œβ”€β”€ context/ β”‚Β Β  β”œβ”€β”€ bundle.py β”‚Β Β  β”œβ”€β”€ dep_validator.py β”‚Β Β  β”œβ”€β”€ dependencies.py β”‚Β Β  β”œβ”€β”€ factory.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”œβ”€β”€ keys.py β”‚Β Β  β”œβ”€β”€ opt_validator.py β”‚Β Β  β”œβ”€β”€ options.py β”‚Β Β  β”œβ”€β”€ registry.py β”‚Β Β  └── validator.py β”œβ”€β”€ exceptions/ β”‚Β Β  β”œβ”€β”€ ats_attribute_error.py β”‚Β Β  β”œβ”€β”€ ats_bad_call_error.py β”‚Β Β  β”œβ”€β”€ ats_error.py β”‚Β Β  β”œβ”€β”€ ats_file_error.py β”‚Β Β  β”œβ”€β”€ ats_generator_error.py β”‚Β Β  β”œβ”€β”€ ats_key_error.py β”‚Β Β  β”œβ”€β”€ ats_lookup_error.py β”‚Β Β  β”œβ”€β”€ ats_parameter_error.py β”‚Β Β  β”œβ”€β”€ ats_runtime_error.py β”‚Β Β  β”œβ”€β”€ ats_type_error.py β”‚Β Β  β”œβ”€β”€ ats_value_error.py β”‚Β Β  β”œβ”€β”€ format_error.py β”‚Β Β  └── __init__.py β”œβ”€β”€ generation/ β”‚Β Β  β”œβ”€β”€ data.py β”‚Β Β  β”œβ”€β”€ data_validator.py β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”œβ”€β”€ imanager.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”œβ”€β”€ project/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ipro_config.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ipro_name.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ itemplate_dir.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ pro_config.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ pro_name.py β”‚Β Β  β”‚Β Β  └── template_dir.py β”‚Β Β  β”œβ”€β”€ scheme/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  └── ischeme_loader.py β”‚Β Β  β”œβ”€β”€ setup/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ bundle.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dep_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dependencies.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ factory.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ keys.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ opt_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ options.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ registry.py β”‚Β Β  β”‚Β Β  └── validator.py β”‚Β Β  β”œβ”€β”€ tar/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ data.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ data_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  └── itar_processor.py β”‚Β Β  └── template/ β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  └── itemplate_processor.py β”œβ”€β”€ info/ β”‚Β Β  β”œβ”€β”€ build_date/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ibuild_date.py β”‚Β Β  β”‚Β Β  └── __init__.py β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”œβ”€β”€ imanager.py β”‚Β Β  β”œβ”€β”€ info_ok/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ iinfo_ok.py β”‚Β Β  β”‚Β Β  └── __init__.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”œβ”€β”€ licence/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ilicence.py β”‚Β Β  β”‚Β Β  └── __init__.py β”‚Β Β  β”œβ”€β”€ log_file/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ilog_file.py β”‚Β Β  β”‚Β Β  └── __init__.py β”‚Β Β  β”œβ”€β”€ logo/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ilogo.py β”‚Β Β  β”‚Β Β  └── __init__.py β”‚Β Β  β”œβ”€β”€ name/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ iname.py β”‚Β Β  β”‚Β Β  └── __init__.py β”‚Β Β  β”œβ”€β”€ organization/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  └── iorganization.py β”‚Β Β  β”œβ”€β”€ repository/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  └── irepository.py β”‚Β Β  β”œβ”€β”€ setup/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ bundle.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dep_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dependencies.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ expose.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ factory.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ iexpose.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ischema.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ keys.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ opt_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ options.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ registry.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ schema.py β”‚Β Β  β”‚Β Β  └── validator.py β”‚Β Β  β”œβ”€β”€ use_github/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  └── iuse_github.py β”‚Β Β  └── version/ β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  └── iversion.py β”œβ”€β”€ __init__.py β”œβ”€β”€ logger/ β”‚Β Β  β”œβ”€β”€ buffer/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ibuffer.py β”‚Β Β  β”‚Β Β  └── __init__.py β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”œβ”€β”€ formatter/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ iformatter.py β”‚Β Β  β”‚Β Β  └── __init__.py β”‚Β Β  β”œβ”€β”€ handler/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ihandler_manager.py β”‚Β Β  β”‚Β Β  └── __init__.py β”‚Β Β  β”œβ”€β”€ ilogger.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”œβ”€β”€ processor/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  └── imessage_processor.py β”‚Β Β  β”œβ”€β”€ setup/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ bundle.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dep_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dependencies.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ factory.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ keys.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ opt_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ options.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ registry.py β”‚Β Β  β”‚Β Β  └── validator.py β”‚Β Β  └── underlying/ β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  └── iunderlying.py β”œβ”€β”€ option/ β”‚Β Β  β”œβ”€β”€ command/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ data.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ data_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ioption.py β”‚Β Β  β”‚Β Β  └── ioption_command.py β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”œβ”€β”€ imanager.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”œβ”€β”€ ioption_configurator.py β”‚Β Β  β”œβ”€β”€ ioption_parser.py β”‚Β Β  β”œβ”€β”€ setup/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ bundle.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dep_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dependencies.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ factory.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ keys.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ opt_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ options.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ registry.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ types.py β”‚Β Β  β”‚Β Β  └── validator.py β”‚Β Β  β”œβ”€β”€ strategy/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ data.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ data_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  └── iparser_strategy.py β”‚Β Β  └── underlying/ β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  └── iunderlying.py β”œβ”€β”€ py.typed β”œβ”€β”€ reporter/ β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”œβ”€β”€ ireporter.py β”‚Β Β  β”œβ”€β”€ proxy_reporter.py β”‚Β Β  β”œβ”€β”€ setup/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ bundle.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dep_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dependencies.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ factory.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ keys.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ opt_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ options.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ registry.py β”‚Β Β  β”‚Β Β  └── validator.py β”‚Β Β  └── theme/ β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”œβ”€β”€ iconsole_theme.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  └── types.py β”œβ”€β”€ splash/ β”‚Β Β  β”œβ”€β”€ data.py β”‚Β Β  β”œβ”€β”€ data_validator.py β”‚Β Β  β”œβ”€β”€ engine.py β”‚Β Β  β”œβ”€β”€ external/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ext_infrastructure.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ github_infrastructure.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ iext_infrastructure.py β”‚Β Β  β”‚Β Β  └── __init__.py β”‚Β Β  β”œβ”€β”€ imanager.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”œβ”€β”€ progressbar/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ iprogress_bar.py β”‚Β Β  β”‚Β Β  └── progress_bar.py β”‚Β Β  β”œβ”€β”€ property/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ isplash_property.py β”‚Β Β  β”‚Β Β  └── splash_property.py β”‚Β Β  β”œβ”€β”€ setup/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ bundle.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dep_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ dependencies.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ factory.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ keys.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ opt_validator.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ options.py β”‚Β Β  β”‚Β Β  β”œβ”€β”€ registry.py β”‚Β Β  β”‚Β Β  └── validator.py β”‚Β Β  └── terminal/ β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”œβ”€β”€ iterminal_properties.py β”‚Β Β  └── terminal_properties.py β”œβ”€β”€ utils/ β”‚Β Β  β”œβ”€β”€ boolean.py β”‚Β Β  β”œβ”€β”€ component.py β”‚Β Β  β”œβ”€β”€ data/ β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”‚Β Β  └── ivalidator.py β”‚Β Β  β”œβ”€β”€ dicts.py β”‚Β Β  β”œβ”€β”€ dirs.py β”‚Β Β  β”œβ”€β”€ files.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”œβ”€β”€ reflection.py β”‚Β Β  └── setup/ β”‚Β Β  β”œβ”€β”€ idep_validator.py β”‚Β Β  β”œβ”€β”€ ifactory.py β”‚Β Β  β”œβ”€β”€ ikeys.py β”‚Β Β  β”œβ”€β”€ __init__.py β”‚Β Β  β”œβ”€β”€ iopt_validator.py β”‚Β Β  β”œβ”€β”€ iregistry.py β”‚Β Β  └── ivalidator.py └── validation/ β”œβ”€β”€ check_type.py β”œβ”€β”€ check_value.py β”œβ”€β”€ context_error.py └── __init__.py 59 directories, 299 files ```

✨ Features

πŸ“Š Code coverage

Click to expand code coverage | Name | Stmts | Miss | Cover | |------|-------|------|-------| | `ats_utilities/__init__.py` | 9 | 0 | 100%| | `ats_utilities/base/__init__.py` | 9 | 0 | 100%| | `ats_utilities/base/engine.py` | 55 | 0 | 100%| | `ats_utilities/base/ibase.py` | 18 | 0 | 100%| | `ats_utilities/base/setup/__init__.py` | 9 | 0 | 100%| | `ats_utilities/base/setup/bundle.py` | 25 | 0 | 100%| | `ats_utilities/base/setup/dep_validator.py` | 32 | 0 | 100%| | `ats_utilities/base/setup/dependencies.py` | 21 | 0 | 100%| | `ats_utilities/base/setup/factory.py` | 58 | 0 | 100%| | `ats_utilities/base/setup/keys.py` | 31 | 0 | 100%| | `ats_utilities/base/setup/opt_validator.py` | 28 | 0 | 100%| | `ats_utilities/base/setup/options.py` | 15 | 0 | 100%| | `ats_utilities/base/setup/registry.py` | 21 | 0 | 100%| | `ats_utilities/base/setup/validator.py` | 40 | 0 | 100%| | `ats_utilities/checker/__init__.py` | 9 | 0 | 100%| | `ats_utilities/checker/context/__init__.py` | 9 | 0 | 100%| | `ats_utilities/checker/context/engine.py` | 47 | 0 | 100%| | `ats_utilities/checker/context/icontext_provider.py` | 16 | 0 | 100%| | `ats_utilities/checker/engine.py` | 95 | 0 | 100%| | `ats_utilities/checker/format/__init__.py` | 9 | 0 | 100%| | `ats_utilities/checker/format/engine.py` | 49 | 0 | 100%| | `ats_utilities/checker/format/iformat_validator.py` | 17 | 0 | 100%| | `ats_utilities/checker/ichecker.py` | 25 | 0 | 100%| | `ats_utilities/checker/proxy_validator.py` | 32 | 0 | 100%| | `ats_utilities/checker/reporter/__init__.py` | 9 | 0 | 100%| | `ats_utilities/checker/reporter/data.py` | 21 | 0 | 100%| | `ats_utilities/checker/reporter/data_validator.py` | 37 | 0 | 100%| | `ats_utilities/checker/reporter/engine.py` | 44 | 0 | 100%| | `ats_utilities/checker/reporter/icheck_reporter.py` | 14 | 0 | 100%| | `ats_utilities/checker/setup/__init__.py` | 9 | 0 | 100%| | `ats_utilities/checker/setup/bundle.py` | 23 | 0 | 100%| | `ats_utilities/checker/setup/dep_validator.py` | 27 | 0 | 100%| | `ats_utilities/checker/setup/dependencies.py` | 19 | 0 | 100%| | `ats_utilities/checker/setup/factory.py` | 34 | 0 | 100%| | `ats_utilities/checker/setup/keys.py` | 31 | 0 | 100%| | `ats_utilities/checker/setup/opt_validator.py` | 26 | 0 | 100%| | `ats_utilities/checker/setup/options.py` | 16 | 0 | 100%| | `ats_utilities/checker/setup/registry.py` | 21 | 0 | 100%| | `ats_utilities/checker/setup/types.py` | 18 | 0 | 100%| | `ats_utilities/checker/setup/validator.py` | 39 | 0 | 100%| | `ats_utilities/checker/type/__init__.py` | 9 | 0 | 100%| | `ats_utilities/checker/type/engine.py` | 57 | 0 | 100%| | `ats_utilities/checker/type/itype_validator.py` | 16 | 0 | 100%| | `ats_utilities/config_io/__init__.py` | 9 | 0 | 100%| | `ats_utilities/config_io/conf_file.py` | 53 | 0 | 100%| | `ats_utilities/config_io/data.py` | 19 | 0 | 100%| | `ats_utilities/config_io/data_validator.py` | 38 | 0 | 100%| | `ats_utilities/config_io/iconf_file.py` | 15 | 0 | 100%| | `ats_utilities/config_io/loader/__init__.py` | 9 | 0 | 100%| | `ats_utilities/config_io/loader/engine.py` | 43 | 0 | 100%| | `ats_utilities/config_io/loader/iloader.py` | 15 | 0 | 100%| | `ats_utilities/config_io/processor/__init__.py` | 9 | 0 | 100%| | `ats_utilities/config_io/processor/cfg_processor.py` | 49 | 0 | 100%| | `ats_utilities/config_io/processor/factory_processor.py` | 56 | 0 | 100%| | `ats_utilities/config_io/processor/iconfig_processor.py` | 18 | 0 | 100%| | `ats_utilities/config_io/processor/ifactory_processor.py` | 20 | 0 | 100%| | `ats_utilities/config_io/processor/ini_processor.py` | 86 | 0 | 100%| | `ats_utilities/config_io/processor/json_processor.py` | 44 | 0 | 100%| | `ats_utilities/config_io/processor/xml_processor.py` | 86 | 0 | 100%| | `ats_utilities/config_io/processor/yaml_processor.py` | 44 | 0 | 100%| | `ats_utilities/config_io/setup/__init__.py` | 9 | 0 | 100%| | `ats_utilities/config_io/setup/bundle.py` | 23 | 0 | 100%| | `ats_utilities/config_io/setup/dep_validator.py` | 30 | 0 | 100%| | `ats_utilities/config_io/setup/dependencies.py` | 16 | 0 | 100%| | `ats_utilities/config_io/setup/factory.py` | 27 | 0 | 100%| | `ats_utilities/config_io/setup/keys.py` | 27 | 0 | 100%| | `ats_utilities/config_io/setup/opt_validator.py` | 31 | 0 | 100%| | `ats_utilities/config_io/setup/options.py` | 16 | 0 | 100%| | `ats_utilities/config_io/setup/registry.py` | 21 | 0 | 100%| | `ats_utilities/config_io/setup/types.py` | 3 | 0 | 100%| | `ats_utilities/config_io/setup/validator.py` | 35 | 0 | 100%| | `ats_utilities/config_io/storer/__init__.py` | 9 | 0 | 100%| | `ats_utilities/config_io/storer/engine.py` | 45 | 0 | 100%| | `ats_utilities/config_io/storer/istorer.py` | 15 | 0 | 100%| | `ats_utilities/context/__init__.py` | 9 | 0 | 100%| | `ats_utilities/context/bundle.py` | 22 | 0 | 100%| | `ats_utilities/context/dep_validator.py` | 27 | 0 | 100%| | `ats_utilities/context/dependencies.py` | 18 | 0 | 100%| | `ats_utilities/context/factory.py` | 34 | 0 | 100%| | `ats_utilities/context/keys.py` | 32 | 0 | 100%| | `ats_utilities/context/opt_validator.py` | 26 | 0 | 100%| | `ats_utilities/context/options.py` | 18 | 0 | 100%| | `ats_utilities/context/registry.py` | 21 | 0 | 100%| | `ats_utilities/context/validator.py` | 38 | 0 | 100%| | `ats_utilities/exceptions/__init__.py` | 21 | 0 | 100%| | `ats_utilities/exceptions/ats_attribute_error.py` | 11 | 0 | 100%| | `ats_utilities/exceptions/ats_bad_call_error.py` | 11 | 0 | 100%| | `ats_utilities/exceptions/ats_error.py` | 10 | 0 | 100%| | `ats_utilities/exceptions/ats_file_error.py` | 11 | 0 | 100%| | `ats_utilities/exceptions/ats_generator_error.py` | 11 | 0 | 100%| | `ats_utilities/exceptions/ats_key_error.py` | 11 | 0 | 100%| | `ats_utilities/exceptions/ats_lookup_error.py` | 11 | 0 | 100%| | `ats_utilities/exceptions/ats_parameter_error.py` | 11 | 0 | 100%| | `ats_utilities/exceptions/ats_runtime_error.py` | 11 | 0 | 100%| | `ats_utilities/exceptions/ats_type_error.py` | 11 | 0 | 100%| | `ats_utilities/exceptions/ats_value_error.py` | 11 | 0 | 100%| | `ats_utilities/exceptions/format_error.py` | 22 | 0 | 100%| | `ats_utilities/generation/__init__.py` | 9 | 0 | 100%| | `ats_utilities/generation/data.py` | 21 | 0 | 100%| | `ats_utilities/generation/data_validator.py` | 46 | 0 | 100%| | `ats_utilities/generation/engine.py` | 86 | 0 | 100%| | `ats_utilities/generation/imanager.py` | 19 | 0 | 100%| | `ats_utilities/generation/project/__init__.py` | 9 | 0 | 100%| | `ats_utilities/generation/project/ipro_config.py` | 18 | 0 | 100%| | `ats_utilities/generation/project/ipro_name.py` | 18 | 0 | 100%| | `ats_utilities/generation/project/itemplate_dir.py` | 18 | 0 | 100%| | `ats_utilities/generation/project/pro_config.py` | 39 | 0 | 100%| | `ats_utilities/generation/project/pro_name.py` | 35 | 0 | 100%| | `ats_utilities/generation/project/template_dir.py` | 35 | 0 | 100%| | `ats_utilities/generation/scheme/__init__.py` | 9 | 0 | 100%| | `ats_utilities/generation/scheme/engine.py` | 49 | 0 | 100%| | `ats_utilities/generation/scheme/ischeme_loader.py` | 16 | 0 | 100%| | `ats_utilities/generation/setup/__init__.py` | 9 | 0 | 100%| | `ats_utilities/generation/setup/bundle.py` | 21 | 0 | 100%| | `ats_utilities/generation/setup/dep_validator.py` | 30 | 0 | 100%| | `ats_utilities/generation/setup/dependencies.py` | 17 | 0 | 100%| | `ats_utilities/generation/setup/factory.py` | 31 | 0 | 100%| | `ats_utilities/generation/setup/keys.py` | 25 | 0 | 100%| | `ats_utilities/generation/setup/opt_validator.py` | 31 | 0 | 100%| | `ats_utilities/generation/setup/options.py` | 13 | 0 | 100%| | `ats_utilities/generation/setup/registry.py` | 21 | 0 | 100%| | `ats_utilities/generation/setup/validator.py` | 36 | 0 | 100%| | `ats_utilities/generation/tar/__init__.py` | 9 | 0 | 100%| | `ats_utilities/generation/tar/data.py` | 31 | 0 | 100%| | `ats_utilities/generation/tar/data_validator.py` | 68 | 0 | 100%| | `ats_utilities/generation/tar/engine.py` | 76 | 0 | 100%| | `ats_utilities/generation/tar/itar_processor.py` | 16 | 0 | 100%| | `ats_utilities/generation/template/__init__.py` | 9 | 0 | 100%| | `ats_utilities/generation/template/engine.py` | 32 | 0 | 100%| | `ats_utilities/generation/template/itemplate_processor.py` | 15 | 0 | 100%| | `ats_utilities/info/__init__.py` | 9 | 0 | 100%| | `ats_utilities/info/build_date/__init__.py` | 9 | 0 | 100%| | `ats_utilities/info/build_date/engine.py` | 35 | 0 | 100%| | `ats_utilities/info/build_date/ibuild_date.py` | 18 | 0 | 100%| | `ats_utilities/info/engine.py` | 112 | 0 | 100%| | `ats_utilities/info/imanager.py` | 20 | 0 | 100%| | `ats_utilities/info/info_ok/__init__.py` | 9 | 0 | 100%| | `ats_utilities/info/info_ok/engine.py` | 35 | 0 | 100%| | `ats_utilities/info/info_ok/iinfo_ok.py` | 18 | 0 | 100%| | `ats_utilities/info/licence/__init__.py` | 9 | 0 | 100%| | `ats_utilities/info/licence/engine.py` | 35 | 0 | 100%| | `ats_utilities/info/licence/ilicence.py` | 18 | 0 | 100%| | `ats_utilities/info/log_file/__init__.py` | 9 | 0 | 100%| | `ats_utilities/info/log_file/engine.py` | 35 | 0 | 100%| | `ats_utilities/info/log_file/ilog_file.py` | 18 | 0 | 100%| | `ats_utilities/info/logo/__init__.py` | 9 | 0 | 100%| | `ats_utilities/info/logo/engine.py` | 35 | 0 | 100%| | `ats_utilities/info/logo/ilogo.py` | 18 | 0 | 100%| | `ats_utilities/info/name/__init__.py` | 9 | 0 | 100%| | `ats_utilities/info/name/engine.py` | 35 | 0 | 100%| | `ats_utilities/info/name/iname.py` | 18 | 0 | 100%| | `ats_utilities/info/organization/__init__.py` | 9 | 0 | 100%| | `ats_utilities/info/organization/engine.py` | 35 | 0 | 100%| | `ats_utilities/info/organization/iorganization.py` | 18 | 0 | 100%| | `ats_utilities/info/repository/__init__.py` | 9 | 0 | 100%| | `ats_utilities/info/repository/engine.py` | 35 | 0 | 100%| | `ats_utilities/info/repository/irepository.py` | 18 | 0 | 100%| | `ats_utilities/info/setup/__init__.py` | 9 | 0 | 100%| | `ats_utilities/info/setup/bundle.py` | 37 | 0 | 100%| | `ats_utilities/info/setup/dep_validator.py` | 37 | 0 | 100%| | `ats_utilities/info/setup/dependencies.py` | 33 | 0 | 100%| | `ats_utilities/info/setup/expose.py` | 63 | 0 | 100%| | `ats_utilities/info/setup/factory.py` | 39 | 0 | 100%| | `ats_utilities/info/setup/iexpose.py` | 33 | 0 | 100%| | `ats_utilities/info/setup/ischema.py` | 38 | 0 | 100%| | `ats_utilities/info/setup/keys.py` | 53 | 0 | 100%| | `ats_utilities/info/setup/opt_validator.py` | 42 | 0 | 100%| | `ats_utilities/info/setup/options.py` | 15 | 0 | 100%| | `ats_utilities/info/setup/registry.py` | 21 | 0 | 100%| | `ats_utilities/info/setup/schema.py` | 65 | 0 | 100%| | `ats_utilities/info/setup/validator.py` | 84 | 0 | 100%| | `ats_utilities/info/use_github/__init__.py` | 9 | 0 | 100%| | `ats_utilities/info/use_github/engine.py` | 35 | 0 | 100%| | `ats_utilities/info/use_github/iuse_github.py` | 18 | 0 | 100%| | `ats_utilities/info/version/__init__.py` | 9 | 0 | 100%| | `ats_utilities/info/version/engine.py` | 35 | 0 | 100%| | `ats_utilities/info/version/iversion.py` | 18 | 0 | 100%| | `ats_utilities/logger/__init__.py` | 9 | 0 | 100%| | `ats_utilities/logger/buffer/__init__.py` | 9 | 0 | 100%| | `ats_utilities/logger/buffer/engine.py` | 39 | 0 | 100%| | `ats_utilities/logger/buffer/ibuffer.py` | 19 | 0 | 100%| | `ats_utilities/logger/engine.py` | 80 | 0 | 100%| | `ats_utilities/logger/formatter/__init__.py` | 9 | 0 | 100%| | `ats_utilities/logger/formatter/engine.py` | 54 | 0 | 100%| | `ats_utilities/logger/formatter/iformatter.py` | 17 | 0 | 100%| | `ats_utilities/logger/handler/__init__.py` | 9 | 0 | 100%| | `ats_utilities/logger/handler/engine.py` | 27 | 0 | 100%| | `ats_utilities/logger/handler/ihandler_manager.py` | 15 | 0 | 100%| | `ats_utilities/logger/ilogger.py` | 21 | 0 | 100%| | `ats_utilities/logger/processor/engine.py` | 46 | 0 | 100%| | `ats_utilities/logger/processor/imessage_processor.py` | 16 | 0 | 100%| | `ats_utilities/logger/setup/__init__.py` | 9 | 0 | 100%| | `ats_utilities/logger/setup/bundle.py` | 26 | 0 | 100%| | `ats_utilities/logger/setup/dep_validator.py` | 27 | 0 | 100%| | `ats_utilities/logger/setup/dependencies.py` | 22 | 0 | 100%| | `ats_utilities/logger/setup/factory.py` | 47 | 0 | 100%| | `ats_utilities/logger/setup/keys.py` | 35 | 0 | 100%| | `ats_utilities/logger/setup/opt_validator.py` | 26 | 0 | 100%| | `ats_utilities/logger/setup/options.py` | 15 | 0 | 100%| | `ats_utilities/logger/setup/registry.py` | 21 | 0 | 100%| | `ats_utilities/logger/setup/validator.py` | 48 | 0 | 100%| | `ats_utilities/logger/underlying/engine.py` | 51 | 0 | 100%| | `ats_utilities/logger/underlying/iunderlying.py` | 10 | 0 | 100%| | `ats_utilities/option/__init__.py` | 9 | 0 | 100%| | `ats_utilities/option/command/__init__.py` | 9 | 0 | 100%| | `ats_utilities/option/command/data.py` | 40 | 0 | 100%| | `ats_utilities/option/command/data_validator.py` | 40 | 0 | 100%| | `ats_utilities/option/command/ioption.py` | 28 | 0 | 100%| | `ats_utilities/option/command/ioption_command.py` | 20 | 0 | 100%| | `ats_utilities/option/engine.py` | 77 | 0 | 100%| | `ats_utilities/option/imanager.py` | 21 | 0 | 100%| | `ats_utilities/option/ioption_configurator.py` | 16 | 0 | 100%| | `ats_utilities/option/ioption_parser.py` | 14 | 0 | 100%| | `ats_utilities/option/setup/__init__.py` | 9 | 0 | 100%| | `ats_utilities/option/setup/bundle.py` | 19 | 0 | 100%| | `ats_utilities/option/setup/dep_validator.py` | 30 | 0 | 100%| | `ats_utilities/option/setup/dependencies.py` | 15 | 0 | 100%| | `ats_utilities/option/setup/factory.py` | 31 | 0 | 100%| | `ats_utilities/option/setup/keys.py` | 27 | 0 | 100%| | `ats_utilities/option/setup/opt_validator.py` | 35 | 0 | 100%| | `ats_utilities/option/setup/options.py` | 15 | 0 | 100%| | `ats_utilities/option/setup/registry.py` | 21 | 0 | 100%| | `ats_utilities/option/setup/types.py` | 16 | 0 | 100%| | `ats_utilities/option/setup/validator.py` | 25 | 0 | 100%| | `ats_utilities/option/strategy/__init__.py` | 9 | 0 | 100%| | `ats_utilities/option/strategy/data.py` | 19 | 0 | 100%| | `ats_utilities/option/strategy/data_validator.py` | 31 | 0 | 100%| | `ats_utilities/option/strategy/engine.py` | 59 | 0 | 100%| | `ats_utilities/option/strategy/iparser_strategy.py` | 19 | 0 | 100%| | `ats_utilities/option/underlying/__init__.py` | 9 | 0 | 100%| | `ats_utilities/option/underlying/engine.py` | 26 | 0 | 100%| | `ats_utilities/option/underlying/iunderlying.py` | 8 | 0 | 100%| | `ats_utilities/reporter/__init__.py` | 9 | 0 | 100%| | `ats_utilities/reporter/engine.py` | 72 | 0 | 100%| | `ats_utilities/reporter/ireporter.py` | 21 | 0 | 100%| | `ats_utilities/reporter/proxy_reporter.py` | 15 | 0 | 100%| | `ats_utilities/reporter/setup/__init__.py` | 9 | 0 | 100%| | `ats_utilities/reporter/setup/bundle.py` | 21 | 0 | 100%| | `ats_utilities/reporter/setup/dep_validator.py` | 25 | 0 | 100%| | `ats_utilities/reporter/setup/dependencies.py` | 17 | 0 | 100%| | `ats_utilities/reporter/setup/factory.py` | 32 | 0 | 100%| | `ats_utilities/reporter/setup/keys.py` | 30 | 0 | 100%| | `ats_utilities/reporter/setup/opt_validator.py` | 26 | 0 | 100%| | `ats_utilities/reporter/setup/options.py` | 17 | 0 | 100%| | `ats_utilities/reporter/setup/registry.py` | 21 | 0 | 100%| | `ats_utilities/reporter/setup/validator.py` | 34 | 0 | 100%| | `ats_utilities/reporter/theme/__init__.py` | 9 | 0 | 100%| | `ats_utilities/reporter/theme/engine.py` | 36 | 0 | 100%| | `ats_utilities/reporter/theme/iconsole_theme.py` | 14 | 0 | 100%| | `ats_utilities/reporter/theme/types.py` | 16 | 0 | 100%| | `ats_utilities/splash/__init__.py` | 9 | 0 | 100%| | `ats_utilities/splash/data.py` | 17 | 0 | 100%| | `ats_utilities/splash/data_validator.py` | 31 | 0 | 100%| | `ats_utilities/splash/engine.py` | 99 | 0 | 100%| | `ats_utilities/splash/external/__init__.py` | 9 | 0 | 100%| | `ats_utilities/splash/external/ext_infrastructure.py` | 59 | 0 | 100%| | `ats_utilities/splash/external/github_infrastructure.py` | 70 | 0 | 100%| | `ats_utilities/splash/external/iext_infrastructure.py` | 20 | 0 | 100%| | `ats_utilities/splash/imanager.py` | 19 | 0 | 100%| | `ats_utilities/splash/progressbar/__init__.py` | 9 | 0 | 100%| | `ats_utilities/splash/progressbar/iprogress_bar.py` | 16 | 0 | 100%| | `ats_utilities/splash/progressbar/progress_bar.py` | 54 | 0 | 100%| | `ats_utilities/splash/property/__init__.py` | 9 | 0 | 100%| | `ats_utilities/splash/property/isplash_property.py` | 23 | 0 | 100%| | `ats_utilities/splash/property/splash_property.py` | 66 | 0 | 100%| | `ats_utilities/splash/setup/__init__.py` | 9 | 0 | 100%| | `ats_utilities/splash/setup/bundle.py` | 25 | 0 | 100%| | `ats_utilities/splash/setup/dep_validator.py` | 30 | 0 | 100%| | `ats_utilities/splash/setup/dependencies.py` | 21 | 0 | 100%| | `ats_utilities/splash/setup/factory.py` | 41 | 0 | 100%| | `ats_utilities/splash/setup/keys.py` | 33 | 0 | 100%| | `ats_utilities/splash/setup/opt_validator.py` | 28 | 0 | 100%| | `ats_utilities/splash/setup/options.py` | 15 | 0 | 100%| | `ats_utilities/splash/setup/registry.py` | 21 | 0 | 100%| | `ats_utilities/splash/setup/validator.py` | 50 | 0 | 100%| | `ats_utilities/splash/terminal/__init__.py` | 9 | 0 | 100%| | `ats_utilities/splash/terminal/iterminal_properties.py` | 16 | 0 | 100%| | `ats_utilities/splash/terminal/terminal_properties.py` | 35 | 0 | 100%| | `ats_utilities/utils/__init__.py` | 9 | 0 | 100%| | `ats_utilities/utils/boolean.py` | 20 | 0 | 100%| | `ats_utilities/utils/component.py` | 14 | 0 | 100%| | `ats_utilities/utils/data/__init__.py` | 9 | 0 | 100%| | `ats_utilities/utils/data/ivalidator.py` | 14 | 0 | 100%| | `ats_utilities/utils/dicts.py` | 40 | 0 | 100%| | `ats_utilities/utils/dirs.py` | 17 | 0 | 100%| | `ats_utilities/utils/files.py` | 106 | 0 | 100%| | `ats_utilities/utils/reflection.py` | 39 | 0 | 100%| | `ats_utilities/utils/setup/__init__.py` | 9 | 0 | 100%| | `ats_utilities/utils/setup/idep_validator.py` | 14 | 0 | 100%| | `ats_utilities/utils/setup/ifactory.py` | 14 | 0 | 100%| | `ats_utilities/utils/setup/ikeys.py` | 17 | 0 | 100%| | `ats_utilities/utils/setup/iopt_validator.py` | 14 | 0 | 100%| | `ats_utilities/utils/setup/iregistry.py` | 14 | 0 | 100%| | `ats_utilities/utils/setup/ivalidator.py` | 14 | 0 | 100%| | `ats_utilities/validation/__init__.py` | 9 | 0 | 100%| | `ats_utilities/validation/check_type.py` | 28 | 0 | 100%| | `ats_utilities/validation/check_value.py` | 22 | 0 | 100%| | `ats_utilities/validation/context_error.py` | 14 | 0 | 100%| | **Total** | 7832 | 0 | 100% |

πŸ›  Usage

Below is a basic example illustrating how to define and use a tool by subclassing the Base class, integrating logger and reporter modules:

from logging import INFO, WARNING
from os.path import dirname, realpath

from ats_utilities.base.engine import Base
from ats_utilities.base.setup.factory import BaseBundleFactory
from ats_utilities.base.setup.options import BaseBundleOptions
from ats_utilities.context.factory import ContextBundleFactory
from ats_utilities.logger.ilogger import ILogger
from ats_utilities.reporter.ireporter import IReporter

__author__ = 'Vladimir Roncevic'
__copyright__ = '(C) 2017 - 2026, https://vroncevic.github.io/ats_utilities'
__credits__ = ['Vladimir Roncevic', 'Python Software Foundation']
__license__ = 'https://github.com/vroncevic/ats_utilities/blob/dev/LICENSE'
__version__ = '3.4.6'
__maintainer__ = 'Vladimir Roncevic'
__email__ = 'elektron.ronca@gmail.com'
__status__ = 'Development'

class MyTool(Base):
    '''Concrete implementation of Base for use case illustration.'''

    _INFO_FILE: str = '../../tests/assets/config/read_only/ats_cli_cfg_api.cfg'
    _logger: ILogger
    _reporter: IReporter

    def __init__(self):
        '''Initialize MyTool instance.'''
        current_dir: str = dirname(realpath(__file__))
        super().__init__(
            BaseBundleFactory.create_bundle(
                options=BaseBundleOptions(
                    info_file=f'{current_dir}/{self._INFO_FILE}',
                    use_generator=False,
                    context_bundle=ContextBundleFactory.create_bundle()
                )
            )
        )
        self._logger = self.get_context().logger
        self._reporter = self.get_context().reporter
        self._splash_manager.show()

        self._logger.write_log('Log: MyTool initialized successfully', INFO)
        self._reporter.success(['Report: MyTool initialized successfully'])

    def process(self, verbose: bool = True) -> bool:
        self._logger.write_log(f'Log: Processing starting, verbose: {verbose}', INFO)
        self._reporter.verbose(verbose, [f'Report: Processing starting, verbose: {verbose}'])
        print(f'Overwrite result {verbose} ...')
        return verbose

    def perform_action(self) -> None:
        '''A new method showing logging and reporting with different levels and colors.'''
        self._logger.write_log('Log: Performing a specific tool action', INFO)
        self._logger.write_log('Log: This is a warning log from MyTool action', WARNING)
        self._reporter.warning(['Report: This is a colored warning from MyTool'])
        self._reporter.error(['Report: This is a colored error from MyTool'])


if __name__ == "__main__":
    tool: MyTool = MyTool()

    result: bool = False
    print(f'Result: {result}')

    if tool.is_initialized():
        result = tool.process(True)
        tool.perform_action()

    print(f'Result: {result}')

πŸ“š Docs

Documentation Status

More documentation and info at

πŸ‘₯ Contributing

Contributing to ats_utilities

license: gpl v3 license apache 2.0

Copyright (C) 2017 - 2026 by vroncevic.github.io/ats_utilities

ats_utilities is free software; you can redistribute it and/or modify it under the same terms as Python itself, either Python version 3.x or, at your option, any later version of Python 3 you may have available.

Lets help and support PSF.

Python Software Foundation

Donate