supython 0.5.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 (239) hide show
  1. supython-0.5.0/.gitignore +45 -0
  2. supython-0.5.0/CHANGELOG.md +162 -0
  3. supython-0.5.0/LICENSE +21 -0
  4. supython-0.5.0/PKG-INFO +714 -0
  5. supython-0.5.0/README.md +656 -0
  6. supython-0.5.0/SECURITY.md +46 -0
  7. supython-0.5.0/pyproject.toml +118 -0
  8. supython-0.5.0/src/supython/__init__.py +8 -0
  9. supython-0.5.0/src/supython/admin/__init__.py +3 -0
  10. supython-0.5.0/src/supython/admin/api/__init__.py +24 -0
  11. supython-0.5.0/src/supython/admin/api/auth.py +118 -0
  12. supython-0.5.0/src/supython/admin/api/auth_templates.py +67 -0
  13. supython-0.5.0/src/supython/admin/api/auth_users.py +225 -0
  14. supython-0.5.0/src/supython/admin/api/db.py +174 -0
  15. supython-0.5.0/src/supython/admin/api/functions.py +92 -0
  16. supython-0.5.0/src/supython/admin/api/jobs.py +192 -0
  17. supython-0.5.0/src/supython/admin/api/ops.py +224 -0
  18. supython-0.5.0/src/supython/admin/api/realtime.py +281 -0
  19. supython-0.5.0/src/supython/admin/api/service_auth.py +49 -0
  20. supython-0.5.0/src/supython/admin/api/service_auth_templates.py +83 -0
  21. supython-0.5.0/src/supython/admin/api/service_auth_users.py +346 -0
  22. supython-0.5.0/src/supython/admin/api/service_db.py +214 -0
  23. supython-0.5.0/src/supython/admin/api/service_functions.py +287 -0
  24. supython-0.5.0/src/supython/admin/api/service_jobs.py +282 -0
  25. supython-0.5.0/src/supython/admin/api/service_ops.py +213 -0
  26. supython-0.5.0/src/supython/admin/api/service_realtime.py +30 -0
  27. supython-0.5.0/src/supython/admin/api/service_storage.py +220 -0
  28. supython-0.5.0/src/supython/admin/api/storage.py +117 -0
  29. supython-0.5.0/src/supython/admin/api/system.py +37 -0
  30. supython-0.5.0/src/supython/admin/audit.py +29 -0
  31. supython-0.5.0/src/supython/admin/deps.py +22 -0
  32. supython-0.5.0/src/supython/admin/errors.py +16 -0
  33. supython-0.5.0/src/supython/admin/schemas.py +310 -0
  34. supython-0.5.0/src/supython/admin/session.py +52 -0
  35. supython-0.5.0/src/supython/admin/spa.py +38 -0
  36. supython-0.5.0/src/supython/admin/static/assets/Alert-dluGVkos.js +49 -0
  37. supython-0.5.0/src/supython/admin/static/assets/Alert-dluGVkos.js.map +1 -0
  38. supython-0.5.0/src/supython/admin/static/assets/Audit-Njung3HI.js +2 -0
  39. supython-0.5.0/src/supython/admin/static/assets/Audit-Njung3HI.js.map +1 -0
  40. supython-0.5.0/src/supython/admin/static/assets/Backups-DzPlFgrm.js +2 -0
  41. supython-0.5.0/src/supython/admin/static/assets/Backups-DzPlFgrm.js.map +1 -0
  42. supython-0.5.0/src/supython/admin/static/assets/Buckets-ByacGkU1.js +2 -0
  43. supython-0.5.0/src/supython/admin/static/assets/Buckets-ByacGkU1.js.map +1 -0
  44. supython-0.5.0/src/supython/admin/static/assets/Channels-BoIuTtam.js +353 -0
  45. supython-0.5.0/src/supython/admin/static/assets/Channels-BoIuTtam.js.map +1 -0
  46. supython-0.5.0/src/supython/admin/static/assets/ChevronRight-CtQH1EQ1.js +2 -0
  47. supython-0.5.0/src/supython/admin/static/assets/ChevronRight-CtQH1EQ1.js.map +1 -0
  48. supython-0.5.0/src/supython/admin/static/assets/CodeViewer-Bqy7-wvH.js +2 -0
  49. supython-0.5.0/src/supython/admin/static/assets/CodeViewer-Bqy7-wvH.js.map +1 -0
  50. supython-0.5.0/src/supython/admin/static/assets/Crons-B67vc39F.js +2 -0
  51. supython-0.5.0/src/supython/admin/static/assets/Crons-B67vc39F.js.map +1 -0
  52. supython-0.5.0/src/supython/admin/static/assets/DashboardView-CUTFVL6k.js +2 -0
  53. supython-0.5.0/src/supython/admin/static/assets/DashboardView-CUTFVL6k.js.map +1 -0
  54. supython-0.5.0/src/supython/admin/static/assets/DataTable-COAAWEft.js +747 -0
  55. supython-0.5.0/src/supython/admin/static/assets/DataTable-COAAWEft.js.map +1 -0
  56. supython-0.5.0/src/supython/admin/static/assets/DescriptionsItem-P8JUDaBs.js +75 -0
  57. supython-0.5.0/src/supython/admin/static/assets/DescriptionsItem-P8JUDaBs.js.map +1 -0
  58. supython-0.5.0/src/supython/admin/static/assets/DrawerContent-TpYTFgF1.js +139 -0
  59. supython-0.5.0/src/supython/admin/static/assets/DrawerContent-TpYTFgF1.js.map +1 -0
  60. supython-0.5.0/src/supython/admin/static/assets/Empty-cr2r7e2u.js +25 -0
  61. supython-0.5.0/src/supython/admin/static/assets/Empty-cr2r7e2u.js.map +1 -0
  62. supython-0.5.0/src/supython/admin/static/assets/EmptyState-DeDck-OL.js +2 -0
  63. supython-0.5.0/src/supython/admin/static/assets/EmptyState-DeDck-OL.js.map +1 -0
  64. supython-0.5.0/src/supython/admin/static/assets/Grid-hFkp9F4P.js +2 -0
  65. supython-0.5.0/src/supython/admin/static/assets/Grid-hFkp9F4P.js.map +1 -0
  66. supython-0.5.0/src/supython/admin/static/assets/Input-DppYTq9C.js +259 -0
  67. supython-0.5.0/src/supython/admin/static/assets/Input-DppYTq9C.js.map +1 -0
  68. supython-0.5.0/src/supython/admin/static/assets/Invoke-DW3Nveeh.js +2 -0
  69. supython-0.5.0/src/supython/admin/static/assets/Invoke-DW3Nveeh.js.map +1 -0
  70. supython-0.5.0/src/supython/admin/static/assets/JsonField-DibyJgun.js +2 -0
  71. supython-0.5.0/src/supython/admin/static/assets/JsonField-DibyJgun.js.map +1 -0
  72. supython-0.5.0/src/supython/admin/static/assets/LoginView-BjLyE3Ds.css +1 -0
  73. supython-0.5.0/src/supython/admin/static/assets/LoginView-CoOjECT_.js +111 -0
  74. supython-0.5.0/src/supython/admin/static/assets/LoginView-CoOjECT_.js.map +1 -0
  75. supython-0.5.0/src/supython/admin/static/assets/Logs-D9WYrnIT.js +2 -0
  76. supython-0.5.0/src/supython/admin/static/assets/Logs-D9WYrnIT.js.map +1 -0
  77. supython-0.5.0/src/supython/admin/static/assets/Logs-DS1XPa0h.css +1 -0
  78. supython-0.5.0/src/supython/admin/static/assets/Migrations-DOSC2ddQ.js +2 -0
  79. supython-0.5.0/src/supython/admin/static/assets/Migrations-DOSC2ddQ.js.map +1 -0
  80. supython-0.5.0/src/supython/admin/static/assets/ObjectBrowser-_5w8vOX8.js +2 -0
  81. supython-0.5.0/src/supython/admin/static/assets/ObjectBrowser-_5w8vOX8.js.map +1 -0
  82. supython-0.5.0/src/supython/admin/static/assets/Queue-CywZs6vI.js +2 -0
  83. supython-0.5.0/src/supython/admin/static/assets/Queue-CywZs6vI.js.map +1 -0
  84. supython-0.5.0/src/supython/admin/static/assets/RefreshTokens-Ccjr53jg.js +2 -0
  85. supython-0.5.0/src/supython/admin/static/assets/RefreshTokens-Ccjr53jg.js.map +1 -0
  86. supython-0.5.0/src/supython/admin/static/assets/RlsEditor-BSlH9vSc.js +2 -0
  87. supython-0.5.0/src/supython/admin/static/assets/RlsEditor-BSlH9vSc.js.map +1 -0
  88. supython-0.5.0/src/supython/admin/static/assets/Routes-BiLXE49D.js +2 -0
  89. supython-0.5.0/src/supython/admin/static/assets/Routes-BiLXE49D.js.map +1 -0
  90. supython-0.5.0/src/supython/admin/static/assets/Routes-C-ianIGD.css +1 -0
  91. supython-0.5.0/src/supython/admin/static/assets/SchemaBrowser-DKy2_KQi.css +1 -0
  92. supython-0.5.0/src/supython/admin/static/assets/SchemaBrowser-XFvFbtDB.js +2 -0
  93. supython-0.5.0/src/supython/admin/static/assets/SchemaBrowser-XFvFbtDB.js.map +1 -0
  94. supython-0.5.0/src/supython/admin/static/assets/Select-DIzZyRZb.js +434 -0
  95. supython-0.5.0/src/supython/admin/static/assets/Select-DIzZyRZb.js.map +1 -0
  96. supython-0.5.0/src/supython/admin/static/assets/Space-n5-XcguU.js +400 -0
  97. supython-0.5.0/src/supython/admin/static/assets/Space-n5-XcguU.js.map +1 -0
  98. supython-0.5.0/src/supython/admin/static/assets/SqlEditor-b8pTsILY.js +3 -0
  99. supython-0.5.0/src/supython/admin/static/assets/SqlEditor-b8pTsILY.js.map +1 -0
  100. supython-0.5.0/src/supython/admin/static/assets/SqlWorkspace-BUS7IntH.js +104 -0
  101. supython-0.5.0/src/supython/admin/static/assets/SqlWorkspace-BUS7IntH.js.map +1 -0
  102. supython-0.5.0/src/supython/admin/static/assets/TableData-CQIagLKn.js +2 -0
  103. supython-0.5.0/src/supython/admin/static/assets/TableData-CQIagLKn.js.map +1 -0
  104. supython-0.5.0/src/supython/admin/static/assets/Tag-D1fOKpTH.js +72 -0
  105. supython-0.5.0/src/supython/admin/static/assets/Tag-D1fOKpTH.js.map +1 -0
  106. supython-0.5.0/src/supython/admin/static/assets/Templates-BS-ugkdq.js +2 -0
  107. supython-0.5.0/src/supython/admin/static/assets/Templates-BS-ugkdq.js.map +1 -0
  108. supython-0.5.0/src/supython/admin/static/assets/Thing-CEAniuMg.js +107 -0
  109. supython-0.5.0/src/supython/admin/static/assets/Thing-CEAniuMg.js.map +1 -0
  110. supython-0.5.0/src/supython/admin/static/assets/Users-wzwajhlh.js +2 -0
  111. supython-0.5.0/src/supython/admin/static/assets/Users-wzwajhlh.js.map +1 -0
  112. supython-0.5.0/src/supython/admin/static/assets/_plugin-vue_export-helper-DGA9ry_j.js +1 -0
  113. supython-0.5.0/src/supython/admin/static/assets/dist-VXIJLCYq.js +13 -0
  114. supython-0.5.0/src/supython/admin/static/assets/dist-VXIJLCYq.js.map +1 -0
  115. supython-0.5.0/src/supython/admin/static/assets/format-length-CGCY1rMh.js +2 -0
  116. supython-0.5.0/src/supython/admin/static/assets/format-length-CGCY1rMh.js.map +1 -0
  117. supython-0.5.0/src/supython/admin/static/assets/get-Ca6unauB.js +2 -0
  118. supython-0.5.0/src/supython/admin/static/assets/get-Ca6unauB.js.map +1 -0
  119. supython-0.5.0/src/supython/admin/static/assets/index-CeE6v959.js +951 -0
  120. supython-0.5.0/src/supython/admin/static/assets/index-CeE6v959.js.map +1 -0
  121. supython-0.5.0/src/supython/admin/static/assets/pinia-COXwfrOX.js +2 -0
  122. supython-0.5.0/src/supython/admin/static/assets/pinia-COXwfrOX.js.map +1 -0
  123. supython-0.5.0/src/supython/admin/static/assets/resources-Bt6thQCD.js +44 -0
  124. supython-0.5.0/src/supython/admin/static/assets/resources-Bt6thQCD.js.map +1 -0
  125. supython-0.5.0/src/supython/admin/static/assets/use-locale-mtgM0a3a.js +2 -0
  126. supython-0.5.0/src/supython/admin/static/assets/use-locale-mtgM0a3a.js.map +1 -0
  127. supython-0.5.0/src/supython/admin/static/assets/use-merged-state-BvhkaHNX.js +2 -0
  128. supython-0.5.0/src/supython/admin/static/assets/use-merged-state-BvhkaHNX.js.map +1 -0
  129. supython-0.5.0/src/supython/admin/static/assets/useConfirm-tMjvBFXR.js +2 -0
  130. supython-0.5.0/src/supython/admin/static/assets/useConfirm-tMjvBFXR.js.map +1 -0
  131. supython-0.5.0/src/supython/admin/static/assets/useResource-C_rJCY8C.js +2 -0
  132. supython-0.5.0/src/supython/admin/static/assets/useResource-C_rJCY8C.js.map +1 -0
  133. supython-0.5.0/src/supython/admin/static/assets/useTable-CnZc5zhi.js +363 -0
  134. supython-0.5.0/src/supython/admin/static/assets/useTable-CnZc5zhi.js.map +1 -0
  135. supython-0.5.0/src/supython/admin/static/assets/useTable-Dg0XlRlq.css +1 -0
  136. supython-0.5.0/src/supython/admin/static/assets/useToast-DsZKx0IX.js +2 -0
  137. supython-0.5.0/src/supython/admin/static/assets/useToast-DsZKx0IX.js.map +1 -0
  138. supython-0.5.0/src/supython/admin/static/assets/utils-sbXoq7Ir.js +2 -0
  139. supython-0.5.0/src/supython/admin/static/assets/utils-sbXoq7Ir.js.map +1 -0
  140. supython-0.5.0/src/supython/admin/static/favicon.svg +1 -0
  141. supython-0.5.0/src/supython/admin/static/icons.svg +24 -0
  142. supython-0.5.0/src/supython/admin/static/index.html +24 -0
  143. supython-0.5.0/src/supython/app.py +149 -0
  144. supython-0.5.0/src/supython/auth/__init__.py +3 -0
  145. supython-0.5.0/src/supython/auth/_email_job.py +11 -0
  146. supython-0.5.0/src/supython/auth/providers/__init__.py +34 -0
  147. supython-0.5.0/src/supython/auth/providers/github.py +22 -0
  148. supython-0.5.0/src/supython/auth/providers/google.py +19 -0
  149. supython-0.5.0/src/supython/auth/providers/oauth.py +56 -0
  150. supython-0.5.0/src/supython/auth/providers/registry.py +16 -0
  151. supython-0.5.0/src/supython/auth/ratelimit.py +39 -0
  152. supython-0.5.0/src/supython/auth/router.py +282 -0
  153. supython-0.5.0/src/supython/auth/schemas.py +79 -0
  154. supython-0.5.0/src/supython/auth/service.py +587 -0
  155. supython-0.5.0/src/supython/body_size.py +184 -0
  156. supython-0.5.0/src/supython/cli.py +1653 -0
  157. supython-0.5.0/src/supython/client/__init__.py +67 -0
  158. supython-0.5.0/src/supython/client/_auth.py +249 -0
  159. supython-0.5.0/src/supython/client/_client.py +145 -0
  160. supython-0.5.0/src/supython/client/_config.py +92 -0
  161. supython-0.5.0/src/supython/client/_functions.py +69 -0
  162. supython-0.5.0/src/supython/client/_storage.py +255 -0
  163. supython-0.5.0/src/supython/client/py.typed +0 -0
  164. supython-0.5.0/src/supython/db.py +151 -0
  165. supython-0.5.0/src/supython/db_admin.py +8 -0
  166. supython-0.5.0/src/supython/functions/__init__.py +19 -0
  167. supython-0.5.0/src/supython/functions/context.py +262 -0
  168. supython-0.5.0/src/supython/functions/loader.py +307 -0
  169. supython-0.5.0/src/supython/functions/router.py +228 -0
  170. supython-0.5.0/src/supython/functions/schemas.py +50 -0
  171. supython-0.5.0/src/supython/gen/__init__.py +5 -0
  172. supython-0.5.0/src/supython/gen/_introspect.py +137 -0
  173. supython-0.5.0/src/supython/gen/types_py.py +270 -0
  174. supython-0.5.0/src/supython/gen/types_ts.py +365 -0
  175. supython-0.5.0/src/supython/health.py +229 -0
  176. supython-0.5.0/src/supython/hooks.py +117 -0
  177. supython-0.5.0/src/supython/jobs/__init__.py +31 -0
  178. supython-0.5.0/src/supython/jobs/backends.py +97 -0
  179. supython-0.5.0/src/supython/jobs/context.py +58 -0
  180. supython-0.5.0/src/supython/jobs/cron.py +152 -0
  181. supython-0.5.0/src/supython/jobs/cron_inproc.py +118 -0
  182. supython-0.5.0/src/supython/jobs/decorators.py +76 -0
  183. supython-0.5.0/src/supython/jobs/registry.py +79 -0
  184. supython-0.5.0/src/supython/jobs/router.py +136 -0
  185. supython-0.5.0/src/supython/jobs/schemas.py +92 -0
  186. supython-0.5.0/src/supython/jobs/service.py +311 -0
  187. supython-0.5.0/src/supython/jobs/worker.py +219 -0
  188. supython-0.5.0/src/supython/jwks.py +257 -0
  189. supython-0.5.0/src/supython/keyset.py +279 -0
  190. supython-0.5.0/src/supython/logging_config.py +291 -0
  191. supython-0.5.0/src/supython/mail.py +33 -0
  192. supython-0.5.0/src/supython/mailer.py +65 -0
  193. supython-0.5.0/src/supython/migrate.py +81 -0
  194. supython-0.5.0/src/supython/migrations/0001_extensions_and_roles.sql +46 -0
  195. supython-0.5.0/src/supython/migrations/0002_auth_schema.sql +66 -0
  196. supython-0.5.0/src/supython/migrations/0003_demo_todos.sql +42 -0
  197. supython-0.5.0/src/supython/migrations/0004_auth_v0_2.sql +47 -0
  198. supython-0.5.0/src/supython/migrations/0005_storage_schema.sql +117 -0
  199. supython-0.5.0/src/supython/migrations/0006_realtime_schema.sql +206 -0
  200. supython-0.5.0/src/supython/migrations/0007_jobs_schema.sql +254 -0
  201. supython-0.5.0/src/supython/migrations/0008_jobs_last_error.sql +56 -0
  202. supython-0.5.0/src/supython/migrations/0009_auth_rate_limits.sql +33 -0
  203. supython-0.5.0/src/supython/migrations/0010_worker_heartbeat.sql +14 -0
  204. supython-0.5.0/src/supython/migrations/0011_admin_schema.sql +45 -0
  205. supython-0.5.0/src/supython/migrations/0012_auth_banned_until.sql +10 -0
  206. supython-0.5.0/src/supython/migrations/0013_email_templates.sql +19 -0
  207. supython-0.5.0/src/supython/migrations/0014_realtime_payload_warning.sql +96 -0
  208. supython-0.5.0/src/supython/migrations/0015_backups_schema.sql +14 -0
  209. supython-0.5.0/src/supython/passwords.py +15 -0
  210. supython-0.5.0/src/supython/realtime/__init__.py +6 -0
  211. supython-0.5.0/src/supython/realtime/broker.py +814 -0
  212. supython-0.5.0/src/supython/realtime/protocol.py +234 -0
  213. supython-0.5.0/src/supython/realtime/router.py +184 -0
  214. supython-0.5.0/src/supython/realtime/schemas.py +207 -0
  215. supython-0.5.0/src/supython/realtime/service.py +261 -0
  216. supython-0.5.0/src/supython/realtime/topics.py +175 -0
  217. supython-0.5.0/src/supython/realtime/websocket.py +586 -0
  218. supython-0.5.0/src/supython/scaffold/__init__.py +5 -0
  219. supython-0.5.0/src/supython/scaffold/init_project.py +133 -0
  220. supython-0.5.0/src/supython/scaffold/templates/Caddyfile.tmpl +4 -0
  221. supython-0.5.0/src/supython/scaffold/templates/README.md.tmpl +22 -0
  222. supython-0.5.0/src/supython/scaffold/templates/docker-compose.prod.yml.tmpl +84 -0
  223. supython-0.5.0/src/supython/scaffold/templates/docker-compose.yml.tmpl +41 -0
  224. supython-0.5.0/src/supython/scaffold/templates/docker_postgres_Dockerfile.tmpl +9 -0
  225. supython-0.5.0/src/supython/scaffold/templates/docker_postgres_postgresql.conf.tmpl +3 -0
  226. supython-0.5.0/src/supython/scaffold/templates/env.example.tmpl +149 -0
  227. supython-0.5.0/src/supython/scaffold/templates/functions_README.md.tmpl +21 -0
  228. supython-0.5.0/src/supython/scaffold/templates/gitignore.tmpl +14 -0
  229. supython-0.5.0/src/supython/scaffold/templates/migrations/.gitkeep +0 -0
  230. supython-0.5.0/src/supython/secretset.py +347 -0
  231. supython-0.5.0/src/supython/security_headers.py +78 -0
  232. supython-0.5.0/src/supython/settings.py +198 -0
  233. supython-0.5.0/src/supython/storage/__init__.py +5 -0
  234. supython-0.5.0/src/supython/storage/backends.py +392 -0
  235. supython-0.5.0/src/supython/storage/router.py +341 -0
  236. supython-0.5.0/src/supython/storage/schemas.py +50 -0
  237. supython-0.5.0/src/supython/storage/service.py +445 -0
  238. supython-0.5.0/src/supython/storage/signing.py +119 -0
  239. supython-0.5.0/src/supython/tokens.py +85 -0
