first commit
This commit is contained in:
47
app/core/__init__.py
Normal file
47
app/core/__init__.py
Normal 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',
|
||||
]
|
||||
Reference in New Issue
Block a user