Skip to content

show_versions

show_versions

show_versions() -> None

Print Python, OS and key dependency versions (the usual show_versions diagnostic).

See Also

load_example : Load a bundled example dataset.

Source code in src/gbfs_toolkit/interfaces/diagnostics.py
def show_versions() -> None:
    """Print Python, OS and key dependency versions (the usual ``show_versions`` diagnostic).

    See Also
    --------
    [`load_example`][gbfs_toolkit.load_example] : Load a bundled example dataset.
    """
    print(f"python      : {sys.version.split()[0]}")
    print(f"os          : {platform.platform()}")
    for dep in _DEPS:
        try:
            v = version(dep)
        except PackageNotFoundError:
            v = "not installed"
        print(f"{dep:<12}: {v}")