first commit

This commit is contained in:
2025-11-30 00:07:24 +01:00
commit b5e642aecb
78 changed files with 15162 additions and 0 deletions

47
app/core/__init__.py Normal file
View File

@ -0,0 +1,47 @@
"""
Core Module
Provides core functionality for the application:
- database: Database configuration and session management
- security: Password hashing, JWT tokens, and security utilities
- logging_config: Structured logging configuration
Usage:
from app.core.database import db
from app.core.security import hash_password, verify_password
from app.core.logging_config import get_logger
"""
from app.core.database import db, init_db, get_db_session
from app.core.security import (
hash_password,
verify_password,
create_jwt_token,
decode_jwt_token,
create_id_token,
generate_secure_token,
generate_client_secret,
validate_password_strength
)
from app.core.logging_config import setup_logging, get_logger
__all__ = [
# Database
'db',
'init_db',
'get_db_session',
# Security
'hash_password',
'verify_password',
'create_jwt_token',
'decode_jwt_token',
'create_id_token',
'generate_secure_token',
'generate_client_secret',
'validate_password_strength',
# Logging
'setup_logging',
'get_logger',
]