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 +39 -0
- wrd/__main__.py +999 -0
- wrd/__version__.py +7 -0
- wrd/cli.py +312 -0
- wrd/py.typed +0 -0
- wrd/template_manager.py +163 -0
- wrd/templates/__init__.py +4 -0
- wrd/templates/__pycache__/__init__.cpython-312.pyc +0 -0
- wrd/templates/python/README.md.j2 +33 -0
- wrd/templates/python/gitignore.j2 +51 -0
- wrd/templates/python/project.yml +39 -0
- wrd/templates/python/pyproject.toml.j2 +35 -0
- wrd-0.1.2.dist-info/METADATA +751 -0
- wrd-0.1.2.dist-info/RECORD +18 -0
- wrd-0.1.2.dist-info/WHEEL +6 -0
- wrd-0.1.2.dist-info/entry_points.txt +2 -0
- wrd-0.1.2.dist-info/licenses/LICENSE +201 -0
- wrd-0.1.2.dist-info/top_level.txt +1 -0
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"
|