py-serverless-kit 0.5.2__tar.gz → 0.6.0__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 (299) hide show
  1. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/.gitignore +33 -29
  2. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/CHANGELOG.md +124 -101
  3. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/PKG-INFO +12 -4
  4. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/README.md +270 -264
  5. py_serverless_kit-0.6.0/dashboard-ui/src/App.tsx +122 -0
  6. py_serverless_kit-0.6.0/dashboard-ui/src/api.ts +108 -0
  7. py_serverless_kit-0.6.0/dashboard-ui/src/components/Badge.tsx +18 -0
  8. py_serverless_kit-0.6.0/dashboard-ui/src/components/Card.tsx +35 -0
  9. py_serverless_kit-0.6.0/dashboard-ui/src/components/CopyButton.tsx +36 -0
  10. py_serverless_kit-0.6.0/dashboard-ui/src/components/DataTable.tsx +143 -0
  11. py_serverless_kit-0.6.0/dashboard-ui/src/components/Drawer.tsx +89 -0
  12. py_serverless_kit-0.6.0/dashboard-ui/src/components/Feedback.tsx +35 -0
  13. py_serverless_kit-0.6.0/dashboard-ui/src/components/Inputs.tsx +59 -0
  14. py_serverless_kit-0.6.0/dashboard-ui/src/components/JsonView.tsx +82 -0
  15. py_serverless_kit-0.6.0/dashboard-ui/src/components/Link.tsx +12 -0
  16. py_serverless_kit-0.6.0/dashboard-ui/src/components/LogViewer.tsx +245 -0
  17. py_serverless_kit-0.6.0/dashboard-ui/src/components/Pagination.tsx +75 -0
  18. py_serverless_kit-0.6.0/dashboard-ui/src/components/Tabs.tsx +42 -0
  19. py_serverless_kit-0.6.0/dashboard-ui/src/components/Timeline.tsx +58 -0
  20. py_serverless_kit-0.6.0/dashboard-ui/src/format.ts +71 -0
  21. py_serverless_kit-0.6.0/dashboard-ui/src/hooks.ts +108 -0
  22. py_serverless_kit-0.6.0/dashboard-ui/src/main.tsx +13 -0
  23. py_serverless_kit-0.6.0/dashboard-ui/src/styles.css +1097 -0
  24. py_serverless_kit-0.6.0/dashboard-ui/src/types.ts +153 -0
  25. py_serverless_kit-0.6.0/dashboard-ui/src/views/DeploymentView.tsx +160 -0
  26. py_serverless_kit-0.6.0/dashboard-ui/src/views/ExecutionsTab.tsx +279 -0
  27. py_serverless_kit-0.6.0/dashboard-ui/src/views/FunctionsTab.tsx +191 -0
  28. py_serverless_kit-0.6.0/dashboard-ui/src/views/MiscTabs.tsx +96 -0
  29. py_serverless_kit-0.6.0/dashboard-ui/src/views/Overview.tsx +135 -0
  30. py_serverless_kit-0.6.0/dashboard-ui/src/views/StartDialog.tsx +131 -0
  31. py_serverless_kit-0.6.0/dashboard-ui/src/views/WorkflowsTab.tsx +94 -0
  32. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/deploy_docs/CONTRIBUTING.md +176 -158
  33. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/docs/README.md +25 -22
  34. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/docs/architecture.md +135 -128
  35. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/docs/cli.md +216 -175
  36. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/docs/configuration.md +276 -246
  37. py_serverless_kit-0.6.0/docs/dashboard.md +89 -0
  38. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/docs/events.md +236 -218
  39. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/docs/providers.md +523 -473
  40. py_serverless_kit-0.6.0/docs/resources.md +201 -0
  41. py_serverless_kit-0.6.0/docs/scenarios.md +373 -0
  42. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/docs/troubleshooting.md +111 -109
  43. py_serverless_kit-0.6.0/docs/workflow-executions.md +156 -0
  44. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/docs/workflows.md +192 -180
  45. py_serverless_kit-0.6.0/examples/18-resources/README.md +32 -0
  46. py_serverless_kit-0.6.0/examples/18-resources/app/handlers.py +45 -0
  47. py_serverless_kit-0.6.0/examples/18-resources/pskit.yml +60 -0
  48. py_serverless_kit-0.6.0/examples/18-resources/requirements.txt +1 -0
  49. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/README.md +42 -41
  50. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/pyproject.toml +96 -95
  51. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/__init__.py +51 -47
  52. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/_version.py +1 -1
  53. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/cli/main.py +780 -550
  54. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/config/schema.py +655 -458
  55. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/core/describe.py +133 -112
  56. py_serverless_kit-0.6.0/src/py_serverless_kit/core/executions.py +533 -0
  57. py_serverless_kit-0.6.0/src/py_serverless_kit/core/onprem_control.py +169 -0
  58. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/core/project.py +150 -147
  59. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/dashboard/generator.py +87 -65
  60. py_serverless_kit-0.6.0/src/py_serverless_kit/dashboard/server.py +387 -0
  61. py_serverless_kit-0.6.0/src/py_serverless_kit/dashboard/template.html +55 -0
  62. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/local/runner.py +236 -234
  63. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/aws.py +151 -26
  64. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/azure.py +422 -417
  65. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/base.py +368 -316
  66. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/gcp.py +499 -480
  67. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/onprem.py +760 -645
  68. py_serverless_kit-0.6.0/src/py_serverless_kit/runtime/drivers/__init__.py +96 -0
  69. py_serverless_kit-0.6.0/src/py_serverless_kit/runtime/drivers/redis.py +255 -0
  70. py_serverless_kit-0.6.0/src/py_serverless_kit/runtime/drivers/s3.py +225 -0
  71. py_serverless_kit-0.6.0/src/py_serverless_kit/runtime/executions.py +451 -0
  72. py_serverless_kit-0.6.0/src/py_serverless_kit/runtime/hostlog.py +373 -0
  73. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/log.py +3 -1
  74. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/onprem_host.py +1474 -1106
  75. py_serverless_kit-0.6.0/src/py_serverless_kit/runtime/resources.py +110 -0
  76. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/workflow.py +427 -312
  77. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/config/test_schema.py +52 -0
  78. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/conftest.py +13 -0
  79. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/providers/test_onprem.py +31 -0
  80. py_serverless_kit-0.6.0/tests/providers/test_resources.py +277 -0
  81. py_serverless_kit-0.6.0/tests/runtime/test_drivers.py +332 -0
  82. py_serverless_kit-0.6.0/tests/runtime/test_executions.py +246 -0
  83. py_serverless_kit-0.6.0/tests/runtime/test_hostlog.py +122 -0
  84. py_serverless_kit-0.6.0/tests/runtime/test_onprem_host.py +465 -0
  85. py_serverless_kit-0.6.0/tests/runtime/test_onprem_host_drivers.py +147 -0
  86. py_serverless_kit-0.6.0/tests/runtime/test_resources.py +49 -0
  87. py_serverless_kit-0.6.0/tests/test_dashboard_server.py +226 -0
  88. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/test_examples.py +206 -205
  89. py_serverless_kit-0.6.0/tests/test_executions_backends.py +345 -0
  90. py_serverless_kit-0.6.0/tests/workflows/__init__.py +0 -0
  91. py_serverless_kit-0.5.2/docs/dashboard.md +0 -44
  92. py_serverless_kit-0.5.2/src/py_serverless_kit/dashboard/template.html +0 -248
  93. py_serverless_kit-0.5.2/tests/runtime/test_onprem_host.py +0 -246
  94. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/CONTRIBUTING.md +0 -0
  95. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/LICENSE +0 -0
  96. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/docs/getting-started.md +0 -0
  97. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/docs/handlers.md +0 -0
  98. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/docs/local-development.md +0 -0
  99. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/docs/migrating-from-aws.md +0 -0
  100. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/01-hello-http/README.md +0 -0
  101. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/01-hello-http/app/__init__.py +0 -0
  102. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/01-hello-http/app/handlers.py +0 -0
  103. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/01-hello-http/pskit.yml +0 -0
  104. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/01-hello-http/requirements.txt +0 -0
  105. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/02-rest-api/README.md +0 -0
  106. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/02-rest-api/app/__init__.py +0 -0
  107. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/02-rest-api/app/handlers.py +0 -0
  108. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/02-rest-api/app/store.py +0 -0
  109. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/02-rest-api/pskit.yml +0 -0
  110. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/02-rest-api/requirements.txt +0 -0
  111. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/03-scheduled-jobs/README.md +0 -0
  112. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/03-scheduled-jobs/app/__init__.py +0 -0
  113. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/03-scheduled-jobs/app/jobs.py +0 -0
  114. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/03-scheduled-jobs/pskit.yml +0 -0
  115. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/03-scheduled-jobs/requirements.txt +0 -0
  116. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/04-queue-worker/README.md +0 -0
  117. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/04-queue-worker/app/__init__.py +0 -0
  118. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/04-queue-worker/app/worker.py +0 -0
  119. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/04-queue-worker/pskit.yml +0 -0
  120. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/04-queue-worker/requirements.txt +0 -0
  121. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/05-storage-events/README.md +0 -0
  122. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/05-storage-events/app/__init__.py +0 -0
  123. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/05-storage-events/app/files.py +0 -0
  124. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/05-storage-events/pskit.yml +0 -0
  125. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/05-storage-events/requirements.txt +0 -0
  126. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/06-pubsub-topic/README.md +0 -0
  127. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/06-pubsub-topic/app/__init__.py +0 -0
  128. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/06-pubsub-topic/app/subscribers.py +0 -0
  129. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/06-pubsub-topic/pskit.yml +0 -0
  130. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/06-pubsub-topic/requirements.txt +0 -0
  131. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/07-workflow-orders/README.md +0 -0
  132. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/07-workflow-orders/app/__init__.py +0 -0
  133. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/07-workflow-orders/app/orders.py +0 -0
  134. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/07-workflow-orders/events/b2b.json +0 -0
  135. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/07-workflow-orders/events/declined.json +0 -0
  136. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/07-workflow-orders/events/happy.json +0 -0
  137. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/07-workflow-orders/pskit.yml +0 -0
  138. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/07-workflow-orders/requirements.txt +0 -0
  139. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/08-multi-cloud/README.md +0 -0
  140. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/08-multi-cloud/app/__init__.py +0 -0
  141. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/08-multi-cloud/app/handlers.py +0 -0
  142. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/08-multi-cloud/pskit.aws.yml +0 -0
  143. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/08-multi-cloud/pskit.azure.yml +0 -0
  144. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/08-multi-cloud/pskit.gcp.yml +0 -0
  145. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/08-multi-cloud/pskit.yml +0 -0
  146. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/08-multi-cloud/requirements.txt +0 -0
  147. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/09-function-invoke/README.md +0 -0
  148. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/09-function-invoke/app/__init__.py +0 -0
  149. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/09-function-invoke/app/quotes.py +0 -0
  150. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/09-function-invoke/pskit.yml +0 -0
  151. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/09-function-invoke/requirements.txt +0 -0
  152. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/10-stages-and-config/.env.example +0 -0
  153. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/10-stages-and-config/README.md +0 -0
  154. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/10-stages-and-config/app/__init__.py +0 -0
  155. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/10-stages-and-config/app/handlers.py +0 -0
  156. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/10-stages-and-config/app/settings.py +0 -0
  157. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/10-stages-and-config/config/limits.json +0 -0
  158. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/10-stages-and-config/pskit.yml +0 -0
  159. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/10-stages-and-config/requirements.txt +0 -0
  160. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/11-custom-terraform/README.md +0 -0
  161. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/11-custom-terraform/app/__init__.py +0 -0
  162. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/11-custom-terraform/app/handlers.py +0 -0
  163. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/11-custom-terraform/app/repository.py +0 -0
  164. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/11-custom-terraform/pskit.yml +0 -0
  165. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/11-custom-terraform/requirements.txt +0 -0
  166. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/11-custom-terraform/scripts/smoke_test.py +0 -0
  167. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/11-custom-terraform/tests/test_orders.py +0 -0
  168. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/12-async-and-context/README.md +0 -0
  169. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/12-async-and-context/app/__init__.py +0 -0
  170. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/12-async-and-context/app/handlers.py +0 -0
  171. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/12-async-and-context/pskit.yml +0 -0
  172. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/12-async-and-context/requirements.txt +0 -0
  173. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/13-migrate-from-aws-lambda/README.md +0 -0
  174. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/13-migrate-from-aws-lambda/after/app/__init__.py +0 -0
  175. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/13-migrate-from-aws-lambda/after/app/orders.py +0 -0
  176. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/13-migrate-from-aws-lambda/after/pskit.yml +0 -0
  177. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/13-migrate-from-aws-lambda/after/requirements.txt +0 -0
  178. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/13-migrate-from-aws-lambda/before/lambda_function.py +0 -0
  179. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/13-migrate-from-aws-lambda/before/state_machine.asl.json +0 -0
  180. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/13-migrate-from-aws-lambda/before/template.yaml +0 -0
  181. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/14-testing/README.md +0 -0
  182. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/14-testing/app/__init__.py +0 -0
  183. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/14-testing/app/handlers.py +0 -0
  184. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/14-testing/ci.github-workflow.yml +0 -0
  185. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/14-testing/pskit.yml +0 -0
  186. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/14-testing/requirements.txt +0 -0
  187. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/14-testing/tests/conftest.py +0 -0
  188. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/14-testing/tests/test_handlers.py +0 -0
  189. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/14-testing/tests/test_workflow.py +0 -0
  190. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/15-ci-cd-deploy/README.md +0 -0
  191. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/15-ci-cd-deploy/app/__init__.py +0 -0
  192. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/15-ci-cd-deploy/app/handlers.py +0 -0
  193. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/15-ci-cd-deploy/deploy.github-workflow.yml +0 -0
  194. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/15-ci-cd-deploy/pskit.yml +0 -0
  195. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/15-ci-cd-deploy/requirements.txt +0 -0
  196. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/16-on-premises/README.md +0 -0
  197. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/16-on-premises/app/__init__.py +0 -0
  198. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/16-on-premises/app/handlers.py +0 -0
  199. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/16-on-premises/pskit.yml +0 -0
  200. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/16-on-premises/requirements.txt +0 -0
  201. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/17-on-premises-remote/README.md +0 -0
  202. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/17-on-premises-remote/app/__init__.py +0 -0
  203. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/17-on-premises-remote/app/handlers.py +0 -0
  204. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/17-on-premises-remote/pskit.yml +0 -0
  205. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/examples/17-on-premises-remote/requirements.txt +0 -0
  206. {py_serverless_kit-0.5.2/src/py_serverless_kit/cli → py_serverless_kit-0.6.0/examples/18-resources/app}/__init__.py +0 -0
  207. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/__main__.py +0 -0
  208. {py_serverless_kit-0.5.2/src/py_serverless_kit/core → py_serverless_kit-0.6.0/src/py_serverless_kit/cli}/__init__.py +0 -0
  209. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/cli/templates.py +0 -0
  210. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/config/__init__.py +0 -0
  211. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/config/loader.py +0 -0
  212. {py_serverless_kit-0.5.2/tests → py_serverless_kit-0.6.0/src/py_serverless_kit/core}/__init__.py +0 -0
  213. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/core/deployer.py +0 -0
  214. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/dashboard/__init__.py +0 -0
  215. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/local/__init__.py +0 -0
  216. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/local/server.py +0 -0
  217. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/packaging/__init__.py +0 -0
  218. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/packaging/builder.py +0 -0
  219. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/__init__.py +0 -0
  220. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/alibaba.py +0 -0
  221. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/cloudflare.py +0 -0
  222. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/digitalocean.py +0 -0
  223. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/huawei.py +0 -0
  224. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/ibm.py +0 -0
  225. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/onprem_remote.py +0 -0
  226. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/onprem_spec.py +0 -0
  227. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/oracle.py +0 -0
  228. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/registry.py +0 -0
  229. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/schedule.py +0 -0
  230. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/tencent.py +0 -0
  231. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/providers/terraform_doc.py +0 -0
  232. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/__init__.py +0 -0
  233. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/adapters/__init__.py +0 -0
  234. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/adapters/_httpfn.py +0 -0
  235. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/adapters/alibaba.py +0 -0
  236. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/adapters/aws.py +0 -0
  237. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/adapters/azure.py +0 -0
  238. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/adapters/base.py +0 -0
  239. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/adapters/cloudflare.py +0 -0
  240. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/adapters/digitalocean.py +0 -0
  241. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/adapters/gcp.py +0 -0
  242. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/adapters/huawei.py +0 -0
  243. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/adapters/ibm.py +0 -0
  244. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/adapters/onprem.py +0 -0
  245. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/adapters/oracle.py +0 -0
  246. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/adapters/tencent.py +0 -0
  247. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/batch.py +0 -0
  248. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/context.py +0 -0
  249. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/cron.py +0 -0
  250. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/dispatch.py +0 -0
  251. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/errors.py +0 -0
  252. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/event.py +0 -0
  253. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/invoke.py +0 -0
  254. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/manifest.py +0 -0
  255. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/response.py +0 -0
  256. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/runtime/routing.py +0 -0
  257. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/terraform/__init__.py +0 -0
  258. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/terraform/runner.py +0 -0
  259. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/workflows/__init__.py +0 -0
  260. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/workflows/asl.py +0 -0
  261. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/src/py_serverless_kit/workflows/gcp.py +0 -0
  262. {py_serverless_kit-0.5.2/tests/config → py_serverless_kit-0.6.0/tests}/__init__.py +0 -0
  263. {py_serverless_kit-0.5.2/tests/local → py_serverless_kit-0.6.0/tests/config}/__init__.py +0 -0
  264. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/config/test_loader.py +0 -0
  265. {py_serverless_kit-0.5.2/tests/providers → py_serverless_kit-0.6.0/tests/local}/__init__.py +0 -0
  266. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/local/test_server.py +0 -0
  267. {py_serverless_kit-0.5.2/tests/runtime → py_serverless_kit-0.6.0/tests/providers}/__init__.py +0 -0
  268. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/providers/test_alibaba.py +0 -0
  269. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/providers/test_aws.py +0 -0
  270. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/providers/test_azure.py +0 -0
  271. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/providers/test_cloudflare.py +0 -0
  272. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/providers/test_digitalocean.py +0 -0
  273. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/providers/test_gcp.py +0 -0
  274. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/providers/test_huawei.py +0 -0
  275. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/providers/test_ibm.py +0 -0
  276. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/providers/test_onprem_remote.py +0 -0
  277. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/providers/test_oracle.py +0 -0
  278. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/providers/test_schedule.py +0 -0
  279. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/providers/test_tencent.py +0 -0
  280. {py_serverless_kit-0.5.2/tests/workflows → py_serverless_kit-0.6.0/tests/runtime}/__init__.py +0 -0
  281. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/runtime/test_adapter_alibaba.py +0 -0
  282. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/runtime/test_adapter_aws.py +0 -0
  283. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/runtime/test_adapter_azure.py +0 -0
  284. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/runtime/test_adapter_cloudflare.py +0 -0
  285. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/runtime/test_adapter_digitalocean.py +0 -0
  286. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/runtime/test_adapter_gcp.py +0 -0
  287. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/runtime/test_adapter_huawei.py +0 -0
  288. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/runtime/test_adapter_ibm.py +0 -0
  289. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/runtime/test_adapter_onprem.py +0 -0
  290. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/runtime/test_adapter_oracle.py +0 -0
  291. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/runtime/test_adapter_tencent.py +0 -0
  292. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/runtime/test_cron.py +0 -0
  293. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/runtime/test_dispatch.py +0 -0
  294. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/runtime/test_models.py +0 -0
  295. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/runtime/test_workflow_engine.py +0 -0
  296. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/test_cli.py +0 -0
  297. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/test_dashboard.py +0 -0
  298. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/test_packaging.py +0 -0
  299. {py_serverless_kit-0.5.2 → py_serverless_kit-0.6.0}/tests/workflows/test_compilers.py +0 -0
