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.
Contents
- ATS Utilities
- ats_utilities
- ats_utilities package
- Subpackages
- ats_utilities.base package
- ats_utilities.checker package
- ats_utilities.config_io package
- ats_utilities.context package
- ats_utilities.exceptions package
- ats_utilities.generation package
- ats_utilities.info package
- ats_utilities.logger package
- ats_utilities.option package
- ats_utilities.reporter package
- ats_utilities.splash package
- ats_utilities.utils package
- ats_utilities.validation package
- Module contents
- Subpackages
- ats_utilities package
π InstallationΒΆ
Used next development environment

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
Or type the following
tar xvzf ats_utilities-x.y.z.tar.gz
cd ats_utilities-x.y.z/
# pyton3
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
You can use Docker to create image/container, or You can use pip to install
# python3
pip3 install ats_utilities
π¦ DependenciesΒΆ
ats_utilities requires next modules and libraries
π 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.
Framework structure
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ΒΆ
Base Framework Architecture: Standardized classes (
Base,BaseFactory,BaseOptions) to quickly build robust command-line applications, scripts, and tools.Robust Logging Engine: Highly configurable logging module supporting log file outputs, buffers, custom formatters, message processors, and multiple severity levels.
Advanced Option Parsing: Command-line option parser with modular design and strategy support (such as
fireparsing or standardargparseprocessing).Flexible Configuration I/O: Config files loader and storer supporting formats like CFG, INI, JSON, XML, and YAML out of the box.
Themeable Console Reporter: Enhanced feedback system that displays styled, colored, and verbose messages to the console with support for custom color themes.
Progressive Splash Screens: Informative and visually appealing CLI splash screen implementation with customizable progress bars.
Type & Value Validation: Built-in mechanisms to perform rigorous type checking and data validation on inputs and configs.
OOP and SOLID Design: Decoupled, modular package design built around SOLID principles and clear interface segregation.
π 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 |
60 |
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 |
40 |
0 |
100% |
ats_utilities/base/setup/dependencies.py |
21 |
0 |
100% |
ats_utilities/base/setup/factory.py |
61 |
0 |
100% |
ats_utilities/base/setup/keys.py |
31 |
0 |
100% |
ats_utilities/base/setup/opt_validator.py |
36 |
0 |
100% |
ats_utilities/base/setup/options.py |
15 |
0 |
100% |
ats_utilities/base/setup/registry.py |
24 |
0 |
100% |
ats_utilities/base/setup/validator.py |
48 |
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 |
46 |
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 |
45 |
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 |
35 |
0 |
100% |
ats_utilities/checker/setup/dependencies.py |
19 |
0 |
100% |
ats_utilities/checker/setup/factory.py |
37 |
0 |
100% |
ats_utilities/checker/setup/keys.py |
31 |
0 |
100% |
ats_utilities/checker/setup/opt_validator.py |
34 |
0 |
100% |
ats_utilities/checker/setup/options.py |
16 |
0 |
100% |
ats_utilities/checker/setup/registry.py |
24 |
0 |
100% |
ats_utilities/checker/setup/types.py |
18 |
0 |
100% |
ats_utilities/checker/setup/validator.py |
47 |
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 |
46 |
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 |
38 |
0 |
100% |
ats_utilities/config_io/setup/dependencies.py |
16 |
0 |
100% |
ats_utilities/config_io/setup/factory.py |
30 |
0 |
100% |
ats_utilities/config_io/setup/keys.py |
27 |
0 |
100% |
ats_utilities/config_io/setup/opt_validator.py |
39 |
0 |
100% |
ats_utilities/config_io/setup/options.py |
16 |
0 |
100% |
ats_utilities/config_io/setup/registry.py |
24 |
0 |
100% |
ats_utilities/config_io/setup/types.py |
3 |
0 |
100% |
ats_utilities/config_io/setup/validator.py |
43 |
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 |
35 |
0 |
100% |
ats_utilities/context/dependencies.py |
18 |
0 |
100% |
ats_utilities/context/factory.py |
37 |
0 |
100% |
ats_utilities/context/keys.py |
32 |
0 |
100% |
ats_utilities/context/opt_validator.py |
34 |
0 |
100% |
ats_utilities/context/options.py |
18 |
0 |
100% |
ats_utilities/context/registry.py |
24 |
0 |
100% |
ats_utilities/context/validator.py |
46 |
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 |
54 |
0 |
100% |
ats_utilities/generation/engine.py |
91 |
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 |
38 |
0 |
100% |
ats_utilities/generation/setup/dependencies.py |
17 |
0 |
100% |
ats_utilities/generation/setup/factory.py |
34 |
0 |
100% |
ats_utilities/generation/setup/keys.py |
25 |
0 |
100% |
ats_utilities/generation/setup/opt_validator.py |
39 |
0 |
100% |
ats_utilities/generation/setup/options.py |
13 |
0 |
100% |
ats_utilities/generation/setup/registry.py |
24 |
0 |
100% |
ats_utilities/generation/setup/validator.py |
44 |
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 |
83 |
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 |
111 |
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 |
45 |
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 |
42 |
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 |
50 |
0 |
100% |
ats_utilities/info/setup/options.py |
15 |
0 |
100% |
ats_utilities/info/setup/registry.py |
24 |
0 |
100% |
ats_utilities/info/setup/schema.py |
65 |
0 |
100% |
ats_utilities/info/setup/validator.py |
70 |
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 |
41 |
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 |
55 |
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 |
35 |
0 |
100% |
ats_utilities/logger/setup/dependencies.py |
22 |
0 |
100% |
ats_utilities/logger/setup/factory.py |
50 |
0 |
100% |
ats_utilities/logger/setup/keys.py |
35 |
0 |
100% |
ats_utilities/logger/setup/opt_validator.py |
34 |
0 |
100% |
ats_utilities/logger/setup/options.py |
15 |
0 |
100% |
ats_utilities/logger/setup/registry.py |
24 |
0 |
100% |
ats_utilities/logger/setup/validator.py |
56 |
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 |
48 |
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 |
25 |
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 |
38 |
0 |
100% |
ats_utilities/option/setup/dependencies.py |
15 |
0 |
100% |
ats_utilities/option/setup/factory.py |
34 |
0 |
100% |
ats_utilities/option/setup/keys.py |
27 |
0 |
100% |
ats_utilities/option/setup/opt_validator.py |
42 |
0 |
100% |
ats_utilities/option/setup/options.py |
15 |
0 |
100% |
ats_utilities/option/setup/registry.py |
24 |
0 |
100% |
ats_utilities/option/setup/types.py |
20 |
0 |
100% |
ats_utilities/option/setup/validator.py |
39 |
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 |
39 |
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 |
27 |
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 |
33 |
0 |
100% |
ats_utilities/reporter/setup/dependencies.py |
17 |
0 |
100% |
ats_utilities/reporter/setup/factory.py |
35 |
0 |
100% |
ats_utilities/reporter/setup/keys.py |
30 |
0 |
100% |
ats_utilities/reporter/setup/opt_validator.py |
34 |
0 |
100% |
ats_utilities/reporter/setup/options.py |
17 |
0 |
100% |
ats_utilities/reporter/setup/registry.py |
24 |
0 |
100% |
ats_utilities/reporter/setup/validator.py |
42 |
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 |
39 |
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 |
38 |
0 |
100% |
ats_utilities/splash/setup/dependencies.py |
21 |
0 |
100% |
ats_utilities/splash/setup/factory.py |
44 |
0 |
100% |
ats_utilities/splash/setup/keys.py |
33 |
0 |
100% |
ats_utilities/splash/setup/opt_validator.py |
36 |
0 |
100% |
ats_utilities/splash/setup/options.py |
15 |
0 |
100% |
ats_utilities/splash/setup/registry.py |
24 |
0 |
100% |
ats_utilities/splash/setup/validator.py |
58 |
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 |
16 |
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 |
16 |
0 |
100% |
ats_utilities/utils/setup/ifactory.py |
16 |
0 |
100% |
ats_utilities/utils/setup/ikeys.py |
17 |
0 |
100% |
ats_utilities/utils/setup/iopt_validator.py |
16 |
0 |
100% |
ats_utilities/utils/setup/iregistry.py |
16 |
0 |
100% |
ats_utilities/utils/setup/ivalidator.py |
16 |
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 |
8221 |
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}')
π₯ ContributingΒΆ
π Copyright and licenceΒΆ
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.

