pyharborcli package¶
Submodules¶
pyharborcli.loader module¶
Loader module for pyharborcli.
This module have a functional for reading config files.
- class pyharborcli.loader.ConfigType(*values)[source]¶
Bases:
Enum
Project configuration types.
- TOML = 0¶
- YAML = 1¶
- JSON = 2¶
- pyharborcli.loader.detect_config_type_by_extension(extension)[source]¶
Detect config type by file extension.
- Parameters:
extension (str) – File extension string
- Returns:
Detected config type (defaults to JSON)
- Return type:
- pyharborcli.loader.detect_config_type_by_filename(filename)[source]¶
Detect config type by filename.
- Parameters:
filename (str) – Full filename or path
- Returns:
Detected config type
- Return type:
- class pyharborcli.loader.ConfigReader(config_file, configtype=None)[source]¶
Bases:
object
Project configuration reader.
- Parameters:
config_file (str)
configtype (ConfigType)
- __init__(config_file, configtype=None)[source]¶
Constructs new instance.
- Parameters:
config_file (str) – Path to configuration file
configtype (ConfigType) – Explicit config type (auto-detected if None)
Module contents¶
pyHarborCLI - utility for working with docker and docker compose.
MIT License
Copyright (c) 2025 Alexeev Bronislav
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.