Add example projects
This commit is contained in:
25
examples/complex_project/core/__init__.py
Normal file
25
examples/complex_project/core/__init__.py
Normal file
@@ -0,0 +1,25 @@
|
||||
"""Core application module."""
|
||||
|
||||
from typing import Dict, Any
|
||||
from .config import AppConfig
|
||||
from .processor import DataProcessor
|
||||
|
||||
|
||||
class Application:
|
||||
"""Main application class."""
|
||||
|
||||
def __init__(self, config: AppConfig):
|
||||
self.config = config
|
||||
self.processor = DataProcessor(config)
|
||||
|
||||
def run(self) -> None:
|
||||
"""Run the application."""
|
||||
self._log("Application starting...")
|
||||
|
||||
result = self.processor.process_data({"key": "value"})
|
||||
|
||||
self._log(f"Processing result: {result}")
|
||||
|
||||
def _log(self, message: str) -> None:
|
||||
"""Log a message."""
|
||||
print(f"[App] {message}")
|
||||
Reference in New Issue
Block a user