wexample-wex-addon-services-platform 0.0.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 (134) hide show
  1. wexample_wex_addon_services_platform-0.0.3/PKG-INFO +166 -0
  2. wexample_wex_addon_services_platform-0.0.3/README.md +148 -0
  3. wexample_wex_addon_services_platform-0.0.3/pyproject.toml +83 -0
  4. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/__init__.py +7 -0
  5. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/py.typed +0 -0
  6. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/__init__.py +0 -0
  7. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/__init__.py +0 -0
  8. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/app_service.py +29 -0
  9. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/commands/__init__.py +0 -0
  10. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/commands/service/__init__.py +0 -0
  11. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/commands/service/install.py +31 -0
  12. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/commands/service/ready.py +32 -0
  13. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/docker/__init__.py +0 -0
  14. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/docker/docker-compose.yml +20 -0
  15. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/__init__.py +0 -0
  16. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/docker/__init__.py +0 -0
  17. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/docker/docker-compose.yml +5 -0
  18. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/env/__init__.py +0 -0
  19. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/env/prod/__init__.py +0 -0
  20. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/env/prod/docker/__init__.py +0 -0
  21. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/env/prod/docker/docker-compose.yml +6 -0
  22. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/gitlab/__init__.py +0 -0
  23. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/gitlab/backups/.gitkeep +1 -0
  24. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/gitlab/backups/__init__.py +0 -0
  25. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/gitlab/config/.gitkeep +1 -0
  26. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/gitlab/config/__init__.py +0 -0
  27. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/gitlab/data/.gitkeep +1 -0
  28. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/gitlab/data/__init__.py +0 -0
  29. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/gitlab/logs/.gitkeep +1 -0
  30. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/samples/gitlab/logs/__init__.py +0 -0
  31. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/gitlab/service.yml +8 -0
  32. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/__init__.py +0 -0
  33. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/docker/__init__.py +0 -0
  34. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/docker/docker-compose.yml +15 -0
  35. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/samples/__init__.py +0 -0
  36. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/samples/docker/__init__.py +0 -0
  37. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/samples/docker/docker-compose.yml +5 -0
  38. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/samples/env/__init__.py +0 -0
  39. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/samples/env/prod/__init__.py +0 -0
  40. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/samples/env/prod/docker/__init__.py +0 -0
  41. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/samples/env/prod/docker/docker-compose.yml +5 -0
  42. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/samples/jenkins/__init__.py +0 -0
  43. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/samples/jenkins/config/.gitkeep +1 -0
  44. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/samples/jenkins/config/__init__.py +0 -0
  45. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/samples/jenkins/home/.gitkeep +1 -0
  46. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/samples/jenkins/home/__init__.py +0 -0
  47. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/jenkins/service.yml +8 -0
  48. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/listmonk/__init__.py +0 -0
  49. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/listmonk/docker/__init__.py +0 -0
  50. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/listmonk/docker/docker-compose.yml +21 -0
  51. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/listmonk/samples/__init__.py +0 -0
  52. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/listmonk/samples/config.toml +2 -0
  53. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/listmonk/samples/docker/__init__.py +0 -0
  54. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/listmonk/samples/docker/docker-compose.yml +5 -0
  55. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/listmonk/samples/env/__init__.py +0 -0
  56. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/listmonk/samples/env/dev/__init__.py +0 -0
  57. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/listmonk/samples/env/dev/docker/__init__.py +0 -0
  58. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/listmonk/samples/env/dev/docker/docker-compose.yml +5 -0
  59. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/listmonk/samples/env/prod/__init__.py +0 -0
  60. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/listmonk/samples/env/prod/docker/__init__.py +0 -0
  61. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/listmonk/samples/env/prod/docker/docker-compose.yml +5 -0
  62. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/listmonk/service.yml +9 -0
  63. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/__init__.py +0 -0
  64. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/app_service.py +24 -0
  65. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/commands/__init__.py +1 -0
  66. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/commands/service/__init__.py +1 -0
  67. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/commands/service/install.py +35 -0
  68. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/commands/service/ready.py +39 -0
  69. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/docker/__init__.py +0 -0
  70. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/docker/docker-compose.yml +21 -0
  71. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/samples/__init__.py +0 -0
  72. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/samples/docker/__init__.py +0 -0
  73. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/samples/docker/docker-compose.yml +5 -0
  74. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/samples/env/__init__.py +0 -0
  75. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/samples/env/dev/__init__.py +0 -0
  76. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/samples/env/dev/docker/__init__.py +0 -0
  77. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/samples/env/dev/docker/docker-compose.yml +5 -0
  78. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/samples/env/prod/__init__.py +0 -0
  79. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/samples/env/prod/docker/__init__.py +0 -0
  80. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/samples/env/prod/docker/docker-compose.yml +8 -0
  81. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/samples/n8n/.gitkeep +1 -0
  82. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/samples/n8n/__init__.py +0 -0
  83. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/n8n/service.yml +8 -0
  84. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/nextcloud/__init__.py +0 -0
  85. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/nextcloud/app_service.py +29 -0
  86. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/nextcloud/commands/__init__.py +0 -0
  87. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/nextcloud/commands/service/__init__.py +0 -0
  88. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/nextcloud/commands/service/ready.py +39 -0
  89. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/nextcloud/docker/__init__.py +0 -0
  90. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/nextcloud/docker/docker-compose.yml +12 -0
  91. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/nextcloud/service.yml +8 -0
  92. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/ollama/__init__.py +0 -0
  93. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/ollama/app_service.py +19 -0
  94. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/ollama/commands/__init__.py +0 -0
  95. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/ollama/commands/service/__init__.py +0 -0
  96. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/ollama/commands/service/install.py +30 -0
  97. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/ollama/commands/service/ready.py +39 -0
  98. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/ollama/docker/__init__.py +0 -0
  99. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/ollama/docker/docker-compose.yml +7 -0
  100. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/ollama/service.yml +6 -0
  101. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/rabbitmq/__init__.py +0 -0
  102. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/rabbitmq/docker/__init__.py +0 -0
  103. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/rabbitmq/docker/docker-compose.yml +21 -0
  104. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/rabbitmq/service.yml +8 -0
  105. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/__init__.py +0 -0
  106. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/docker/__init__.py +0 -0
  107. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/docker/docker-compose.yml +21 -0
  108. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/__init__.py +0 -0
  109. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/docker/__init__.py +0 -0
  110. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/docker/docker-compose.yml +5 -0
  111. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/env/__init__.py +0 -0
  112. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/env/prod/__init__.py +0 -0
  113. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/env/prod/docker/__init__.py +0 -0
  114. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/env/prod/docker/docker-compose.yml +6 -0
  115. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/sonarqube/__init__.py +0 -0
  116. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/sonarqube/conf/__init__.py +0 -0
  117. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/sonarqube/conf/sonar.properties +6 -0
  118. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/sonarqube/data/.gitkeep +1 -0
  119. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/sonarqube/data/__init__.py +0 -0
  120. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/sonarqube/extensions/.gitkeep +1 -0
  121. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/sonarqube/extensions/__init__.py +0 -0
  122. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/sonarqube/logs/.gitkeep +1 -0
  123. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/samples/sonarqube/logs/__init__.py +0 -0
  124. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/sonarqube/service.yml +9 -0
  125. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/supabase/__init__.py +0 -0
  126. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/supabase/app_service.py +54 -0
  127. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/supabase/commands/__init__.py +0 -0
  128. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/supabase/commands/service/__init__.py +0 -0
  129. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/supabase/commands/service/install.py +149 -0
  130. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/supabase/commands/service/ready.py +34 -0
  131. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/supabase/docker/__init__.py +0 -0
  132. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/supabase/docker/docker-compose.yml +430 -0
  133. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services/supabase/service.yml +55 -0
  134. wexample_wex_addon_services_platform-0.0.3/src/wexample_wex_addon_services_platform/services_platform_addon_manager.py +15 -0
