from . import __all__, __version__


def show_welcome_help():
    """
    Print help information for the streamget package.
    """
    print("Welcome to streamget!")
    print(f"Version: {__version__}")
    print("Description: A Multi-Platform Live Stream Parser Library.")

    print("\nCommand Line Tools:")
    print("  streamget [-h] [-help]  -- help info")
    print("  Install Node.js runtime:")
    print("    streamget install-node [--version] [--path] [--help]")
    print("    Example:")
    print("      streamget install-node")
    print("      streamget install-node --version 20.0.0")
    print("      streamget install-node --version 20.0.0 --path ./node")

    print("\nSupported Platforms:")
    print(__all__[4:])
    print("\nUsage:")
    print("  import asyncio")
    print("  from streamget import DouyinLiveStream")
    print("  stream = DouyinLiveStream()")
    print("  data = asyncio.run(stream.fetch_web_stream_data('https://live.douyin.com/xxxxxx'))")
    print("  stream_obj = asyncio.run(stream.fetch_stream_url(data))")
    print("  stream_json_str = stream_obj.to_json()")
    print("\nFor more information, visit the GitHub repository: https://github.com/ihmily/streamget\n")


if __name__ == '__main__':
    show_welcome_help()
