fullautomation-logging 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.4
2
+ Name: fullautomation-logging
3
+ Version: 1.0.0
4
+ Summary: Reusable logging framework for automation projects
5
+ Author: Sanjay
6
+ Requires-Python: >=3.10
7
+ Description-Content-Type: text/markdown
8
+
9
+ # FullAutomation Framework
10
+
11
+ A modular Python automation framework providing reusable components for test automation.
12
+
13
+ ## Features
14
+
15
+ - Selenium Web Automation support
16
+ - Custom Logging framework
17
+ - Page Object Model support
18
+ - Reusable UI elements
19
+ - Wait utilities
20
+ - Configurable framework architecture
21
+ - Package-based installation
22
+
23
+ ---
24
+
25
+ # Architecture
26
+
27
+ FullAutomation is designed as a modular framework where users can install only the required components.
28
+
29
+ Packages:
30
+
31
+ ## fullautomation-logging
32
+
33
+ Provides:
34
+
35
+ - Centralized logging
36
+ - Log formatting
37
+ - File and console logging support
38
+
39
+ ## fullautomation-selenium
40
+
41
+ Provides:
42
+
43
+ - Selenium WebDriver management
44
+ - Page Object Model utilities
45
+ - Element handling
46
+ - Wait mechanisms
47
+
48
+ ---
49
+
50
+ # Project Structure
@@ -0,0 +1,42 @@
1
+ # FullAutomation Framework
2
+
3
+ A modular Python automation framework providing reusable components for test automation.
4
+
5
+ ## Features
6
+
7
+ - Selenium Web Automation support
8
+ - Custom Logging framework
9
+ - Page Object Model support
10
+ - Reusable UI elements
11
+ - Wait utilities
12
+ - Configurable framework architecture
13
+ - Package-based installation
14
+
15
+ ---
16
+
17
+ # Architecture
18
+
19
+ FullAutomation is designed as a modular framework where users can install only the required components.
20
+
21
+ Packages:
22
+
23
+ ## fullautomation-logging
24
+
25
+ Provides:
26
+
27
+ - Centralized logging
28
+ - Log formatting
29
+ - File and console logging support
30
+
31
+ ## fullautomation-selenium
32
+
33
+ Provides:
34
+
35
+ - Selenium WebDriver management
36
+ - Page Object Model utilities
37
+ - Element handling
38
+ - Wait mechanisms
39
+
40
+ ---
41
+
42
+ # Project Structure
@@ -0,0 +1,23 @@
1
+ [build-system]
2
+ requires = [
3
+ "setuptools>=61.0"
4
+ ]
5
+ build-backend = "setuptools.build_meta"
6
+
7
+
8
+ [project]
9
+ name = "fullautomation-logging"
10
+ version = "1.0.0"
11
+ description = "Reusable logging framework for automation projects"
12
+ readme = "README.md"
13
+ requires-python = ">=3.10"
14
+
15
+ authors = [
16
+ {name = "Sanjay"}
17
+ ]
18
+
19
+ dependencies = []
20
+
21
+
22
+ [tool.setuptools.packages.find]
23
+ where = ["src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,7 @@
1
+ from .logger import Logger
2
+ from .base_logging import BaseLogging
3
+
4
+ __all__ = [
5
+ "Logger",
6
+ "BaseLogging"
7
+ ]
@@ -0,0 +1,12 @@
1
+ from .logger import Logger
2
+
3
+
4
+ class BaseLogging:
5
+ def __init__(self):
6
+ self.logger = Logger.get_logger()
7
+
8
+ def log_info(self, message):
9
+ self.logger.info(message)
10
+
11
+ def log_error(self, message):
12
+ self.logger.error(message)
@@ -0,0 +1,44 @@
1
+ import logging
2
+ from pathlib import Path
3
+
4
+
5
+ class Logger:
6
+
7
+ _logger = None
8
+
9
+ @classmethod
10
+ def get_logger(cls):
11
+
12
+ if cls._logger is None:
13
+
14
+ # Create Logs directory if it doesn't exist
15
+ log_directory = Path("Logs")
16
+ log_directory.mkdir(exist_ok=True)
17
+
18
+ log_file = log_directory / "automation.log"
19
+
20
+ logger = logging.getLogger("AutomationFramework")
21
+ logger.setLevel(logging.INFO)
22
+
23
+ # Prevent duplicate handlers
24
+ if not logger.handlers:
25
+
26
+ formatter = logging.Formatter(
27
+ "%(asctime)s | %(levelname)-8s | %(message)s",
28
+ datefmt="%Y-%m-%d %H:%M:%S"
29
+ )
30
+
31
+ # Console handler
32
+ console_handler = logging.StreamHandler()
33
+ console_handler.setFormatter(formatter)
34
+
35
+ # File handler
36
+ file_handler = logging.FileHandler(log_file, encoding="utf-8")
37
+ file_handler.setFormatter(formatter)
38
+
39
+ logger.addHandler(console_handler)
40
+ logger.addHandler(file_handler)
41
+
42
+ cls._logger = logger
43
+
44
+ return cls._logger
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.4
2
+ Name: fullautomation-logging
3
+ Version: 1.0.0
4
+ Summary: Reusable logging framework for automation projects
5
+ Author: Sanjay
6
+ Requires-Python: >=3.10
7
+ Description-Content-Type: text/markdown
8
+
9
+ # FullAutomation Framework
10
+
11
+ A modular Python automation framework providing reusable components for test automation.
12
+
13
+ ## Features
14
+
15
+ - Selenium Web Automation support
16
+ - Custom Logging framework
17
+ - Page Object Model support
18
+ - Reusable UI elements
19
+ - Wait utilities
20
+ - Configurable framework architecture
21
+ - Package-based installation
22
+
23
+ ---
24
+
25
+ # Architecture
26
+
27
+ FullAutomation is designed as a modular framework where users can install only the required components.
28
+
29
+ Packages:
30
+
31
+ ## fullautomation-logging
32
+
33
+ Provides:
34
+
35
+ - Centralized logging
36
+ - Log formatting
37
+ - File and console logging support
38
+
39
+ ## fullautomation-selenium
40
+
41
+ Provides:
42
+
43
+ - Selenium WebDriver management
44
+ - Page Object Model utilities
45
+ - Element handling
46
+ - Wait mechanisms
47
+
48
+ ---
49
+
50
+ # Project Structure
@@ -0,0 +1,9 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/fullautomation_logging/__init__.py
4
+ src/fullautomation_logging/base_logging.py
5
+ src/fullautomation_logging/logger.py
6
+ src/fullautomation_logging.egg-info/PKG-INFO
7
+ src/fullautomation_logging.egg-info/SOURCES.txt
8
+ src/fullautomation_logging.egg-info/dependency_links.txt
9
+ src/fullautomation_logging.egg-info/top_level.txt