Skip to content

walkmygraph API Documentation

cli

Command line entry point for WalkMyGraph

WalkMyGraphCmd

Bases: BaseCmd

Command Line Interface for WalkMyGraph

Source code in wmg/cli.py
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class WalkMyGraphCmd(BaseCmd):
    """Command Line Interface for WalkMyGraph"""

    def getArgParser(self, description: str, version_msg) -> ArgumentParser:
        parser = super().getArgParser(description, version_msg)
        # NO additional arguments for now
        return parser

    def handle_args(self, args: Namespace) -> bool:
        handled = super().handle_args(args)
        if handled:
            return True

        # No additional commands for 0.0.2
        # Just show help if no args
        if not any(vars(args).values()):
            self.parser.print_help()
            return True

        return False

main(argv=None)

Main entry point for WalkMyGraph CLI.

Source code in wmg/cli.py
33
34
35
36
def main(argv=None):
    """Main entry point for WalkMyGraph CLI."""
    exit_code = WalkMyGraphCmd.main(Version(), argv)
    return exit_code

version

Version

Version information

Source code in wmg/version.py
 3
 4
 5
 6
 7
 8
 9
10
class Version:
    """Version information"""

    name = "WalkMyGraph"
    version = wmg.__version__
    description = "WalkMyGraph (WMG) is a specification by example software development using Knowledge Graph Traversals and Named Parameterized Queries"
    doc_url = "https://wiki.bitplan.com/index.php/WalkMyGraph"
    updated = "2026-02-01"