hongbo-miao/hongbomiao.com

View on GitHub
data-orchestration/hm-prefect/workflows/print-platform/src/main.py

Summary

Maintainability
A
0 mins
Test Coverage
import platform

from prefect import flow, get_run_logger


@flow
def print_platform():
    logger = get_run_logger()
    logger.info(f"Node: {platform.node()}")
    logger.info(f"Platform: {platform.platform()}")
    logger.info(f"Python Version: {platform.python_version()}")


if __name__ == "__main__":
    print_platform()