pam-python 0.1.24__tar.gz → 0.1.25__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 (37) hide show
  1. {pam_python-0.1.24/pam_python.egg-info → pam_python-0.1.25}/PKG-INFO +1 -1
  2. pam_python-0.1.25/pam/templates/docker/Dockerfile +21 -0
  3. {pam_python-0.1.24 → pam_python-0.1.25/pam_python.egg-info}/PKG-INFO +1 -1
  4. {pam_python-0.1.24 → pam_python-0.1.25}/setup.py +1 -1
  5. pam_python-0.1.24/pam/templates/docker/Dockerfile +0 -18
  6. {pam_python-0.1.24 → pam_python-0.1.25}/LICENSE.txt +0 -0
  7. {pam_python-0.1.24 → pam_python-0.1.25}/README.md +0 -0
  8. {pam_python-0.1.24 → pam_python-0.1.25}/pam/__init__.py +0 -0
  9. {pam_python-0.1.24 → pam_python-0.1.25}/pam/api.py +0 -0
  10. {pam_python-0.1.24 → pam_python-0.1.25}/pam/cli.py +0 -0
  11. {pam_python-0.1.24 → pam_python-0.1.25}/pam/interface_task_manager.py +0 -0
  12. {pam_python-0.1.24 → pam_python-0.1.25}/pam/models/__init__.py +0 -0
  13. {pam_python-0.1.24 → pam_python-0.1.25}/pam/models/request_command.py +0 -0
  14. {pam_python-0.1.24 → pam_python-0.1.25}/pam/server.py +0 -0
  15. {pam_python-0.1.24 → pam_python-0.1.25}/pam/service.py +0 -0
  16. {pam_python-0.1.24 → pam_python-0.1.25}/pam/sqlite.py +0 -0
  17. {pam_python-0.1.24 → pam_python-0.1.25}/pam/task_manager.py +0 -0
  18. {pam_python-0.1.24 → pam_python-0.1.25}/pam/temp_file_utils.py +0 -0
  19. {pam_python-0.1.24 → pam_python-0.1.25}/pam/templates/buildcmd/pamb +0 -0
  20. {pam_python-0.1.24 → pam_python-0.1.25}/pam/templates/buildcmd/pamb-base.sh +0 -0
  21. {pam_python-0.1.24 → pam_python-0.1.25}/pam/templates/init/dockerignore.tmpl +0 -0
  22. {pam_python-0.1.24 → pam_python-0.1.25}/pam/templates/init/gitignore.tmpl +0 -0
  23. {pam_python-0.1.24 → pam_python-0.1.25}/pam/templates/init/main.tmpl +0 -0
  24. {pam_python-0.1.24 → pam_python-0.1.25}/pam/templates/init/pylintrc.tmpl +0 -0
  25. {pam_python-0.1.24 → pam_python-0.1.25}/pam/templates/init/run_test.sh +0 -0
  26. {pam_python-0.1.24 → pam_python-0.1.25}/pam/templates/service/functions.tmpl +0 -0
  27. {pam_python-0.1.24 → pam_python-0.1.25}/pam/templates/service/service.test.tmpl +0 -0
  28. {pam_python-0.1.24 → pam_python-0.1.25}/pam/templates/service/service.yaml +0 -0
  29. {pam_python-0.1.24 → pam_python-0.1.25}/pam/templates/service/service_class.tmpl +0 -0
  30. {pam_python-0.1.24 → pam_python-0.1.25}/pam/tester_task.py +0 -0
  31. {pam_python-0.1.24 → pam_python-0.1.25}/pam/utils.py +0 -0
  32. {pam_python-0.1.24 → pam_python-0.1.25}/pam_python.egg-info/SOURCES.txt +0 -0
  33. {pam_python-0.1.24 → pam_python-0.1.25}/pam_python.egg-info/dependency_links.txt +0 -0
  34. {pam_python-0.1.24 → pam_python-0.1.25}/pam_python.egg-info/entry_points.txt +0 -0
  35. {pam_python-0.1.24 → pam_python-0.1.25}/pam_python.egg-info/requires.txt +0 -0
  36. {pam_python-0.1.24 → pam_python-0.1.25}/pam_python.egg-info/top_level.txt +0 -0
  37. {pam_python-0.1.24 → pam_python-0.1.25}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pam-python
3
- Version: 0.1.24
3
+ Version: 0.1.25
4
4
  Summary: Pam Python Library
5
5
  Home-page: https://github.com/heart/pam-python
6
6
  Author: Narongrit Kanhanoi
@@ -0,0 +1,21 @@
1
+ FROM python:3.13-alpine
2
+
3
+ COPY . /app
4
+
5
+ WORKDIR /app
6
+
7
+ ENV DATA_FOLDER=/app/data
8
+ RUN mkdir -p $DATA_FOLDER
9
+
10
+ RUN pip install --upgrade pip
11
+ RUN pip cache purge
12
+ RUN pip install -r requirements.txt
13
+
14
+ EXPOSE 8000
15
+
16
+ ENV PYTHONUNBUFFERED=1
17
+
18
+ # ห้ามแก้ -w เป็นอย่างอื่น นอกจาก 1
19
+ # เพราะว่า service start เท่านั้นถึงจะรับ on_data ได้
20
+ # แต่ถ้ามีหลาย replica มีโอกาสที่ on_data จะเข้า ตัวที่ไม่ได้ Start
21
+ CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:8000", "main:app"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pam-python
3
- Version: 0.1.24
3
+ Version: 0.1.25
4
4
  Summary: Pam Python Library
5
5
  Home-page: https://github.com/heart/pam-python
6
6
  Author: Narongrit Kanhanoi
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="pam-python",
5
- version="0.1.24",
5
+ version="0.1.25",
6
6
  author="Narongrit Kanhanoi",
7
7
  author_email="narongrit@pams.ai",
8
8
  description="Pam Python Library",
@@ -1,18 +0,0 @@
1
- FROM python:3.13-alpine
2
-
3
- COPY . /app
4
-
5
- WORKDIR /app
6
-
7
- ENV DATA_FOLDER=/app/data
8
- RUN mkdir -p $DATA_FOLDER
9
-
10
- RUN pip install --upgrade pip
11
- RUN pip cache purge
12
- RUN pip install -r requirements.txt
13
-
14
- EXPOSE 8000
15
-
16
- ENV PYTHONUNBUFFERED=1
17
-
18
- CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "main:app"]
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