Skip to content

Commit

Permalink
add Python implementation & language versions
Browse files Browse the repository at this point in the history
Signed-off-by: Panos Vagenas <[email protected]>
  • Loading branch information
vagenas authored Jan 27, 2025
1 parent 327e923 commit a5c3601
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docling/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logging
import platform
import re
import sys
import tempfile
import time
import warnings
Expand Down Expand Up @@ -65,10 +66,13 @@ def version_callback(value: bool):
docling_ibm_models_version = importlib.metadata.version("docling-ibm-models")
docling_parse_version = importlib.metadata.version("docling-parse")
platform_str = platform.platform()
py_impl_version = sys.implementation.cache_tag
py_lang_version = platform.python_version()
print(f"Docling version: {docling_version}")
print(f"Docling Core version: {docling_core_version}")
print(f"Docling IBM Models version: {docling_ibm_models_version}")
print(f"Docling Parse version: {docling_parse_version}")
print(f"Python: {py_impl_version} ({py_lang_version})")
print(f"Platform: {platform_str}")
raise typer.Exit()

Expand Down

0 comments on commit a5c3601

Please sign in to comment.