Download apps/core/infrastructure/__init__.py from jun2024/fc: direct link, hf CLI and curl.
- Browser
- Download file 862 Bytes
-
https://huggingface.co/spaces/jun2024/fc/resolve/main/apps/core/infrastructure/__init__.py
- Command line
-
hf download hf://spaces/jun2024/fc/apps/core/infrastructure/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/jun2024/fc/resolve/main/apps/core/infrastructure/__init__.py
862 Bytes
| """基础设施模块""" | |
| from .cache import ( | |
| CacheKeys, | |
| CacheTimeout, | |
| bump_cache_version, | |
| delete_cache_key, | |
| get_cache_config, | |
| invalidate_user_access_context, | |
| invalidate_users_access_context, | |
| ) | |
| from .health import HealthChecker | |
| from .monitoring import PerformanceMonitor | |
| from .resource_monitor import ResourceUsage, get_resource_status, get_resource_usage, resource_monitor | |
| from .throttling import rate_limit, rate_limit_from_settings | |
| __all__ = [ | |
| "CacheKeys", | |
| "CacheTimeout", | |
| "bump_cache_version", | |
| "delete_cache_key", | |
| "get_cache_config", | |
| "HealthChecker", | |
| "invalidate_user_access_context", | |
| "invalidate_users_access_context", | |
| "PerformanceMonitor", | |
| "resource_monitor", | |
| "ResourceUsage", | |
| "get_resource_usage", | |
| "get_resource_status", | |
| "rate_limit", | |
| "rate_limit_from_settings", | |
| ] | |