wrd 0.1.2__py2.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.
wrd/__init__.py ADDED
@@ -0,0 +1,39 @@
1
+ """WRD (WRonai Development) - A powerful workflow automation tool for developers."""
2
+
3
+ import sys
4
+ from typing import TYPE_CHECKING, Any
5
+
6
+ # Import version info
7
+ from .__version__ import __author__, __email__, __version__
8
+
9
+ # Lazy imports to prevent circular imports during build
10
+ if not TYPE_CHECKING and not sys.version_info >= (3, 7):
11
+ from importlib import import_module
12
+
13
+ def __getattr__(name: str) -> Any:
14
+ if name in {"WRDShell", "TemplateManager", "get_template_manager"}:
15
+ import importlib
16
+ module = importlib.import_module(f"wrd.{name.lower()}" if name != 'get_template_manager' else 'wrd.template_manager')
17
+ return getattr(module, name)
18
+ raise AttributeError(f"module 'wrd' has no attribute '{name}'")
19
+
20
+ else:
21
+ try:
22
+ from .cli import WRDShell
23
+ from .template_manager import TemplateManager, get_template_manager
24
+ except ImportError:
25
+ # This can happen during build time
26
+ WRDShell = None # type: ignore
27
+ TemplateManager = None # type: ignore
28
+ get_template_manager = None # type: ignore
29
+
30
+ __all__ = [
31
+ '__version__',
32
+ '__author__',
33
+ '__email__',
34
+ 'WRDShell',
35
+ 'TemplateManager',
36
+ 'get_template_manager',
37
+ ]
38
+
39
+ __license__ = "Apache-2.0"