Spaces:
Running
Running
sync: upstream 9194f15 + custom addons (KeyRotator, RotatingChatTransport, sol/terra/luna, ScannerTrap, health, Py3.12 compat)
e99df76 Download src/free_claude_code/core/version.py from dherain24/claude-proxy: direct link, hf CLI and curl.
- Browser
- Download file 519 Bytes
-
https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/src/free_claude_code/core/version.py
- Command line
-
hf download hf://spaces/dherain24/claude-proxy/src/free_claude_code/core/version.py
-
curl -L -o version.py https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/src/free_claude_code/core/version.py
519 Bytes
| from __future__ import annotations | |
| """Canonical installed Free Claude Code package version.""" | |
| from importlib.metadata import PackageNotFoundError | |
| from importlib.metadata import version as distribution_version | |
| _DISTRIBUTION_NAME = "free-claude-code" | |
| _UNKNOWN_VERSION = "0+unknown" | |
| def package_version() -> str: | |
| """Return installed metadata, or an explicit source-only fallback.""" | |
| try: | |
| return distribution_version(_DISTRIBUTION_NAME) | |
| except PackageNotFoundError: | |
| return _UNKNOWN_VERSION | |