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.
๐ Table of Contents
Table of Contents
- ๐ Installation
- ๐ฆ Dependencies
- ๐ Framework structure
- ๐ Code coverage
- ๐ Usage
- ๐ Docs
- ๐ฅ Contributing
- ๐ Copyright and Licence
๐ Installation
Used next development environment
Currently there are four ways to install framework
- Install process based on using pip mechanism
- Install process based on build mechanism
- Install process based on setup.py mechanism
- Install process based on docker mechanism
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
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
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
More documentation and info at
๐ฅ 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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ats_utilities-3.4.6.tar.gz.
File metadata
- Download URL: ats_utilities-3.4.6.tar.gz
- Upload date:
- Size: 148.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20ae97ebbdda9a642820a939dd16515cb8cd9e146f54be7d8df6e3c9542587be
|
|
| MD5 |
80f3e9ada0e47167fa48a6f55202b9d9
|
|
| BLAKE2b-256 |
a092d9a24cbf00e5bcdb54b1d60faf400eae9f6148e9568e54e8977b96732d44
|
File details
Details for the file ats_utilities-3.4.6-py3-none-any.whl.
File metadata
- Download URL: ats_utilities-3.4.6-py3-none-any.whl
- Upload date:
- Size: 437.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9ddbff7b3714cf80d0ca7e7ff41216468bd700ca3dee0de7e1d7f92396b9e43
|
|
| MD5 |
45539289fc02b4a7d889463a77c3fc1a
|
|
| BLAKE2b-256 |
7604256787be4f16bd39e408923419dfaaffbcf7df8cc74d34eca83e01801112
|