Skip to content

Commit b98990b

Browse files
committed
prepares release
1 parent 75ba1bf commit b98990b

6 files changed

Lines changed: 95 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,5 @@ marimo/_lsp/
207207
__marimo__/
208208
# MAC
209209
.DS_Store
210+
# docs
211+
docs

.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>WalkMyGraph</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.python.pydev.PyDevBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.python.pydev.pythonNature</nature>
16+
</natures>
17+
</projectDescription>

.pydevproject

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<?eclipse-pydev version="1.0"?><pydev_project>
3+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
4+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
5+
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
6+
<path>/${PROJECT_DIR_NAME}</path>
7+
</pydev_pathproperty>
8+
</pydev_project>

mkdocs.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
site_name: walkmygraph API Documentation
2+
theme:
3+
name: material
4+
plugins:
5+
- search
6+
- mkdocstrings:
7+
handlers:
8+
python:
9+
setup_commands:
10+
- import sys
11+
- import os
12+
- sys.path.insert(0, os.path.abspath("."))
13+
selection:
14+
docstring_style: google
15+
rendering:
16+
show_source: true
17+
nav:
18+
- API: index.md

wmg/cli.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
"""
2+
Command line entry point for WalkMyGraph
3+
"""
4+
5+
from argparse import ArgumentParser, Namespace
6+
7+
from basemkit.base_cmd import BaseCmd
8+
from wmg.version import Version
9+
10+
11+
class WalkMyGraphCmd(BaseCmd):
12+
"""Command Line Interface for WalkMyGraph"""
13+
14+
def getArgParser(self, description: str, version_msg) -> ArgumentParser:
15+
parser = super().getArgParser(description, version_msg)
16+
# NO additional arguments for now
17+
return parser
18+
19+
def handle_args(self, args: Namespace) -> bool:
20+
handled = super().handle_args(args)
21+
if handled:
22+
return True
23+
24+
# No additional commands for 0.0.2
25+
# Just show help if no args
26+
if not any(vars(args).values()):
27+
self.parser.print_help()
28+
return True
29+
30+
return False
31+
32+
33+
def main(argv=None):
34+
"""Main entry point for WalkMyGraph CLI."""
35+
exit_code = WalkMyGraphCmd.main(Version(), argv)
36+
return exit_code
37+
38+
39+
if __name__ == "__main__":
40+
main()

wmg/version.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import wmg
2+
3+
class Version:
4+
"""Version information"""
5+
6+
name = "WalkMyGraph"
7+
version = wmg.__version__
8+
description = "WalkMyGraph (WMG) is a specification by example software development using Knowledge Graph Traversals and Named Parameterized Queries"
9+
doc_url = "https://wiki.bitplan.com/index.php/WalkMyGraph"
10+
updated = "2026-02-01"

0 commit comments

Comments
 (0)