Download src/core/__init__.py from anaselamr/yaz: direct link, hf CLI and curl.
- Browser
- Download file 1.65 kB
-
https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/core/__init__.py
- Command line
-
hf download hf://spaces/anaselamr/yaz/src/core/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/core/__init__.py
1.65 kB
| """ | |
| YAZ Care Platform - Core Module | |
| Healthcare-focused core functionality with HIPAA compliance | |
| """ | |
| from .audit import ( | |
| AuditEvent, | |
| AuditEventType, | |
| AuditLogger, | |
| AuditSeverity, | |
| ComplianceMonitor, | |
| audit_logger, | |
| compliance_monitor, | |
| ) | |
| # Core authentication system | |
| from .auth import ( | |
| AuthService, | |
| Permission, | |
| User, | |
| UserRole, | |
| get_current_user, | |
| require_permission, | |
| require_role, | |
| ) | |
| # Encryption and compliance | |
| from .crypto import Encryption, PHIAccessLogger, SecurityError, encryption, phi_access_logger | |
| # Core security functionality | |
| from .security import ( | |
| SecurityConfig, | |
| get_cors_origins, | |
| get_security_config, | |
| is_production, | |
| validate_security_requirements, | |
| ) | |
| # Import from unified RBAC in security module | |
| from .security.rbac import ( # type: ignore[arg-type, assignment] | |
| AccessContext, | |
| Permission, | |
| RBACManager, | |
| get_rbac_manager, | |
| ) | |
| __all__ = [ | |
| # Authentication | |
| "User", | |
| "UserRole", | |
| "Permission", | |
| "AuthService", | |
| "get_current_user", | |
| "require_permission", | |
| "require_role", | |
| # Security | |
| "SecurityConfig", | |
| "get_security_config", | |
| "is_production", | |
| "get_cors_origins", | |
| "validate_security_requirements", | |
| # Encryption (actual imported names) | |
| "encryption", | |
| "phi_access_logger", | |
| "Encryption", | |
| "PHIAccessLogger", | |
| "SecurityError", | |
| # RBAC (actual imported names) | |
| "AccessContext", | |
| "RBACManager", | |
| "get_rbac_manager", | |
| # Audit | |
| "AuditEventType", | |
| "AuditSeverity", | |
| "AuditEvent", | |
| "AuditLogger", | |
| "ComplianceMonitor", | |
| "audit_logger", | |
| "compliance_monitor", | |
| ] | |