@@ -0,0 +1,166 @@
1
+ Metadata-Version: 2.1
2
+ Name: wexample-wex-addon-services-platform
3
+ Version: 0.0.3
4
+ Summary: Platform services (n8n, gitlab, jenkins...) for wex
5
+ Author-Email: weeger <contact@wexample.com>
6
+ License: MIT
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.10
11
+ Requires-Dist: requests
12
+ Requires-Dist: wexample-wex-addon-app>=1.0.0
13
+ Requires-Dist: wexample-wex-core>=7.0.0
14
+ Provides-Extra: dev
15
+ Requires-Dist: pytest; extra == "dev"
16
+ Requires-Dist: pytest-cov; extra == "dev"
17
+ Description-Content-Type: text/markdown
18
+
19
+ # wex_addon_services_platform
20
+
21
+ Version: 0.0.3
22
+
23
+ Platform services (n8n, gitlab, jenkins...) for wex
24
+
25
+ ## Table of Contents
26
+
27
+ - [Tests](#tests)
28
+ - [Suite Integration](#suite-integration)
29
+ - [Dependencies](#dependencies)
30
+ - [Versioning](#versioning)
31
+ - [License](#license)
32
+ - [Suite Integration](#suite-integration)
33
+ - [Suite Signature](#suite-signature)
34
+ - [Roadmap](#roadmap)
35
+ - [Status Compatibility](#status-compatibility)
36
+ - [Useful Links](#useful-links)
37
+ - [Migration Notes](#migration-notes)
38
+
39
+ ## Tests
40
+
41
+ This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
42
+
43
+ ### Installation
44
+
45
+ First, install the required testing dependencies:
46
+ ```bash
47
+ .venv/bin/python -m pip install pytest pytest-cov
48
+ ```
49
+
50
+ ### Basic Usage
51
+
52
+ Run all tests with coverage:
53
+ ```bash
54
+ .venv/bin/python -m pytest --cov --cov-report=html
55
+ ```
56
+
57
+ ### Common Commands
58
+ ```bash
59
+ # Run tests with coverage for a specific module
60
+ .venv/bin/python -m pytest --cov=your_module
61
+
62
+ # Show which lines are not covered
63
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
64
+
65
+ # Generate an HTML coverage report
66
+ .venv/bin/python -m pytest --cov=your_module --cov-report=html
67
+
68
+ # Combine terminal and HTML reports
69
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
70
+
71
+ # Run specific test file with coverage
72
+ .venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
73
+ ```
74
+
75
+ ### Viewing HTML Reports
76
+
77
+ After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
78
+
79
+ ### Coverage Threshold
80
+
81
+ To enforce a minimum coverage percentage:
82
+ ```bash
83
+ .venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
84
+ ```
85
+
86
+ This will cause the test suite to fail if coverage drops below 80%.
87
+
88
+ ## Integration in the Suite
89
+
90
+ This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
91
+
92
+ ### Related Packages
93
+
94
+ The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
95
+
96
+ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
97
+
98
+ ## Dependencies
99
+
100
+ - requests:
101
+ - wexample-wex-addon-app: >=1.0.0
102
+ - wexample-wex-core: >=7.0.0
103
+
104
+ ## Versioning & Compatibility Policy
105
+
106
+ Wexample packages follow **Semantic Versioning** (SemVer):
107
+
108
+ - **MAJOR**: Breaking changes
109
+ - **MINOR**: New features, backward compatible
110
+ - **PATCH**: Bug fixes, backward compatible
111
+
112
+ We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
113
+
114
+ ## License
115
+
116
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
117
+
118
+ Free to use in both personal and commercial projects.
119
+
120
+ ## Integration in the Suite
121
+
122
+ This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
123
+
124
+ ### Related Packages
125
+
126
+ The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
127
+
128
+ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
129
+
130
+ # About us
131
+
132
+ [Wexample](https://wexample.com) stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
133
+
134
+ This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
135
+
136
+ Wexample cultivates a culture of mastery. Each package, each contribution carries the mark of a community that values precision, ethics, and innovation — a community proud to shape the future of digital craftsmanship.
137
+
138
+ ## Known Limitations & Roadmap
139
+
140
+ Current limitations and planned features are tracked in the GitHub issues.
141
+
142
+ See the [project roadmap](https://github.com/wexample/python-wex_addon_services_platform/issues) for upcoming features and improvements.
143
+
144
+ ## Status & Compatibility
145
+
146
+ **Maturity**: Production-ready
147
+
148
+ **Python Support**: >=3.10
149
+
150
+ **OS Support**: Linux, macOS, Windows
151
+
152
+ **Status**: Actively maintained
153
+
154
+ ## Useful Links
155
+
156
+ - **Homepage**: https://github.com/wexample/python-wex-addon-services-platform
157
+ - **Documentation**: [docs.wexample.com](https://docs.wexample.com)
158
+ - **Issue Tracker**: https://github.com/wexample/python-wex-addon-services-platform/issues
159
+ - **Discussions**: https://github.com/wexample/python-wex-addon-services-platform/discussions
160
+ - **PyPI**: [pypi.org/project/wex_addon_services_platform](https://pypi.org/project/wex_addon_services_platform/)
161
+
162
+ ## Migration Notes
163
+
164
+ When upgrading between major versions, refer to the migration guides in the documentation.
165
+
166
+ Breaking changes are clearly documented with upgrade paths and examples.
@@ -0,0 +1,148 @@
1
+ # wex_addon_services_platform
2
+
3
+ Version: 0.0.3
4
+
5
+ Platform services (n8n, gitlab, jenkins...) for wex
6
+
7
+ ## Table of Contents
8
+
9
+ - [Tests](#tests)
10
+ - [Suite Integration](#suite-integration)
11
+ - [Dependencies](#dependencies)
12
+ - [Versioning](#versioning)
13
+ - [License](#license)
14
+ - [Suite Integration](#suite-integration)
15
+ - [Suite Signature](#suite-signature)
16
+ - [Roadmap](#roadmap)
17
+ - [Status Compatibility](#status-compatibility)
18
+ - [Useful Links](#useful-links)
19
+ - [Migration Notes](#migration-notes)
20
+
21
+ ## Tests
22
+
23
+ This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
24
+
25
+ ### Installation
26
+
27
+ First, install the required testing dependencies:
28
+ ```bash
29
+ .venv/bin/python -m pip install pytest pytest-cov
30
+ ```
31
+
32
+ ### Basic Usage
33
+
34
+ Run all tests with coverage:
35
+ ```bash
36
+ .venv/bin/python -m pytest --cov --cov-report=html
37
+ ```
38
+
39
+ ### Common Commands
40
+ ```bash
41
+ # Run tests with coverage for a specific module
42
+ .venv/bin/python -m pytest --cov=your_module
43
+
44
+ # Show which lines are not covered
45
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
46
+
47
+ # Generate an HTML coverage report
48
+ .venv/bin/python -m pytest --cov=your_module --cov-report=html
49
+
50
+ # Combine terminal and HTML reports
51
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
52
+
53
+ # Run specific test file with coverage
54
+ .venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
55
+ ```
56
+
57
+ ### Viewing HTML Reports
58
+
59
+ After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
60
+
61
+ ### Coverage Threshold
62
+
63
+ To enforce a minimum coverage percentage:
64
+ ```bash
65
+ .venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
66
+ ```
67
+
68
+ This will cause the test suite to fail if coverage drops below 80%.
69
+
70
+ ## Integration in the Suite
71
+
72
+ This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
73
+
74
+ ### Related Packages
75
+
76
+ The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
77
+
78
+ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
79
+
80
+ ## Dependencies
81
+
82
+ - requests:
83
+ - wexample-wex-addon-app: >=1.0.0
84
+ - wexample-wex-core: >=7.0.0
85
+
86
+ ## Versioning & Compatibility Policy
87
+
88
+ Wexample packages follow **Semantic Versioning** (SemVer):
89
+
90
+ - **MAJOR**: Breaking changes
91
+ - **MINOR**: New features, backward compatible
92
+ - **PATCH**: Bug fixes, backward compatible
93
+
94
+ We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
95
+
96
+ ## License
97
+
98
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
99
+
100
+ Free to use in both personal and commercial projects.
101
+
102
+ ## Integration in the Suite
103
+
104
+ This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
105
+
106
+ ### Related Packages
107
+
108
+ The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
109
+
110
+ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
111
+
112
+ # About us
113
+
114
+ [Wexample](https://wexample.com) stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
115
+
116
+ This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
117
+
118
+ Wexample cultivates a culture of mastery. Each package, each contribution carries the mark of a community that values precision, ethics, and innovation — a community proud to shape the future of digital craftsmanship.
119
+
120
+ ## Known Limitations & Roadmap
121
+
122
+ Current limitations and planned features are tracked in the GitHub issues.
123
+
124
+ See the [project roadmap](https://github.com/wexample/python-wex_addon_services_platform/issues) for upcoming features and improvements.
125
+
126
+ ## Status & Compatibility
127
+
128
+ **Maturity**: Production-ready
129
+
130
+ **Python Support**: >=3.10
131
+
132
+ **OS Support**: Linux, macOS, Windows
133
+
134
+ **Status**: Actively maintained
135
+
136
+ ## Useful Links
137
+
138
+ - **Homepage**: https://github.com/wexample/python-wex-addon-services-platform
139
+ - **Documentation**: [docs.wexample.com](https://docs.wexample.com)
140
+ - **Issue Tracker**: https://github.com/wexample/python-wex-addon-services-platform/issues
141
+ - **Discussions**: https://github.com/wexample/python-wex-addon-services-platform/discussions
142
+ - **PyPI**: [pypi.org/project/wex_addon_services_platform](https://pypi.org/project/wex_addon_services_platform/)
143
+
144
+ ## Migration Notes
145
+
146
+ When upgrading between major versions, refer to the migration guides in the documentation.
147
+
148
+ Breaking changes are clearly documented with upgrade paths and examples.
@@ -0,0 +1,83 @@
1
+ [build-system]
2
+ requires = [
3
+ "pdm-backend",
4
+ ]
5
+ build-backend = "pdm.backend"
6
+
7
+ [project]
8
+ name = "wexample-wex-addon-services-platform"
9
+ version = "0.0.3"
10
+ description = "Platform services (n8n, gitlab, jenkins...) for wex"
11
+ authors = [
12
+ { name = "weeger", email = "contact@wexample.com" },
13
+ ]
14
+ requires-python = ">=3.10"
15
+ classifiers = [
16
+ "Programming Language :: Python :: 3",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Operating System :: OS Independent",
19
+ ]
20
+ dependencies = [
21
+ "requests",
22
+ "wexample-wex-addon-app>=1.0.0",
23
+ "wexample-wex-core>=7.0.0",
24
+ ]
25
+
26
+ [project.readme]
27
+ file = "README.md"
28
+ content-type = "text/markdown"
29
+
30
+ [project.license]
31
+ text = "MIT"
32
+
33
+ [project.optional-dependencies]
34
+ dev = [
35
+ "pytest",
36
+ "pytest-cov",
37
+ ]
38
+
39
+ [tool.setuptools.packages.find]
40
+ include = [
41
+ "*",
42
+ ]
43
+ exclude = [
44
+ "wexample_wex_addon_services_platform.testing*",
45
+ ]
46
+
47
+ [tool.pdm]
48
+ distribution = true
49
+
50
+ [tool.pdm.build]
51
+ package-dir = "src"
52
+ packages = [
53
+ { include = "wexample_wex_addon_services_platform", from = "src" },
54
+ ]
55
+
56
+ [tool.pytest.ini_options]
57
+ pythonpath = [
58
+ "src",
59
+ ]
60
+ testpaths = [
61
+ "tests",
62
+ ]
63
+
64
+ [tool.coverage.run]
65
+ source = [
66
+ "wexample_wex_addon_services_platform",
67
+ ]
68
+ omit = [
69
+ "*/tests/*",
70
+ "*/.venv/*",
71
+ "*/venv/*",
72
+ ]
73
+
74
+ [tool.coverage.report]
75
+ exclude_lines = [
76
+ "pragma: no cover",
77
+ "def __repr__",
78
+ "raise AssertionError",
79
+ "raise NotImplementedError",
80
+ "if __name__ == .__main__.:",
81
+ "if TYPE_CHECKING:",
82
+ "@abstractmethod",
83
+ ]
@@ -0,0 +1,7 @@
1
+ from __future__ import annotations
2
+
3
+ from wexample_wex_addon_services_platform.services_platform_addon_manager import (
4
+ ServicesPlatformAddonManager,
5
+ )
6
+
7
+ __all__ = ["ServicesPlatformAddonManager"]
@@ -0,0 +1,29 @@
1
+ from __future__ import annotations
2
+
3
+ from wexample_wex_addon_app.service.app_service import AppService as BaseAppService
4
+
5
+
6
+ class AppService(BaseAppService):
7
+ def get_workdir_contribution(self) -> dict:
8
+ from wexample_filestate.const.disk import DiskItemType
9
+
10
+ # Gitlab-ce manages its own internal permissions (runs as root),
11
+ # we just ensure the host directories exist before first docker up.
12
+ def _dir(name: str) -> dict:
13
+ return {"name": name, "type": DiskItemType.DIRECTORY, "should_exist": True}
14
+
15
+ return {
16
+ "children": [
17
+ {
18
+ "name": "gitlab",
19
+ "type": DiskItemType.DIRECTORY,
20
+ "should_exist": True,
21
+ "children": [
22
+ _dir("config"),
23
+ _dir("logs"),
24
+ _dir("data"),
25
+ _dir("backups"),
26
+ ],
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,31 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from wexample_wex_core.const.globals import COMMAND_TYPE_SERVICE
6
+ from wexample_wex_core.decorator.command import command
7
+
8
+ if TYPE_CHECKING:
9
+ from wexample_wex_addon_app.service.app_service import AppService
10
+ from wexample_wex_core.context.execution_context import ExecutionContext
11
+
12
+
13
+ @command(
14
+ type=COMMAND_TYPE_SERVICE, description="Configure gitlab service in app config"
15
+ )
16
+ def gitlab__service__install(
17
+ context: ExecutionContext,
18
+ service: AppService,
19
+ ) -> None:
20
+ app_name = service.app_workdir.get_config().search("global.name").get_str()
21
+ config_file = service.app_workdir.get_config_file()
22
+ config = config_file.read_config()
23
+
24
+ config.set_by_path(f"service.{service.name}.host", f"{app_name}_{service.name}")
25
+ config.set_by_path(f"service.{service.name}.port", 80)
26
+ config.set_by_path(f"service.{service.name}.port_ssh", 4567)
27
+
28
+ config_file.write_config(config)
29
+ service.app_workdir.get_runtime_config(rebuild=True)
30
+
31
+ context.io.log(f"Configured gitlab service for app '{app_name}'")
@@ -0,0 +1,32 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from wexample_wex_core.const.globals import COMMAND_TYPE_SERVICE
6
+ from wexample_wex_core.decorator.command import command
7
+
8
+ if TYPE_CHECKING:
9
+ from wexample_app.response.boolean_response import BooleanResponse
10
+ from wexample_wex_addon_app.service.app_service import AppService
11
+ from wexample_wex_core.context.execution_context import ExecutionContext
12
+
13
+
14
+ @command(type=COMMAND_TYPE_SERVICE, description="Check if gitlab service is ready")
15
+ def gitlab__service__ready(
16
+ context: ExecutionContext,
17
+ service: AppService,
18
+ ) -> BooleanResponse:
19
+ import subprocess
20
+
21
+ from wexample_app.response.boolean_response import BooleanResponse
22
+
23
+ runtime = service.app_workdir.get_runtime_config()
24
+ app_project_name = runtime.search("app.project_name").get_str()
25
+ container_name = f"{app_project_name}_{service.name}"
26
+
27
+ result = subprocess.run(
28
+ ["docker", "exec", container_name, "gitlab-healthcheck"],
29
+ capture_output=True,
30
+ )
31
+
32
+ return BooleanResponse(kernel=context.kernel, content=result.returncode == 0)
@@ -0,0 +1,20 @@
1
+ services:
2
+ gitlab:
3
+ container_name: ${APP_PROJECT_NAME}_gitlab
4
+ image: gitlab/gitlab-ce:16.4.1-ce.0
5
+ hostname: ${APP_DOMAIN}
6
+ ports:
7
+ - "4567:22"
8
+ volumes:
9
+ - ${APP_PATH}gitlab/backups:/var/opt/gitlab/backups
10
+ - ${APP_PATH}gitlab/config:/etc/gitlab
11
+ - ${APP_PATH}gitlab/logs:/var/log/gitlab
12
+ - ${APP_PATH}gitlab/data:/var/opt/gitlab
13
+ environment:
14
+ - VIRTUAL_HOST=${APP_DOMAINS_STRING}
15
+ - SMTP_DOMAIN=${APP_DOMAIN}
16
+ - VIRTUAL_PORT=80
17
+ - GITLAB_SHELL_SSH_PORT=4567
18
+ extends:
19
+ file: ${SERVICE_DEFAULT_COMPOSE}
20
+ service: default
@@ -0,0 +1,5 @@
1
+ services:
2
+ gitlab:
3
+ extends:
4
+ file: ${SERVICE_GITLAB_COMPOSE}
5
+ service: gitlab
@@ -0,0 +1,6 @@
1
+ services:
2
+ gitlab:
3
+ environment:
4
+ - LETSENCRYPT_EMAIL=${APP_EMAIL}
5
+ - LETSENCRYPT_HOST=${APP_DOMAINS_STRING}
6
+ - VIRTUAL_PROTO=https
@@ -0,0 +1,8 @@
1
+ name: gitlab
2
+ tags:
3
+ - platform
4
+ - scm
5
+ dependencies:
6
+ - proxy
7
+ docker:
8
+ compose: docker/docker-compose.yml
@@ -0,0 +1,15 @@
1
+ services:
2
+ jenkins:
3
+ extends:
4
+ file: ${SERVICE_DEFAULT_COMPOSE}
5
+ service: default
6
+ container_name: ${APP_PROJECT_NAME}_jenkins
7
+ image: jenkins/jenkins:2.60.3
8
+ ports:
9
+ - "50000:50000"
10
+ environment:
11
+ - VIRTUAL_HOST=${APP_DOMAINS_STRING}
12
+ - VIRTUAL_PORT=8080
13
+ volumes:
14
+ - ${APP_PATH}jenkins/config:/jenkins_config
15
+ - ${APP_PATH}jenkins/home:/var/jenkins_home
@@ -0,0 +1,5 @@
1
+ services:
2
+ jenkins:
3
+ extends:
4
+ file: ${SERVICE_JENKINS_COMPOSE}
5
+ service: jenkins
@@ -0,0 +1,5 @@
1
+ services:
2
+ jenkins:
3
+ environment:
4
+ - LETSENCRYPT_HOST=${APP_DOMAINS_STRING}
5
+ - LETSENCRYPT_EMAIL=${APP_EMAIL}