pam-python 0.1.2__tar.gz → 0.1.3__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.
Files changed (34) hide show
  1. {pam_python-0.1.2 → pam_python-0.1.3}/PKG-INFO +11 -2
  2. {pam_python-0.1.2 → pam_python-0.1.3}/pam/service.py +12 -0
  3. {pam_python-0.1.2 → pam_python-0.1.3}/pam_python.egg-info/PKG-INFO +11 -2
  4. {pam_python-0.1.2 → pam_python-0.1.3}/setup.py +1 -1
  5. {pam_python-0.1.2 → pam_python-0.1.3}/LICENSE.txt +0 -0
  6. {pam_python-0.1.2 → pam_python-0.1.3}/README.md +0 -0
  7. {pam_python-0.1.2 → pam_python-0.1.3}/pam/__init__.py +0 -0
  8. {pam_python-0.1.2 → pam_python-0.1.3}/pam/api.py +0 -0
  9. {pam_python-0.1.2 → pam_python-0.1.3}/pam/cli.py +0 -0
  10. {pam_python-0.1.2 → pam_python-0.1.3}/pam/interface_task_manager.py +0 -0
  11. {pam_python-0.1.2 → pam_python-0.1.3}/pam/models/__init__.py +0 -0
  12. {pam_python-0.1.2 → pam_python-0.1.3}/pam/models/request_command.py +0 -0
  13. {pam_python-0.1.2 → pam_python-0.1.3}/pam/server.py +0 -0
  14. {pam_python-0.1.2 → pam_python-0.1.3}/pam/task_manager.py +0 -0
  15. {pam_python-0.1.2 → pam_python-0.1.3}/pam/temp_file_utils.py +0 -0
  16. {pam_python-0.1.2 → pam_python-0.1.3}/pam/templates/buildcmd/pamb +0 -0
  17. {pam_python-0.1.2 → pam_python-0.1.3}/pam/templates/buildcmd/pamb-base.sh +0 -0
  18. {pam_python-0.1.2 → pam_python-0.1.3}/pam/templates/docker/Dockerfile +0 -0
  19. {pam_python-0.1.2 → pam_python-0.1.3}/pam/templates/init/dockerignore.tmpl +0 -0
  20. {pam_python-0.1.2 → pam_python-0.1.3}/pam/templates/init/gitignore.tmpl +0 -0
  21. {pam_python-0.1.2 → pam_python-0.1.3}/pam/templates/init/main.tmpl +0 -0
  22. {pam_python-0.1.2 → pam_python-0.1.3}/pam/templates/init/pylintrc.tmpl +0 -0
  23. {pam_python-0.1.2 → pam_python-0.1.3}/pam/templates/service/functions.tmpl +0 -0
  24. {pam_python-0.1.2 → pam_python-0.1.3}/pam/templates/service/service.test.tmpl +0 -0
  25. {pam_python-0.1.2 → pam_python-0.1.3}/pam/templates/service/service.yaml +0 -0
  26. {pam_python-0.1.2 → pam_python-0.1.3}/pam/templates/service/service_class.tmpl +0 -0
  27. {pam_python-0.1.2 → pam_python-0.1.3}/pam/tester_task.py +0 -0
  28. {pam_python-0.1.2 → pam_python-0.1.3}/pam/utils.py +0 -0
  29. {pam_python-0.1.2 → pam_python-0.1.3}/pam_python.egg-info/SOURCES.txt +0 -0
  30. {pam_python-0.1.2 → pam_python-0.1.3}/pam_python.egg-info/dependency_links.txt +0 -0
  31. {pam_python-0.1.2 → pam_python-0.1.3}/pam_python.egg-info/entry_points.txt +0 -0
  32. {pam_python-0.1.2 → pam_python-0.1.3}/pam_python.egg-info/requires.txt +0 -0
  33. {pam_python-0.1.2 → pam_python-0.1.3}/pam_python.egg-info/top_level.txt +0 -0
  34. {pam_python-0.1.2 → pam_python-0.1.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: pam-python
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Pam Python Library
5
5
  Home-page: https://github.com/heart/pam-python
6
6
  Author: Narongrit Kanhanoi
@@ -24,6 +24,15 @@ 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
+ Dynamic: author
28
+ Dynamic: author-email
29
+ Dynamic: classifier
30
+ Dynamic: description
31
+ Dynamic: description-content-type
32
+ Dynamic: home-page
33
+ Dynamic: requires-dist
34
+ Dynamic: requires-python
35
+ Dynamic: summary
27
36
 
28
37
  # pam-python
29
38
 
@@ -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
1
+ Metadata-Version: 2.2
2
2
  Name: pam-python
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Pam Python Library
5
5
  Home-page: https://github.com/heart/pam-python
6
6
  Author: Narongrit Kanhanoi
@@ -24,6 +24,15 @@ 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
+ Dynamic: author
28
+ Dynamic: author-email
29
+ Dynamic: classifier
30
+ Dynamic: description
31
+ Dynamic: description-content-type
32
+ Dynamic: home-page
33
+ Dynamic: requires-dist
34
+ Dynamic: requires-python
35
+ Dynamic: summary
27
36
 
28
37
  # pam-python
29
38
 
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="pam-python",
5
- version="0.1.2",
5
+ version="0.1.3",
6
6
  author="Narongrit Kanhanoi",
7
7
  author_email="narongrit@pams.ai",
8
8
  description="Pam Python Library",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes