Buckets:
AnonymousSpottedToad/human_verified_bucket / codebase /python /freqtrade_freqtrade /freqtrade /__init__.py
| """Freqtrade bot""" | |
| __version__ = "2026.9-dev" | |
| if "dev" in __version__: | |
| from pathlib import Path | |
| try: | |
| import subprocess # noqa: S404, RUF100 | |
| freqtrade_basedir = Path(__file__).parent | |
| __version__ = ( | |
| __version__ | |
| + "-" | |
| + subprocess.check_output( | |
| ["git", "log", '--format="%h"', "-n 1"], | |
| stderr=subprocess.DEVNULL, | |
| cwd=freqtrade_basedir, | |
| ) | |
| .decode("utf-8") | |
| .rstrip() | |
| .strip('"') | |
| ) | |
| except Exception: # pragma: no cover | |
| # git not available, ignore | |
| try: | |
| # Try Fallback to freqtrade_commit file (created by CI while building docker image) | |
| versionfile = Path("./freqtrade_commit") | |
| if versionfile.is_file(): | |
| __version__ = f"docker-{__version__}-{versionfile.read_text()[:8]}" | |
| except Exception: # noqa: S110 | |
| pass | |
Xet Storage Details
- Size:
- 976 Bytes
- Xet hash:
- 06554a94604c9457369d758127938684fa198b5368c33b3f1ae1178047de2238
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.