pam-python 0.1.2__tar.gz → 0.1.4__tar.gz
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.
- {pam_python-0.1.2 → pam_python-0.1.4}/PKG-INFO +12 -2
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/service.py +12 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam_python.egg-info/PKG-INFO +12 -2
- {pam_python-0.1.2 → pam_python-0.1.4}/pam_python.egg-info/requires.txt +1 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/setup.py +3 -2
- {pam_python-0.1.2 → pam_python-0.1.4}/LICENSE.txt +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/README.md +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/__init__.py +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/api.py +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/cli.py +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/interface_task_manager.py +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/models/__init__.py +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/models/request_command.py +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/server.py +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/task_manager.py +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/temp_file_utils.py +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/templates/buildcmd/pamb +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/templates/buildcmd/pamb-base.sh +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/templates/docker/Dockerfile +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/templates/init/dockerignore.tmpl +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/templates/init/gitignore.tmpl +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/templates/init/main.tmpl +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/templates/init/pylintrc.tmpl +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/templates/service/functions.tmpl +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/templates/service/service.test.tmpl +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/templates/service/service.yaml +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/templates/service/service_class.tmpl +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/tester_task.py +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam/utils.py +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam_python.egg-info/SOURCES.txt +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam_python.egg-info/dependency_links.txt +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam_python.egg-info/entry_points.txt +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/pam_python.egg-info/top_level.txt +0 -0
- {pam_python-0.1.2 → pam_python-0.1.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: pam-python
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Pam Python Library
|
|
5
5
|
Home-page: https://github.com/heart/pam-python
|
|
6
6
|
Author: Narongrit Kanhanoi
|
|
@@ -24,6 +24,16 @@ Requires-Dist: Faker>=33.1.0
|
|
|
24
24
|
Requires-Dist: dask>=2024.12.1
|
|
25
25
|
Requires-Dist: dask-expr>=1.1.21
|
|
26
26
|
Requires-Dist: requests>=2.32.3
|
|
27
|
+
Requires-Dist: gunicorn>=23.0.0
|
|
28
|
+
Dynamic: author
|
|
29
|
+
Dynamic: author-email
|
|
30
|
+
Dynamic: classifier
|
|
31
|
+
Dynamic: description
|
|
32
|
+
Dynamic: description-content-type
|
|
33
|
+
Dynamic: home-page
|
|
34
|
+
Dynamic: requires-dist
|
|
35
|
+
Dynamic: requires-python
|
|
36
|
+
Dynamic: summary
|
|
27
37
|
|
|
28
38
|
# pam-python
|
|
29
39
|
|
|
@@ -40,6 +40,11 @@ class Service:
|
|
|
40
40
|
self.request.service_name, self.request.token, "result_", ".csv"
|
|
41
41
|
)
|
|
42
42
|
|
|
43
|
+
dry_run = self.request.runtime_parameters["_dry_run"]
|
|
44
|
+
if dry_run is not None and dry_run.lower() == "true":
|
|
45
|
+
log("Dry run mode will not upload results.")
|
|
46
|
+
return tmp_file_name
|
|
47
|
+
|
|
43
48
|
try:
|
|
44
49
|
df.to_csv(tmp_file_name, index=False)
|
|
45
50
|
log(f"{self.request.service_name}: Uploading result file: {tmp_file_name}")
|
|
@@ -75,6 +80,11 @@ class Service:
|
|
|
75
80
|
service_name, token, f"report_{report_name}_", '.csv'
|
|
76
81
|
)
|
|
77
82
|
|
|
83
|
+
dry_run = self.request.runtime_parameters["_dry_run"]
|
|
84
|
+
if dry_run is not None and dry_run.lower() == "true":
|
|
85
|
+
log("Dry run mode will not upload report.")
|
|
86
|
+
return report_csv_path
|
|
87
|
+
|
|
78
88
|
try:
|
|
79
89
|
df.to_csv(report_csv_path, index=False)
|
|
80
90
|
log(f"{self.request.service_name}: Uploading report file: {report_csv_path}")
|
|
@@ -82,6 +92,8 @@ class Service:
|
|
|
82
92
|
except Exception as e:
|
|
83
93
|
log(f"Failed to upload report: {e}")
|
|
84
94
|
raise
|
|
95
|
+
|
|
96
|
+
return report_csv_path
|
|
85
97
|
|
|
86
98
|
def _exit(self) -> None:
|
|
87
99
|
"""Signals the task manager to exit the service."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: pam-python
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Pam Python Library
|
|
5
5
|
Home-page: https://github.com/heart/pam-python
|
|
6
6
|
Author: Narongrit Kanhanoi
|
|
@@ -24,6 +24,16 @@ Requires-Dist: Faker>=33.1.0
|
|
|
24
24
|
Requires-Dist: dask>=2024.12.1
|
|
25
25
|
Requires-Dist: dask-expr>=1.1.21
|
|
26
26
|
Requires-Dist: requests>=2.32.3
|
|
27
|
+
Requires-Dist: gunicorn>=23.0.0
|
|
28
|
+
Dynamic: author
|
|
29
|
+
Dynamic: author-email
|
|
30
|
+
Dynamic: classifier
|
|
31
|
+
Dynamic: description
|
|
32
|
+
Dynamic: description-content-type
|
|
33
|
+
Dynamic: home-page
|
|
34
|
+
Dynamic: requires-dist
|
|
35
|
+
Dynamic: requires-python
|
|
36
|
+
Dynamic: summary
|
|
27
37
|
|
|
28
38
|
# pam-python
|
|
29
39
|
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="pam-python",
|
|
5
|
-
version="0.1.
|
|
5
|
+
version="0.1.4",
|
|
6
6
|
author="Narongrit Kanhanoi",
|
|
7
7
|
author_email="narongrit@pams.ai",
|
|
8
8
|
description="Pam Python Library",
|
|
@@ -31,7 +31,8 @@ setup(
|
|
|
31
31
|
"Faker>=33.1.0",
|
|
32
32
|
"dask>=2024.12.1",
|
|
33
33
|
"dask-expr>=1.1.21",
|
|
34
|
-
"requests>=2.32.3"
|
|
34
|
+
"requests>=2.32.3",
|
|
35
|
+
"gunicorn>=23.0.0"
|
|
35
36
|
],
|
|
36
37
|
entry_points={
|
|
37
38
|
"console_scripts": [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|