Skip to content

Analysis Mode Handler

Class FauxpyAnalysisModeHandler manages Analysis Mode. Details of this class are provided below. Currently, Analysis Mode supports only one command, fauxpy --version, which shows the current version of FauxPy.

FauxpyAnalysisModeHandler

Handles FauxPy's command-line interface for Analysis Mode.

Source code in fauxpy/command_line/analysis_mode/handler.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class FauxpyAnalysisModeHandler:
    """
    Handles FauxPy's command-line interface for Analysis Mode.
    """

    @staticmethod
    def main():
        """
        The main entry point for FauxPy Analysis Mode.
        """
        parser = argparse.ArgumentParser(description="FauxPy command mode")
        parser.add_argument(
            "-v", "--version", action="store_true", help="print version and exit"
        )

        args = parser.parse_args()
        if args.version:
            print(f"FauxPy {version.__version__}")
        else:
            parser.print_help()

main() staticmethod

The main entry point for FauxPy Analysis Mode.

Source code in fauxpy/command_line/analysis_mode/handler.py
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@staticmethod
def main():
    """
    The main entry point for FauxPy Analysis Mode.
    """
    parser = argparse.ArgumentParser(description="FauxPy command mode")
    parser.add_argument(
        "-v", "--version", action="store_true", help="print version and exit"
    )

    args = parser.parse_args()
    if args.version:
        print(f"FauxPy {version.__version__}")
    else:
        parser.print_help()