wappa 0.1.1__py3-none-any.whl → 0.1.4__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.
Potentially problematic release.
This version of wappa might be problematic. Click here for more details.
- wappa/cli/main.py +15 -8
- {wappa-0.1.1.dist-info → wappa-0.1.4.dist-info}/METADATA +1 -1
- {wappa-0.1.1.dist-info → wappa-0.1.4.dist-info}/RECORD +6 -6
- {wappa-0.1.1.dist-info → wappa-0.1.4.dist-info}/WHEEL +0 -0
- {wappa-0.1.1.dist-info → wappa-0.1.4.dist-info}/entry_points.txt +0 -0
- {wappa-0.1.1.dist-info → wappa-0.1.4.dist-info}/licenses/LICENSE +0 -0
wappa/cli/main.py
CHANGED
|
@@ -17,21 +17,28 @@ app = typer.Typer(help="Wappa WhatsApp Business Framework CLI")
|
|
|
17
17
|
def _resolve_module_name(file_path: str) -> tuple[str, Path]:
|
|
18
18
|
"""
|
|
19
19
|
Convert a file path to a Python module name and working directory.
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
|
|
21
|
+
Handles both flat and nested project structures:
|
|
22
22
|
main.py -> ("main", Path("."))
|
|
23
|
-
|
|
23
|
+
app/main.py -> ("app.main", Path(".")) # Use dotted import from project root
|
|
24
|
+
examples/redis_demo/main.py -> ("examples.redis_demo.main", Path("."))
|
|
24
25
|
|
|
25
26
|
Returns:
|
|
26
27
|
tuple[str, Path]: (module_name, working_directory)
|
|
27
28
|
"""
|
|
28
29
|
# Convert to Path object for better handling
|
|
29
30
|
path = Path(file_path)
|
|
30
|
-
|
|
31
|
-
#
|
|
32
|
-
working_dir =
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
|
|
32
|
+
# Always use current directory as working dir and create dotted module name
|
|
33
|
+
working_dir = Path(".")
|
|
34
|
+
|
|
35
|
+
# Convert path to dotted module name (remove .py extension)
|
|
36
|
+
if path.suffix == ".py":
|
|
37
|
+
path = path.with_suffix("")
|
|
38
|
+
|
|
39
|
+
# Convert path separators to dots for Python import
|
|
40
|
+
module_name = str(path).replace(os.path.sep, ".")
|
|
41
|
+
|
|
35
42
|
return module_name, working_dir
|
|
36
43
|
|
|
37
44
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wappa
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Open Source Framework to develop smart Workflows, Agents and full chat applications through WhatsApp
|
|
5
5
|
Project-URL: Homepage, https://wappa.mimeia.com
|
|
6
6
|
Project-URL: Documentation, https://wappa.mimeia.com/docs
|
|
@@ -20,7 +20,7 @@ wappa/api/routes/whatsapp/whatsapp_messages.py,sha256=_CM_HDtrvC4HOk1Mhv4nvkTPNq
|
|
|
20
20
|
wappa/api/routes/whatsapp/whatsapp_specialized.py,sha256=O5yYq5omYkEzGoB5hPsAbM1xUQ0ZEz2AO0i71PTSGag,18509
|
|
21
21
|
wappa/api/routes/whatsapp/whatsapp_templates.py,sha256=xx-UvuOFDtADUbXrwsSEc-I9u2w_jHqlUO-9ZN1uIdY,15371
|
|
22
22
|
wappa/cli/__init__.py,sha256=IAcBraY6UIX5UE2gUcMZBDrPS2CRxd84eVR3IMI8S14,148
|
|
23
|
-
wappa/cli/main.py,sha256=
|
|
23
|
+
wappa/cli/main.py,sha256=gFhJSBrD9iNffX2dW2pP0KwxLGI0why-wrz8AiFPfrI,6452
|
|
24
24
|
wappa/core/__init__.py,sha256=LbKtd10YiwBpjyYFtIUtIQrpQV-p94vR9LouQB17R88,149
|
|
25
25
|
wappa/core/types.py,sha256=ez9aAXpD2D6GT7uNhw17XlZbQU_PYTcvGpWleAKEe24,2743
|
|
26
26
|
wappa/core/wappa_app.py,sha256=0gmDdQr5-NZyEvFnHUHyZB_51RSl3nM57BMacey8GbY,18956
|
|
@@ -204,8 +204,8 @@ wappa/webhooks/whatsapp/message_types/system.py,sha256=lrAwSTNokxjDkgCg7Hg33eb8s
|
|
|
204
204
|
wappa/webhooks/whatsapp/message_types/text.py,sha256=u3gXGMNpJFDdaJWA0vhBGFTyAEzI2fyqvtaVvZwzAhA,14688
|
|
205
205
|
wappa/webhooks/whatsapp/message_types/unsupported.py,sha256=5GxVcNNu2X5H1gZvze3iNNrZUrUs2DxmiL3bruS38RI,9532
|
|
206
206
|
wappa/webhooks/whatsapp/message_types/video.py,sha256=NR081ZyNwxajmCbOw-LvPadU97Qksghxr_TWhWsZEz0,11271
|
|
207
|
-
wappa-0.1.
|
|
208
|
-
wappa-0.1.
|
|
209
|
-
wappa-0.1.
|
|
210
|
-
wappa-0.1.
|
|
211
|
-
wappa-0.1.
|
|
207
|
+
wappa-0.1.4.dist-info/METADATA,sha256=eGIWLjgfGtbc8PBqi8wt_ppRgO1IWVP1CjPLFfek1s0,16559
|
|
208
|
+
wappa-0.1.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
209
|
+
wappa-0.1.4.dist-info/entry_points.txt,sha256=KzfFZSK3VpWP4M-gpgh9AdKbhh4kOwiOI3q32e3NLHs,45
|
|
210
|
+
wappa-0.1.4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
211
|
+
wappa-0.1.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|