feat: add print_version_info function

part of #11222
This commit is contained in:
Matthias
2025-01-24 07:16:27 +01:00
parent c3cc58a1af
commit 08b18b7ff6
2 changed files with 17 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
from freqtrade.system.asyncio_config import asyncio_setup
from freqtrade.system.gc_setup import gc_set_threshold
from freqtrade.system.version_info import print_version_info
__all__ = ["asyncio_setup", "gc_set_threshold"]
__all__ = ["asyncio_setup", "gc_set_threshold", "print_version_info"]

View File

@@ -0,0 +1,15 @@
from freqtrade import __version__
def print_version_info():
"""Print version information for freqtrade and its key dependencies."""
import platform
import sys
import ccxt
print(f"Operating System: \t{platform.platform()}")
print(f"Python Version: \tPython {sys.version.split(' ')[0]}")
print(f"CCXT Version: \t\t{ccxt.__version__}")
print()
print(f"Freqtrade Version:\tfreqtrade {__version__}")