@@ -0,0 +1,45 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ build/
5
+ dist/
6
+ .venv/
7
+ venv/
8
+ .env
9
+ .pytest_cache/
10
+ .ruff_cache/
11
+ .coverage
12
+ htmlcov/
13
+ *.sqlite3
14
+ .DS_Store
15
+ .cursor
16
+ .cursor/
17
+ .cursor/rules/
18
+
19
+ .kilo
20
+ .kilo/
21
+ .kilo/killo.jsonc
22
+
23
+ # dev-app/ is the dogfooded scaffolded project living inside the lib repo.
24
+ # Its checked-in shape (compose files, functions, storage fixtures) mirrors
25
+ # what `supython init` would produce; runtime state stays untracked.
26
+ dev-app/.env
27
+ dev-app/.supython/
28
+ dev-app/backups/
29
+ dev-app/__pycache__/
30
+ dev-app/functions/__pycache__/
31
+ dev-app/.tmp/
32
+
33
+ .references/
34
+ .claude/
35
+
36
+ ts-sdk/node_modules/
37
+ ts-sdk/dist/
38
+ ts-sdk/.turbo/
39
+ ts-sdk/.vitest-results/
40
+ ts-sdk/*.log
41
+
42
+ .tmp/
43
+
44
+ admin-ui/node_modules/
45
+ backups/
@@ -0,0 +1,162 @@
1
+ # Changelog
2
+
3
+ All notable changes to supython are recorded here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the
5
+ project uses **ZeroVer** (`0.x.y`) — see `docs/PROJECT.md` §14.0 for
6
+ what counts as a breaking change before v1.0.
7
+
8
+ Categories used per release:
9
+
10
+ - **Breaking** — frozen-surface change as defined in §14.0; bumps `MINOR`.
11
+ - **Added** — new capability (no breakage); bumps `MINOR` or `PATCH`.
12
+ - **Changed** — backwards-compatible behaviour change.
13
+ - **Deprecated** — still works, scheduled for removal.
14
+ - **Removed** — gone; pre-1.0 may appear under `Breaking` instead.
15
+ - **Fixed** — bug fix.
16
+ - **Security** — vulnerability fix or hardening.
17
+
18
+ Each entry links the relevant `PROJECT.md` section and decision-log row
19
+ (`§19 YYYY-MM-DD`) where one exists.
20
+
21
+ ## [Unreleased]
22
+
23
+ ### Breaking
24
+ ### Added
25
+ ### Changed
26
+ ### Deprecated
27
+ ### Removed
28
+ ### Fixed
29
+ ### Security
30
+
31
+ ---
32
+
33
+ ## [0.7.0] — YYYY-MM-DD
34
+
35
+ Milestone B: Production Observable (§14 v0.7).
36
+
37
+ ### Added
38
+ - Structured JSON logging with `request_id` propagation (§14 v0.7).
39
+ - `/livez`, `/readyz`, deep `/health` with per-dependency timeouts (§14 v0.7).
40
+ - Request logging middleware with auth-header redaction (§14 v0.7).
41
+ - Security headers middleware (HSTS, nosniff, frame-deny, referrer, CSP).
42
+ - OAuth PKCE (`code_challenge_method="S256"`) on all providers (§15.6 #22).
43
+ - Email-send retry via `jobs.jobs` for `/recover`, magic link, OTP (§15.6 #21).
44
+ - Symmetric secret rotation: `supython secret {status,rotate,activate,prune}`
45
+ for `STORAGE_SIGNED_URL_SECRET` and `OAUTH_STATE_SECRET` (§11.1.2).
46
+ - Postgres password rotation: `supython password rotate <role>` (§11.1.3).
47
+
48
+ ### Changed
49
+ - `supython doctor` expanded to cover extensions, `wal_level`, role
50
+ attributes, grants, schema ownership, migration drift (§14 v0.7).
51
+
52
+ ### Security
53
+ - Input size guards on every write route (max body, email, password length).
54
+ - Audit-log completeness on refresh-reuse, password change, OAuth link.
55
+
56
+ ---
57
+
58
+ ## [0.6.0] — YYYY-MM-DD
59
+
60
+ Milestone A: grooming + security foundation (§14 v0.6).
61
+
62
+ ### Breaking
63
+ - Removed entirely; `JWT_SECRET` and its validator deleted.
64
+ RS256 is the default; ES256 optional. Required: `JWT_PRIVATE_KEY_PATH`
65
+ or inline `JWT_PRIVATE_KEY`. Public key published as JWKS for
66
+ PostgREST. (§8.2, §19 2026-04-23)
67
+ - `CORS_ORIGINS` is now required for any browser client; default empty
68
+ means no allowed origins (was previously `["*"]`). (§11, §15.6 #5)
69
+
70
+ ### Added
71
+ - `supython keygen {init,rotate,activate,prune}` zero-downtime JWT
72
+ rotation; PostgREST hot-reload via `SIGUSR2` (§11.1.1).
73
+ - Per-IP rate limiting on `/auth/v1/{token,signup,recover,otp}` backed
74
+ by `auth.rate_limit_buckets` + conditional pg_cron pruning
75
+ (`migrations/0009_auth_rate_limits.sql`).
76
+ - `db_statement_timeout_ms`, `db_pool_min_size`, `db_pool_max_size`
77
+ settings (§15.6 #13, #14).
78
+ - `last_error` column on `jobs.jobs`; surfaced in `JobResponse`
79
+ (`migrations/0008_jobs_last_error.sql`, §15.6 #19).
80
+ - `db.as_service_role(claims=...)` accepts optional claims; realtime
81
+ router's bespoke `_ServiceRoleSession` retired (§15.6 #20).
82
+
83
+ ### Changed
84
+ - Worker honours `JobDefinition.role` / `claims_from`; user-scoped jobs
85
+ run under `db.as_role()` instead of always `service_role` (§15.6 #16).
86
+ - `Worker._poll` enforces `jobs_concurrency` via `asyncio.Semaphore`
87
+ (§15.6 #17).
88
+ - `POST /jobs/v1/jobs/{id}/retry` gates on `failed`/`cancelled`; 409
89
+ otherwise (§15.6 #18).
90
+ - Single source of truth for `__version__` — `supython/__init__.py`,
91
+ FastAPI app version, and `/health` body all import the same constant
92
+ (§15.6 #11).
93
+
94
+ ### Fixed
95
+ - Test-fixture role leakage: `await c.execute("set role service_role")`
96
+ outside transactions replaced with `db.as_service_role()` /
97
+ `SET LOCAL` + `try/finally`. Conftest sentinel `_assert_no_role_leak`
98
+ catches regressions (§15.6 #9).
99
+
100
+ ---
101
+
102
+ ## [0.5.0] — 2026-04-22
103
+
104
+ Workers + cron (§14 v0.5).
105
+
106
+ ### Added
107
+ - `jobs.jobs` queue with `SELECT FOR UPDATE SKIP LOCKED`; 4-policy RLS;
108
+ `SECURITY DEFINER` `jobs.enqueue` / `jobs.claim_next` granted to
109
+ `service_role` only (§9.7, `migrations/0007_jobs_schema.sql`).
110
+ - `@app.cron(...)` decorator backed by `pg_cron` with `sync_pg_cron()`
111
+ at startup; `InProcScheduler` fallback behind the `cron-inproc`
112
+ extra (§9.7.3).
113
+ - `@job(name, version, max_attempts, backoff, queue, role, claims_from,
114
+ accepts_payload)` decorator; idempotency keys; exponential / linear /
115
+ constant backoff.
116
+ - Generic hooks system (`hooks.on` / `hooks.fire`); signup → welcome
117
+ email wired through it.
118
+ - CLI: `supython worker run` (with SIGINT/SIGTERM drain),
119
+ `supython jobs {list,show,cancel,retry,enqueue}`,
120
+ `supython cron {list,sync}`.
121
+ - `POST /jobs/v1/enqueue`, `GET /jobs/v1/jobs`,
122
+ `POST /jobs/v1/jobs/{id}/{cancel,retry}` endpoints.
123
+ - Optional `arq` / `dramatiq` extras declared in `pyproject.toml`.
124
+
125
+ ### Changed
126
+ - v0.5 grooming pass (§19 2026-04-22): severed `auth → jobs` import edge
127
+ by moving `HookCtx` to `supython.hooks`; collapsed `jobs/backends/`
128
+ into `backends.py`; isolated `croniter` into `cron_inproc.py`; fixed
129
+ `sync_pg_cron` SQL-injection / invalid-JSON f-string; introduced
130
+ `db.as_service_role()`.
131
+
132
+ ### Fixed
133
+ - `jobs.enqueue` rewritten as two `return query` branches (the
134
+ `xmax = 0` after `RETURNING ... INTO` was prepare-rejected; idempotency
135
+ hit produced a composite literal that crashed asyncpg).
136
+ - `grant usage on schema cron + execute on cron.{schedule,unschedule}
137
+ to service_role` so `sync_pg_cron` registers schedules.
138
+ - `sync_pg_cron` hops to a LOGIN role around `cron.schedule` so pg_cron's
139
+ background worker can initialise (`service_role` is NOLOGIN).
140
+
141
+ ---
142
+
143
+ ## [0.4.0] — Realtime v1 (§14 v0.4)
144
+
145
+ [backfill from git log]
146
+
147
+ ## [0.3.0] — Storage + functions (§14 v0.3)
148
+
149
+ [backfill from git log]
150
+
151
+ ## [0.2.0] — Make it usable (§14 v0.2)
152
+
153
+ [backfill from git log]
154
+
155
+ ## [0.1.0] — Prove the core (§14 v0.1)
156
+
157
+ [backfill from git log]
158
+
159
+ [Unreleased]: https://github.com/Tkeby/supython/compare/v0.7.0...HEAD
160
+ [0.7.0]: https://github.com/Tkeby/supython/compare/v0.6.0...v0.7.0
161
+ [0.6.0]: https://github.com/Tkeby/supython/compare/v0.5.0...v0.6.0
162
+ [0.5.0]: https://github.com/Tkeby/supython/compare/v0.4.0...v0.5.0
supython-0.5.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 supython contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.