Skip to content

version_callback

faststream.cli.main.version_callback #

version_callback(version)

Callback function for displaying version information.

Source code in faststream/cli/main.py
def version_callback(version: bool) -> None:
    """Callback function for displaying version information."""
    if version:
        import platform

        typer.echo(
            f"Running FastStream {__version__} with {platform.python_implementation()} "
            f"{platform.python_version()} on {platform.system()}"
        )

        raise typer.Exit()