Download app/core/__init__.py from bg5/zai: direct link, hf CLI and curl.
- Browser
- Download file 648 Bytes
-
https://huggingface.co/spaces/bg5/zai/resolve/main/app/core/__init__.py
- Command line
-
hf download hf://spaces/bg5/zai/app/core/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/bg5/zai/resolve/main/app/core/__init__.py
648 Bytes
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """app.core package. | |
| Keep package import side effects minimal; callers should import the | |
| submodules they actually use. | |
| """ | |
| from importlib import import_module | |
| __all__ = [ | |
| "config", | |
| "file_upload", | |
| "headers", | |
| "http_client", | |
| "models", | |
| "openai", | |
| "request_signing", | |
| "response_handler", | |
| "retry_policy", | |
| ] | |
| def __getattr__(name: str): | |
| if name not in __all__: | |
| raise AttributeError(f"module {__name__!r} has no attribute {name!r}") | |
| module = import_module(f"{__name__}.{name}") | |
| globals()[name] = module | |
| return module | |