ai-docs-gen 0.1.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
ai_docs/__init__.py ADDED
File without changes
ai_docs/__main__.py ADDED
@@ -0,0 +1,22 @@
1
+ import importlib
2
+ import os
3
+ import sys
4
+
5
+
6
+ def _load_main():
7
+ try:
8
+ from .cli import main
9
+ return main
10
+ except ImportError:
11
+ # Fallback when executed as a script (e.g., `python ai_docs ...`)
12
+ pkg_dir = os.path.dirname(os.path.abspath(__file__))
13
+ parent = os.path.dirname(pkg_dir)
14
+ if parent not in sys.path:
15
+ sys.path.insert(0, parent)
16
+ return importlib.import_module("ai_docs.cli").main
17
+
18
+
19
+ main = _load_main()
20
+
21
+ if __name__ == "__main__":
22
+ main()