@@ -1,29 +1,33 @@
1
- # Python
2
- __pycache__/
3
- *.py[cod]
4
- *.egg-info/
5
- .venv/
6
- venv/
7
- CLAUDE.md
8
- build/
9
- dist/
10
- .pytest_cache/
11
- .mypy_cache/
12
- .ruff_cache/
13
- .coverage
14
- htmlcov/
15
- .pypirc
16
- # py-serverless-kit working dirs (local terraform state, artifacts)
17
- .pskit/
18
- .terraform/
19
- *.tfstate
20
- *.tfstate.*
21
-
22
- # Secrets
23
- .env
24
- .pypirc
25
-
26
- # Editors / OS
27
- .idea/
28
- .vscode/
29
- .DS_Store
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ .venv/
6
+ venv/
7
+ CLAUDE.md
8
+ build/
9
+ dist/
10
+ .pytest_cache/
11
+ .mypy_cache/
12
+ .ruff_cache/
13
+ .coverage
14
+ htmlcov/
15
+ .pypirc
16
+ # py-serverless-kit working dirs (local terraform state, artifacts)
17
+ .pskit/
18
+ .terraform/
19
+ *.tfstate
20
+ *.tfstate.*
21
+ node_modules/
22
+ # Dashboard UI (source in dashboard-ui/, build output is src/py_serverless_kit/dashboard/template.html)
23
+ dashboard-ui/node_modules/
24
+ dashboard-ui/dist/
25
+
26
+ # Secrets
27
+ .env
28
+ .pypirc
29
+
30
+ # Editors / OS
31
+ .idea/
32
+ .vscode/
33
+ .DS_Store
@@ -1,101 +1,124 @@
1
- # Changelog
2
-
3
- All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses [Semantic Versioning](https://semver.org/).
4
-
5
- > The function runtime is bundled into every deployment. After upgrading `py-serverless-kit`, run `pskit deploy` again to pick up runtime fixes.
6
-
7
- ## [Unreleased]
8
-
9
- ## [0.5.2] - 2026-10-19
10
-
11
- ### Fixed
12
- - On-premises SSH deploy as a normal user such as `azureuser`. With `deploy.sudo: true`, apply creates `deploy.path` with `sudo -n mkdir` and `chown`s it to the SSH user before `scp`. A user who cannot write `/opt` no longer fails with `Permission denied`.
13
-
14
- Redeploy the on-premises host after upgrading. Handler code is unchanged.
15
-
16
- ## [0.5.1] - 2026-10-19
17
-
18
- ### Fixed
19
- - On-premises `python: bundle` on Windows. Unpacking a Linux CPython into the project raised `WinError 206` (`The filename or extension is too long`) on setuptools test files under `pkg_resources/tests`. A remote deploy now copies that archive straight into `release.tar.gz` and leaves those test files out. A partial `onprem_app/python` tree from the failed unpack is removed on the next deploy.
20
-
21
- Redeploy the on-premises host after upgrading. Handler code is unchanged.
22
-
23
- ## [0.5.0] - 2026-10-19
24
-
25
- ### Changed
26
- - On-premises remote deploy copies one `release.tar.gz` with `scp` and starts it from a script on the server. `options.deploy.method: scp` is the same path as `ssh`. A `.pem` (`pem` or `identity_file`) is passed with `IdentitiesOnly`. `pskit deploy` asks for that path on a terminal for SSH as well as Docker; press Enter on the SSH prompt to keep the SSH agent or the default key. Docker on a server still requires a key.
27
- - The server script restarts a systemd unit (`systemctl restart`, so a redeploy replaces the running process), installs and starts Docker when `method: docker` and `docker` is missing, and uses `sudo -n` so a missing sudoers rule fails immediately. It exports a normal `PATH` (non-login SSH often cannot see `systemctl` or `python3`). `pskit-run.sh` starts a bundled CPython when one was copied, then `python3.x`, then `python3`.
28
- - Apply waits until `http://127.0.0.1:<port>/__pskit/health` answers. A dead process or container fails the deploy and prints `journalctl` or `docker logs`. A process that binds `0.0.0.0` is checked on `127.0.0.1`, including when `advertise` is a public URL.
29
-
30
- Redeploy on-premises hosts to pick up the new provisioner. Handler code is unchanged.
31
-
32
- ## [0.4.0] - 2026-10-19
33
-
34
- ### Added
35
- - On-premises Docker deploy to a server. Set `options.deploy.method: docker` and `options.deploy.host`. `pskit deploy` asks for a `.pem` private key when `options.deploy.pem` is unset (`identity_file` is the same field). The image is built on the machine that runs `pskit`, copied over SSH, and started with `docker run`. If `docker` is missing on the server, apply installs it (`docker.io` via apt, `docker` via dnf or yum, or `docker` via apk) and then loads the image. `install_docker: false` skips the install and fails if Docker is absent. `sudo` defaults to true for this path so the SSH user can install and start the daemon.
36
-
37
- Redeploy on-premises Docker hosts to pick up the new provisioner. Handler code is unchanged.
38
-
39
- ## [0.3.0] - 2026-10-17
40
-
41
- ### Added
42
- - On-premises deploy targets. `provider.options.deploy.method` is `local` (default, previous behaviour), `ssh` (copy the host over OpenSSH and start a process or systemd unit), or `docker` (build an image that already contains Python). When the server has no Python, set `python: bundle` to ship a portable CPython, or use `method: docker`. `python_home` / `python_url` cover air-gapped mirrors. Wheels are vendored for the target OS/arch (manylinux when the server is Linux).
43
- - Example [17-on-premises-remote](examples/17-on-premises-remote): SSH + bundled interpreter + systemd.
44
-
45
- ### Fixed
46
- - On-prem host: Windows process helpers (`ctypes.windll`, `subprocess.DETACHED_PROCESS`) are gated on `sys.platform == "win32"` so mypy on Linux/macOS CI no longer reports missing attributes.
47
-
48
- Redeploy on-premises hosts to pick up the new `onprem_deploy.py` provisioner. Handler code is unchanged.
49
-
50
- ## [0.2.0] - 2026-10-17
51
-
52
- ### Added
53
- - On-premises provider (`provider.name: onprem`). `pskit deploy` starts one long-lived Python process on the machine that runs the command. HTTP is served directly. Schedules, file queues (with dead-letter and partial batch failure), directory storage and file topics are created at start when they do not already exist. Point `provider.options.services.<kind>` at `{use: directory, path: ...}` to use a directory you already have. `existing: true` waits for that directory instead of creating it. Workflows run on the embedded engine inside the host, and `invoke()` stays in-process. `pskit remove` stops the process and leaves the data directory in place.
54
- - Example [16-on-premises](examples/16-on-premises). Every other example has an `providers.onprem` block (its own port, public auth where a cloud authorizer does not apply, local state where the file used a cloud backend).
55
-
56
- No change to handlers that already run on a cloud. Redeploy to pick up the new runtime if you use `BatchResult` or `invoke()` on premises.
57
-
58
- ## [0.1.3] - 2026-10-15
59
-
60
- ### Fixed
61
- - AWS: `pskit deploy` failed with `creating Lambda Function ...: decomposing request: bufio.Scanner: token too long` once the bundle (e.g. with vendored dependencies) got large, because the zip was sent inline in every `CreateFunction` request. The artifact is now uploaded once to S3 (`aws_s3_object`) and each Lambda function references it via `s3_bucket`/`s3_key`. This also lifts the 50 MB inline upload limit.
62
-
63
- ### Added
64
- - AWS options `artifact_bucket` (use an existing bucket for code uploads instead of the private `<service>-<stage>-code-*` bucket pskit creates) and `artifact_upload: s3 | direct` (`direct` restores the old inline upload).
65
-
66
- No runtime changes. Existing AWS deployments get a new code bucket on the next `pskit deploy`; Lambda functions are updated in place.
67
-
68
- ## [0.1.2] - 2026-10-15
69
-
70
- ### Fixed
71
- - Python 3.9 support: `pskit package`/`deploy` (and the Cloudflare provider) crashed with `TypeError: write_text() got an unexpected keyword argument 'newline'`, because `Path.write_text(newline=...)` only exists on Python 3.10+. Generated files are now written as UTF-8 bytes with `\n` line endings on every Python version.
72
- - GCP adapter: the storage object `size` check now narrows `None` explicitly, so mypy passes on Python 3.9 CI. Runtime behavior is unchanged.
73
-
74
- No runtime behavior changes: functions deployed with 0.1.1 don't need to be redeployed.
75
-
76
- ## [0.1.1] - 2026-10-15
77
-
78
- ### Changed
79
- - Author and maintainer set to Asif Khan @ Kavion.ai (`py_serverless_kit.__author__`, package metadata, LICENSE).
80
- - Project URLs (homepage, docs, issues, changelog) now point to https://github.com/ak9347128658/serverless_kit.
81
- - README links are absolute so they work on the PyPI project page; added CI/PyPI/license badges.
82
- - `scripts/validate_all_providers.py` explains that Terraform is optional instead of printing a traceback when it isn't installed.
83
-
84
- ### Added
85
- - `deploy_docs/How_to_deploy.md`: short PyPI release guide with PowerShell commands and troubleshooting (e.g. TestPyPI `403`).
86
- - `deploy_docs/HOW_TO_INSTALL_TERRAFORM.md`: installing Terraform on Windows.
87
-
88
- No runtime changes: functions deployed with 0.1.0 don't need to be redeployed.
89
-
90
- ## [0.1.0] - 2026-10-15
91
-
92
- ### Added
93
- - Portable handler API: `Event`, `HttpRequest`, `Record`, `Headers`, `Context`, `Response`, HTTP error classes, `BatchResult`, `invoke()`.
94
- - `pskit.yml` configuration with `extends:`, `providers:` and `stages:` overrides, and `${env:}`, `${opt:}`, `${self:}`, `${file()}` and `${tf:}` variables.
95
- - Providers: AWS (stable), Google Cloud (stable), Azure (stable), Alibaba Cloud (beta), Huawei Cloud (beta), Tencent Cloud (beta), DigitalOcean (beta), IBM Cloud (beta), Oracle Cloud (experimental), Cloudflare Workers (experimental).
96
- - Triggers: HTTP (path params, CORS, auth), schedule (rate/cron), queue, storage, topic.
97
- - Workflows: native AWS Step Functions and Google Cloud Workflows compilers, plus an embedded engine for the other providers and local runs.
98
- - CLI: `init`, `validate`, `package`, `plan`, `deploy`, `remove`, `info`, `dashboard`, `dev`, `invoke`, `workflow run|show`, `providers`, `tf`.
99
- - Deployment dashboard (self-contained HTML).
100
- - Local dev server with hot reload, and `LocalRunner` for tests.
101
- - `scripts/validate_all_providers.py`, which runs `terraform validate` for every provider.
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses [Semantic Versioning](https://semver.org/).
4
+
5
+ > The function runtime is bundled into every deployment. After upgrading `py-serverless-kit`, run `pskit deploy` again to pick up runtime fixes.
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.6.0] - 2026-10-21
10
+
11
+ ### Added
12
+ - **`resources:`** for storage, queues, topics, databases, caches and custom services. A resource is managed (pskit creates it) or `external: true` (pskit only attaches it). Bound functions get `PSKIT_RESOURCES` and `PSKIT_RESOURCE_<KEY>_TYPE/NAME/EXTERNAL/<connection key>` variables, plus `ARN`/`URL` on AWS and `ID` for Pub/Sub on GCP. `functions:` limits which functions get a binding. `queue`, `storage` and `topic` events accept `resource: <key>`. Standalone managed resources are created on AWS, GCP, Azure and on premises; other providers report a validation error. AWS roles get a `pskit-resources` policy for the bound resources. See `docs/resources.md`.
13
+ - On-premises `provider.options` `execution_retention`, `workflow_workers`, `log_buffer`, `log_level` and `capture_output` to tune the host's execution store, workflow concurrency and log capture.
14
+ - `resource()`, `resources()` and `Resource` in `py_serverless_kit`, to read bindings the same way on every cloud.
15
+ - On-premises drivers for resources: `redis` queues (stdlib RESP client; `<key>`, `<key>:processing` and `<key>:claims`, with crash recovery) and `s3` storage (SigV4, MinIO and any S3-compatible store, `prefix`, `path_style`, `session_token`), plus a per-resource `directory`. Unreachable backends become host notes and the host keeps running.
16
+ - Workflow execution ids everywhere. The on-premises host tracks runs in `<data_dir>/executions/`: status, current state, history (`enter`/`exit`/`caught`/`retry`/`fail`), input, output and error. `GET /__pskit/executions[/<id>]` and `POST /__pskit/executions/<id>/cancel` inspect and control runs. Cancel stops before the next state and wakes `wait` states. `workflows.<name>.timeout` is enforced by the embedded engine (`TIMED_OUT`), and runs interrupted by a restart become `ABORTED`. Cloud orchestrators return `execution_id` with their synchronous result. See `docs/workflow-executions.md`.
17
+ - `pskit workflow start | executions | status | cancel` for deployed workflows on the on-premises host, AWS Step Functions (`pip install "py-serverless-kit[aws]"`) and Google Cloud Workflows (new `[gcp]` extra: `google-cloud-workflows`).
18
+ - On-premises logs: the host captures logging, `print`/stdout/stderr, one entry per invocation and host notes, tagged with function and request id, in memory and in `<data_dir>/logs/host.jsonl` (rotated). `GET /__pskit/logs` (`since`, `before`, `limit`, `level`, `function`, `source`, `q`), `GET /__pskit/stats` (invocations, errors and durations per function, queue depths), and `pskit logs [-f]`.
19
+ - A new React + Vite dashboard (single self-contained page) with sortable, paginated tables, deployment tabs (Functions, Workflows, Executions, Logs, Resources, Outputs) and light/dark themes. `pskit dashboard --serve` (new `--host`) adds a JSON API for live host health and stats, a log tail, and workflow executions (list, start, follow, cancel). The API checks the Host header and same-origin POSTs and keeps admin tokens server-side.
20
+ - `docs/scenarios.md`: step-by-step guides by use case.
21
+
22
+ ### Changed
23
+ - **Breaking (on premises):** `POST /workflows/<name>` and `POST /__pskit/workflows/<name>` start the workflow in the background and answer `202 {"execution_id", "status": "RUNNING", "status_url", ...}`. Add `?wait=true` (or `Prefer: wait`, or `x-pskit-wait: true`) to get the old synchronous result. That result now also includes `execution_id`, `started_at` and `stopped_at`.
24
+ - `deployment.json` (and `pskit info --json`) include the deployment `key` (`<provider>-<stage>`) and `resources` (connection key names only).
25
+
26
+ ### Fixed
27
+ - The on-premises host drains the request body before answering `401` for a missing admin token. On Windows the client previously saw a connection reset instead of the 401.
28
+ - Re-validating a dumped config no longer leaves each event's config as a plain dict.
29
+
30
+ Redeploy to pick up the new runtime. Handler code is unchanged.
31
+
32
+ ## [0.5.2] - 2026-10-19
33
+
34
+ ### Fixed
35
+ - On-premises SSH deploy as a normal user such as `azureuser`. With `deploy.sudo: true`, apply creates `deploy.path` with `sudo -n mkdir` and `chown`s it to the SSH user before `scp`. A user who cannot write `/opt` no longer fails with `Permission denied`.
36
+
37
+ Redeploy the on-premises host after upgrading. Handler code is unchanged.
38
+
39
+ ## [0.5.1] - 2026-10-19
40
+
41
+ ### Fixed
42
+ - On-premises `python: bundle` on Windows. Unpacking a Linux CPython into the project raised `WinError 206` (`The filename or extension is too long`) on setuptools test files under `pkg_resources/tests`. A remote deploy now copies that archive straight into `release.tar.gz` and leaves those test files out. A partial `onprem_app/python` tree from the failed unpack is removed on the next deploy.
43
+
44
+ Redeploy the on-premises host after upgrading. Handler code is unchanged.
45
+
46
+ ## [0.5.0] - 2026-10-19
47
+
48
+ ### Changed
49
+ - On-premises remote deploy copies one `release.tar.gz` with `scp` and starts it from a script on the server. `options.deploy.method: scp` is the same path as `ssh`. A `.pem` (`pem` or `identity_file`) is passed with `IdentitiesOnly`. `pskit deploy` asks for that path on a terminal for SSH as well as Docker; press Enter on the SSH prompt to keep the SSH agent or the default key. Docker on a server still requires a key.
50
+ - The server script restarts a systemd unit (`systemctl restart`, so a redeploy replaces the running process), installs and starts Docker when `method: docker` and `docker` is missing, and uses `sudo -n` so a missing sudoers rule fails immediately. It exports a normal `PATH` (non-login SSH often cannot see `systemctl` or `python3`). `pskit-run.sh` starts a bundled CPython when one was copied, then `python3.x`, then `python3`.
51
+ - Apply waits until `http://127.0.0.1:<port>/__pskit/health` answers. A dead process or container fails the deploy and prints `journalctl` or `docker logs`. A process that binds `0.0.0.0` is checked on `127.0.0.1`, including when `advertise` is a public URL.
52
+
53
+ Redeploy on-premises hosts to pick up the new provisioner. Handler code is unchanged.
54
+
55
+ ## [0.4.0] - 2026-10-19
56
+
57
+ ### Added
58
+ - On-premises Docker deploy to a server. Set `options.deploy.method: docker` and `options.deploy.host`. `pskit deploy` asks for a `.pem` private key when `options.deploy.pem` is unset (`identity_file` is the same field). The image is built on the machine that runs `pskit`, copied over SSH, and started with `docker run`. If `docker` is missing on the server, apply installs it (`docker.io` via apt, `docker` via dnf or yum, or `docker` via apk) and then loads the image. `install_docker: false` skips the install and fails if Docker is absent. `sudo` defaults to true for this path so the SSH user can install and start the daemon.
59
+
60
+ Redeploy on-premises Docker hosts to pick up the new provisioner. Handler code is unchanged.
61
+
62
+ ## [0.3.0] - 2026-10-17
63
+
64
+ ### Added
65
+ - On-premises deploy targets. `provider.options.deploy.method` is `local` (default, previous behaviour), `ssh` (copy the host over OpenSSH and start a process or systemd unit), or `docker` (build an image that already contains Python). When the server has no Python, set `python: bundle` to ship a portable CPython, or use `method: docker`. `python_home` / `python_url` cover air-gapped mirrors. Wheels are vendored for the target OS/arch (manylinux when the server is Linux).
66
+ - Example [17-on-premises-remote](examples/17-on-premises-remote): SSH + bundled interpreter + systemd.
67
+
68
+ ### Fixed
69
+ - On-prem host: Windows process helpers (`ctypes.windll`, `subprocess.DETACHED_PROCESS`) are gated on `sys.platform == "win32"` so mypy on Linux/macOS CI no longer reports missing attributes.
70
+
71
+ Redeploy on-premises hosts to pick up the new `onprem_deploy.py` provisioner. Handler code is unchanged.
72
+
73
+ ## [0.2.0] - 2026-10-17
74
+
75
+ ### Added
76
+ - On-premises provider (`provider.name: onprem`). `pskit deploy` starts one long-lived Python process on the machine that runs the command. HTTP is served directly. Schedules, file queues (with dead-letter and partial batch failure), directory storage and file topics are created at start when they do not already exist. Point `provider.options.services.<kind>` at `{use: directory, path: ...}` to use a directory you already have. `existing: true` waits for that directory instead of creating it. Workflows run on the embedded engine inside the host, and `invoke()` stays in-process. `pskit remove` stops the process and leaves the data directory in place.
77
+ - Example [16-on-premises](examples/16-on-premises). Every other example has an `providers.onprem` block (its own port, public auth where a cloud authorizer does not apply, local state where the file used a cloud backend).
78
+
79
+ No change to handlers that already run on a cloud. Redeploy to pick up the new runtime if you use `BatchResult` or `invoke()` on premises.
80
+
81
+ ## [0.1.3] - 2026-10-15
82
+
83
+ ### Fixed
84
+ - AWS: `pskit deploy` failed with `creating Lambda Function ...: decomposing request: bufio.Scanner: token too long` once the bundle (e.g. with vendored dependencies) got large, because the zip was sent inline in every `CreateFunction` request. The artifact is now uploaded once to S3 (`aws_s3_object`) and each Lambda function references it via `s3_bucket`/`s3_key`. This also lifts the 50 MB inline upload limit.
85
+
86
+ ### Added
87
+ - AWS options `artifact_bucket` (use an existing bucket for code uploads instead of the private `<service>-<stage>-code-*` bucket pskit creates) and `artifact_upload: s3 | direct` (`direct` restores the old inline upload).
88
+
89
+ No runtime changes. Existing AWS deployments get a new code bucket on the next `pskit deploy`; Lambda functions are updated in place.
90
+
91
+ ## [0.1.2] - 2026-10-15
92
+
93
+ ### Fixed
94
+ - Python 3.9 support: `pskit package`/`deploy` (and the Cloudflare provider) crashed with `TypeError: write_text() got an unexpected keyword argument 'newline'`, because `Path.write_text(newline=...)` only exists on Python 3.10+. Generated files are now written as UTF-8 bytes with `\n` line endings on every Python version.
95
+ - GCP adapter: the storage object `size` check now narrows `None` explicitly, so mypy passes on Python 3.9 CI. Runtime behavior is unchanged.
96
+
97
+ No runtime behavior changes: functions deployed with 0.1.1 don't need to be redeployed.
98
+
99
+ ## [0.1.1] - 2026-10-15
100
+
101
+ ### Changed
102
+ - Author and maintainer set to Asif Khan @ Kavion.ai (`py_serverless_kit.__author__`, package metadata, LICENSE).
103
+ - Project URLs (homepage, docs, issues, changelog) now point to https://github.com/ak9347128658/serverless_kit.
104
+ - README links are absolute so they work on the PyPI project page; added CI/PyPI/license badges.
105
+ - `scripts/validate_all_providers.py` explains that Terraform is optional instead of printing a traceback when it isn't installed.
106
+
107
+ ### Added
108
+ - `deploy_docs/How_to_deploy.md`: short PyPI release guide with PowerShell commands and troubleshooting (e.g. TestPyPI `403`).
109
+ - `deploy_docs/HOW_TO_INSTALL_TERRAFORM.md`: installing Terraform on Windows.
110
+
111
+ No runtime changes: functions deployed with 0.1.0 don't need to be redeployed.
112
+
113
+ ## [0.1.0] - 2026-10-15
114
+
115
+ ### Added
116
+ - Portable handler API: `Event`, `HttpRequest`, `Record`, `Headers`, `Context`, `Response`, HTTP error classes, `BatchResult`, `invoke()`.
117
+ - `pskit.yml` configuration with `extends:`, `providers:` and `stages:` overrides, and `${env:}`, `${opt:}`, `${self:}`, `${file()}` and `${tf:}` variables.
118
+ - Providers: AWS (stable), Google Cloud (stable), Azure (stable), Alibaba Cloud (beta), Huawei Cloud (beta), Tencent Cloud (beta), DigitalOcean (beta), IBM Cloud (beta), Oracle Cloud (experimental), Cloudflare Workers (experimental).
119
+ - Triggers: HTTP (path params, CORS, auth), schedule (rate/cron), queue, storage, topic.
120
+ - Workflows: native AWS Step Functions and Google Cloud Workflows compilers, plus an embedded engine for the other providers and local runs.
121
+ - CLI: `init`, `validate`, `package`, `plan`, `deploy`, `remove`, `info`, `dashboard`, `dev`, `invoke`, `workflow run|show`, `providers`, `tf`.
122
+ - Deployment dashboard (self-contained HTML).
123
+ - Local dev server with hot reload, and `LocalRunner` for tests.
124
+ - `scripts/validate_all_providers.py`, which runs `terraform validate` for every provider.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: py-serverless-kit
3
- Version: 0.5.2
3
+ Version: 0.6.0
4
4
  Summary: Write a Python serverless function once and deploy it to AWS, Azure, GCP, 7 more clouds, or an on-premises host with one YAML file, powered by Terraform.
5
5
  Project-URL: Homepage, https://github.com/ak9347128658/serverless_kit
6
6
  Project-URL: Documentation, https://github.com/ak9347128658/serverless_kit/tree/main/docs
@@ -40,6 +40,8 @@ Requires-Dist: pytest>=7.4; extra == 'dev'
40
40
  Requires-Dist: ruff>=0.5; extra == 'dev'
41
41
  Requires-Dist: twine>=5.0; extra == 'dev'
42
42
  Requires-Dist: types-pyyaml; extra == 'dev'
43
+ Provides-Extra: gcp
44
+ Requires-Dist: google-cloud-workflows>=1.10; extra == 'gcp'
43
45
  Description-Content-Type: text/markdown
44
46
 
45
47
  # py-serverless-kit
@@ -99,11 +101,12 @@ Teams that build on AWS Lambda and Step Functions end up with code full of API G
99
101
 
100
102
  - **10 clouds and an on-premises host:** AWS Lambda, Azure Functions, Google Cloud Functions (gen2), Alibaba Function Compute, Oracle Functions, IBM Code Engine, DigitalOcean Functions, Tencent SCF, Huawei FunctionGraph, Cloudflare Workers, plus a process on your own machine or a remote server (`onprem`: local, SSH/SCP of one archive with a `.pem`, or Docker — the image is built locally, Docker is installed on the server when it is missing, and deploy waits until the host is healthy — or a bundled CPython when the server has no Python).
101
103
  - **Triggers:** HTTP (path params, CORS, auth), schedules (rate/cron, translated into each cloud's cron dialect), queues, object storage, pub/sub topics, and direct function-to-function `invoke()`.
102
- - **Workflows:** task / choice / wait / pass / parallel / map / succeed / fail with retry and catch. Native on AWS and GCP; an embedded engine on the other clouds; runnable locally with `pskit workflow run`.
104
+ - **Workflows:** task / choice / wait / pass / parallel / map / succeed / fail with retry and catch. Native on AWS and GCP; an embedded engine on the other clouds; runnable locally with `pskit workflow run`. Every run returns an `execution_id`; `pskit workflow start|executions|status|cancel` and the dashboard list, follow and cancel runs (on premises, Step Functions, Cloud Workflows).
105
+ - **Resources:** a `resources:` section for buckets, queues, topics, databases, caches or any service, created by pskit or attached as `external`. Handlers read them with `resource("name")` on every cloud. On premises, queues can live in Redis and storage in MinIO / any S3-compatible store.
103
106
  - **Terraform underneath:** real, reviewable `main.tf.json`, any backend (S3, GCS, azurerm, ...), works with OpenTofu. Escape hatches: `terraform.extra`, `${tf:...}` references, per-function `options`.
104
107
  - **Config that scales:** `extends:`, per-provider `providers:` blocks, per-stage `stages:` blocks, and `${env:}`, `${opt:}`, `${self:}`, `${file()}` variables.
105
108
  - **Local dev:** `pskit dev` (hot-reloading HTTP server), `pskit invoke` with synthetic queue/storage/schedule events, and a `LocalRunner` for pytest.
106
- - **Dashboard:** a self-contained `index.html` listing every deployment, function, trigger, endpoint, ARN/id, console link and workflow.
109
+ - **Dashboard:** a self-contained React page listing every deployment, function, trigger, endpoint, ARN/id, console link, workflow and resource. `pskit dashboard --serve` adds live on-prem logs and stats and workflow executions (start, follow, cancel). `pskit logs -f` tails an on-prem host from the terminal.
107
110
  - **Production details:** deterministic artifacts (no redeploy when nothing changed), partial batch failures (`BatchResult`), structured JSON logs, consistent HTTP error mapping, stack traces hidden from clients, a stdlib-only runtime (no extra dependencies inside your function), and hooks (`before_deploy`, ...).
108
111
 
109
112
  ## Supported providers
@@ -252,7 +255,7 @@ More: [docs/architecture.md](https://github.com/ak9347128658/serverless_kit/blob
252
255
 
253
256
  ## Examples
254
257
 
255
- Sixteen runnable scenarios live in [`examples/`](https://github.com/ak9347128658/serverless_kit/tree/main/examples/). They are tested in CI.
258
+ Eighteen runnable examples live in [`examples/`](https://github.com/ak9347128658/serverless_kit/tree/main/examples/). They are tested in CI.
256
259
 
257
260
  | | |
258
261
  |---|---|
@@ -265,6 +268,8 @@ Sixteen runnable scenarios live in [`examples/`](https://github.com/ak9347128658
265
268
  | [07-workflow-orders](https://github.com/ak9347128658/serverless_kit/tree/main/examples/07-workflow-orders) | Every workflow state type, retry/catch |
266
269
  | [08-multi-cloud](https://github.com/ak9347128658/serverless_kit/tree/main/examples/08-multi-cloud) | Same code, all 11 providers |
267
270
  | [16-on-premises](https://github.com/ak9347128658/serverless_kit/tree/main/examples/16-on-premises) | HTTP, schedule, queue, storage, topic and a workflow on one machine |
271
+ | [17-on-premises-remote](https://github.com/ak9347128658/serverless_kit/tree/main/examples/17-on-premises-remote) | SSH/SCP or Docker onto a server |
272
+ | [18-resources](https://github.com/ak9347128658/serverless_kit/tree/main/examples/18-resources) | Managed and external resources, bindings, Redis/MinIO on premises |
268
273
  | [09-function-invoke](https://github.com/ak9347128658/serverless_kit/tree/main/examples/09-function-invoke) | Function-to-function `invoke()` |
269
274
  | [10-stages-and-config](https://github.com/ak9347128658/serverless_kit/tree/main/examples/10-stages-and-config) | Stages, variables, secrets |
270
275
  | [11-custom-terraform](https://github.com/ak9347128658/serverless_kit/tree/main/examples/11-custom-terraform) | `terraform.extra`, `${tf:...}`, remote state, hooks |
@@ -277,11 +282,14 @@ Sixteen runnable scenarios live in [`examples/`](https://github.com/ak9347128658
277
282
 
278
283
  | | |
279
284
  |---|---|
285
+ | [Scenarios](https://github.com/ak9347128658/serverless_kit/blob/main/docs/scenarios.md) | Step-by-step guides by use case |
280
286
  | [Getting started](https://github.com/ak9347128658/serverless_kit/blob/main/docs/getting-started.md) | Install, credentials, first deploy |
281
287
  | [Configuration reference](https://github.com/ak9347128658/serverless_kit/blob/main/docs/configuration.md) | Every `pskit.yml` key, variables, `extends`, stages |
282
288
  | [Events](https://github.com/ak9347128658/serverless_kit/blob/main/docs/events.md) | HTTP, schedule, queue, storage, topic, with a per-provider matrix |
283
289
  | [Handler API](https://github.com/ak9347128658/serverless_kit/blob/main/docs/handlers.md) | `Event`, `Context`, `Response`, errors, `BatchResult`, `invoke()` |
284
290
  | [Workflows](https://github.com/ak9347128658/serverless_kit/blob/main/docs/workflows.md) | State machine reference, engines, limitations |
291
+ | [Workflow executions](https://github.com/ak9347128658/serverless_kit/blob/main/docs/workflow-executions.md) | Execution ids, status, history, cancel |
292
+ | [Resources](https://github.com/ak9347128658/serverless_kit/blob/main/docs/resources.md) | Storage, queues, topics, databases, external services |
285
293
  | [Providers](https://github.com/ak9347128658/serverless_kit/blob/main/docs/providers.md) | Options, credentials, resources and limits per cloud |
286
294
  | [CLI](https://github.com/ak9347128658/serverless_kit/blob/main/docs/cli.md) | Every command and flag |
287
295
  | [Local development](https://github.com/ak9347128658/serverless_kit/blob/main/docs/local-development.md) | `pskit dev`, `invoke`, testing |