tina4-python 3.13.158__tar.gz → 3.13.159__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 (203) hide show
  1. {tina4_python-3.13.158 → tina4_python-3.13.159}/PKG-INFO +1 -1
  2. {tina4_python-3.13.158 → tina4_python-3.13.159}/pyproject.toml +1 -1
  3. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/__init__.py +1 -1
  4. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/cli/__init__.py +75 -33
  5. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/core/router.py +10 -1
  6. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/core/server.py +24 -6
  7. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/migration/runner.py +53 -0
  8. {tina4_python-3.13.158 → tina4_python-3.13.159}/.gitignore +0 -0
  9. {tina4_python-3.13.158 → tina4_python-3.13.159}/COMMERCIAL-LICENSE.md +0 -0
  10. {tina4_python-3.13.158 → tina4_python-3.13.159}/LICENSE +0 -0
  11. {tina4_python-3.13.158 → tina4_python-3.13.159}/NOTICE +0 -0
  12. {tina4_python-3.13.158 → tina4_python-3.13.159}/README.md +0 -0
  13. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/.tina4-metrics.json +0 -0
  14. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/CLAUDE.md +0 -0
  15. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/HtmlElement.py +0 -0
  16. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/Testing.py +0 -0
  17. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/_import_helper.py +0 -0
  18. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/ai/__init__.py +0 -0
  19. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/ai/client.py +0 -0
  20. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/api/__init__.py +0 -0
  21. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/auth/__init__.py +0 -0
  22. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/cache/__init__.py +0 -0
  23. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/container/__init__.py +0 -0
  24. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/context/__init__.py +0 -0
  25. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/context/chunker.py +0 -0
  26. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/core/__init__.py +0 -0
  27. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/core/cache.py +0 -0
  28. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/core/constants.py +0 -0
  29. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/core/csp.py +0 -0
  30. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/core/events.py +0 -0
  31. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/core/middleware.py +0 -0
  32. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/core/port_takeover.py +0 -0
  33. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/core/rate_limiter.py +0 -0
  34. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/core/request.py +0 -0
  35. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/core/response.py +0 -0
  36. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/crud/__init__.py +0 -0
  37. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/crud/page.py +0 -0
  38. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/crud/page_render.py +0 -0
  39. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/database/__init__.py +0 -0
  40. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/database/adapter.py +0 -0
  41. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/database/async_api.py +0 -0
  42. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/database/connection.py +0 -0
  43. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/database/database_url.py +0 -0
  44. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/database/firebird.py +0 -0
  45. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/database/mongodb.py +0 -0
  46. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/database/mssql.py +0 -0
  47. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/database/mysql.py +0 -0
  48. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/database/odbc.py +0 -0
  49. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/database/pool.py +0 -0
  50. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/database/postgres.py +0 -0
  51. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/database/sql_translator.py +0 -0
  52. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/database/sqlite.py +0 -0
  53. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/debug/__init__.py +0 -0
  54. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/debug/error_overlay.py +0 -0
  55. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/dev_admin/__init__.py +0 -0
  56. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/dev_admin/metrics.py +0 -0
  57. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/dev_admin/plan.py +0 -0
  58. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/dev_admin/project_index.py +0 -0
  59. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/docs.py +0 -0
  60. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/docstore/__init__.py +0 -0
  61. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/dotenv/__init__.py +0 -0
  62. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/env.py +0 -0
  63. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/frond/FROND.md +0 -0
  64. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/frond/__init__.py +0 -0
  65. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/frond/compiler.py +0 -0
  66. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/frond/engine.py +0 -0
  67. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/frond/parser.py +0 -0
  68. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/auth/meta.json +0 -0
  69. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/auth/src/routes/api/gallery_auth.py +0 -0
  70. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/database/meta.json +0 -0
  71. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/database/src/routes/api/gallery_db.py +0 -0
  72. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/error-overlay/meta.json +0 -0
  73. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/error-overlay/src/routes/api/gallery_crash.py +0 -0
  74. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/orm/meta.json +0 -0
  75. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/orm/src/orm/Product.py +0 -0
  76. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/orm/src/routes/api/gallery_products.py +0 -0
  77. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/queue/meta.json +0 -0
  78. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/queue/src/routes/api/gallery_queue.py +0 -0
  79. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/rest-api/meta.json +0 -0
  80. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/rest-api/src/routes/api/gallery_hello.py +0 -0
  81. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/templates/meta.json +0 -0
  82. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/templates/src/routes/gallery_page.py +0 -0
  83. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/gallery/templates/src/templates/gallery_page.twig +0 -0
  84. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/graph/__init__.py +0 -0
  85. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/graph/adapter.py +0 -0
  86. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/graph/adapters/__init__.py +0 -0
  87. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/graph/adapters/arango.py +0 -0
  88. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/graph/adapters/bolt.py +0 -0
  89. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/graph/adapters/ultipa.py +0 -0
  90. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/graph/graph_url.py +0 -0
  91. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/graphql/__init__.py +0 -0
  92. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/i18n/__init__.py +0 -0
  93. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/mcp/__init__.py +0 -0
  94. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/mcp/protocol.py +0 -0
  95. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/mcp/tools.py +0 -0
  96. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/messenger/__init__.py +0 -0
  97. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/migration/__init__.py +0 -0
  98. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/mqtt/__init__.py +0 -0
  99. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/mqtt/message.py +0 -0
  100. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/orm/__init__.py +0 -0
  101. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/orm/async_api.py +0 -0
  102. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/orm/collection.py +0 -0
  103. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/orm/fields.py +0 -0
  104. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/orm/model.py +0 -0
  105. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/orm/point.py +0 -0
  106. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/THIRD-PARTY-NOTICES.md +0 -0
  107. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/__feedback/widget.js +0 -0
  108. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/bundled-component-provenance.json +0 -0
  109. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/css/tina4.css +0 -0
  110. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/css/tina4.min.css +0 -0
  111. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/favicon.ico +0 -0
  112. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/images/logo.svg +0 -0
  113. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/images/tina4-logo-icon.webp +0 -0
  114. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/js/frond.js +0 -0
  115. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/js/frond.min.js +0 -0
  116. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/js/tina4-dev-admin-split.html +0 -0
  117. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/js/tina4-dev-admin.min.js +0 -0
  118. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/js/tina4.min.js +0 -0
  119. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/js/tina4js.min.js +0 -0
  120. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/licenses/swagger-ui-3.10.0-original-notice.txt +0 -0
  121. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/licenses/swagger-ui-5.17.14-NOTICE.txt +0 -0
  122. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/licenses/swagger-ui-Apache-2.0.txt +0 -0
  123. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/licenses/tina4-css-MIT.txt +0 -0
  124. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/licenses/tina4-dev-admin-components.json +0 -0
  125. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/licenses/tina4-dev-admin-third-party.txt +0 -0
  126. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/licenses/tina4-js-MIT.txt +0 -0
  127. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/swagger/index.html +0 -0
  128. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/public/swagger/oauth2-redirect.html +0 -0
  129. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/push/__init__.py +0 -0
  130. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/push/_base.py +0 -0
  131. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/push/_cryptography.py +0 -0
  132. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/push/_libcrypto.py +0 -0
  133. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/query_builder/__init__.py +0 -0
  134. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/queue/__init__.py +0 -0
  135. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/queue/amqp_url.py +0 -0
  136. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/queue/job.py +0 -0
  137. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/queue/kafka_backend.py +0 -0
  138. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/queue/lite_backend.py +0 -0
  139. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/queue/mongo_backend.py +0 -0
  140. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/queue/rabbitmq_backend.py +0 -0
  141. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/queue/topic_dead_letter.py +0 -0
  142. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/queue_backends/__init__.py +0 -0
  143. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/queue_backends/kafka_backend.py +0 -0
  144. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/queue_backends/mongo_backend.py +0 -0
  145. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/queue_backends/rabbitmq_backend.py +0 -0
  146. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/realtime/__init__.py +0 -0
  147. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/realtime/models/Attachment.py +0 -0
  148. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/realtime/models/Channel.py +0 -0
  149. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/realtime/models/ChannelMember.py +0 -0
  150. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/realtime/models/Message.py +0 -0
  151. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/realtime/models/Workspace.py +0 -0
  152. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/realtime/models/__init__.py +0 -0
  153. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/realtime/s3_client.py +0 -0
  154. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/realtime/storage.py +0 -0
  155. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/seeder/__init__.py +0 -0
  156. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/service/__init__.py +0 -0
  157. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/session/__init__.py +0 -0
  158. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/session_handlers/__init__.py +0 -0
  159. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/session_handlers/memcached_handler.py +0 -0
  160. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/session_handlers/mongodb_handler.py +0 -0
  161. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/session_handlers/redis_handler.py +0 -0
  162. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/session_handlers/valkey_handler.py +0 -0
  163. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/sso.py +0 -0
  164. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/ssrf.py +0 -0
  165. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/swagger/__init__.py +0 -0
  166. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/tcp/__init__.py +0 -0
  167. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/components/crud.twig +0 -0
  168. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/crud/form.twig +0 -0
  169. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/crud/modals.twig +0 -0
  170. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/crud/page.twig +0 -0
  171. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/crud/table.twig +0 -0
  172. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/docker/distroless/Dockerfile +0 -0
  173. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/docker/poetry/Dockerfile +0 -0
  174. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/docker/python/Dockerfile +0 -0
  175. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/docker/uv/Dockerfile +0 -0
  176. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/errors/302.twig +0 -0
  177. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/errors/401.twig +0 -0
  178. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/errors/403.twig +0 -0
  179. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/errors/404.twig +0 -0
  180. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/errors/500.twig +0 -0
  181. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/errors/502.twig +0 -0
  182. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/errors/503.twig +0 -0
  183. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/errors/base.twig +0 -0
  184. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/frontend/README.md +0 -0
  185. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/templates/readme.md +0 -0
  186. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/test/__init__.py +0 -0
  187. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/test_client/__init__.py +0 -0
  188. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/translations/af/LC_MESSAGES/messages.mo +0 -0
  189. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/translations/af/LC_MESSAGES/messages.po +0 -0
  190. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/translations/en/LC_MESSAGES/messages.mo +0 -0
  191. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/translations/en/LC_MESSAGES/messages.po +0 -0
  192. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/translations/es/LC_MESSAGES/messages.mo +0 -0
  193. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/translations/es/LC_MESSAGES/messages.po +0 -0
  194. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/translations/fr/LC_MESSAGES/messages.mo +0 -0
  195. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/translations/fr/LC_MESSAGES/messages.po +0 -0
  196. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/translations/ja/LC_MESSAGES/messages.mo +0 -0
  197. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/translations/ja/LC_MESSAGES/messages.po +0 -0
  198. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/translations/zh/LC_MESSAGES/messages.mo +0 -0
  199. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/translations/zh/LC_MESSAGES/messages.po +0 -0
  200. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/validator/__init__.py +0 -0
  201. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/websocket/__init__.py +0 -0
  202. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/websocket/backplane.py +0 -0
  203. {tina4_python-3.13.158 → tina4_python-3.13.159}/tina4_python/wsdl/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: tina4-python
3
- Version: 3.13.158
3
+ Version: 3.13.159
4
4
  Summary: Tina4 Python v3 — Zero-dependency, lightweight web framework
5
5
  Author-email: Andre van Zuydam <andrevanzuydam@gmail.com>
6
6
  License-Expression: MPL-2.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "tina4-python"
3
- version = "3.13.158"
3
+ version = "3.13.159"
4
4
  description = "Tina4 Python v3 — Zero-dependency, lightweight web framework"
5
5
  authors = [
6
6
  {name = "Andre van Zuydam", email = "andrevanzuydam@gmail.com"}
@@ -57,7 +57,7 @@ def _resolve_version() -> str:
57
57
  #
58
58
  # test_version_constant.py now asserts this literal equals the pyproject
59
59
  # version, so the release bump cannot leave it behind again.
60
- return "3.13.158"
60
+ return "3.13.159"
61
61
 
62
62
 
63
63
  __version__ = _resolve_version()
@@ -2223,10 +2223,28 @@ def _gen_migration(name: str, flags: dict = None, *,
2223
2223
  fields = fields_override or _parse_fields(flags.get("fields", ""))
2224
2224
  is_create = name.startswith("create_") or fields_override is not None
2225
2225
 
2226
+ # A `create_*_view` name is a VIEW, not a table. Emitting a runnable
2227
+ # `CREATE TABLE <name>_view` made `tina4 migrate` build a table and never
2228
+ # the view, silently, and the "add columns" hint pointed the wrong way
2229
+ # (#297). A view needs a SELECT, so scaffold one — with tina4:edit markers
2230
+ # so startup auto-migrate keeps it pending until it is written (#288).
2231
+ is_view = is_create and fields_override is None and table.endswith("_view")
2232
+
2226
2233
  filename = f"{timestamp}_{name}.sql"
2227
2234
  path = target / filename
2228
2235
 
2229
- if is_create:
2236
+ if is_view:
2237
+ # A view needs a SELECT, not columns — scaffold it as commented guidance
2238
+ # so startup auto-migrate keeps it pending (no executable SQL) until it
2239
+ # is written, instead of silently building a table (#297 / #288).
2240
+ up_sql = (
2241
+ f"-- tina4:edit write the CREATE VIEW statement, then remove the\n"
2242
+ f"-- tina4:edit lines. For example:\n"
2243
+ f"-- CREATE VIEW {table} AS\n"
2244
+ f"-- SELECT id, /* columns */ FROM source_table WHERE /* ... */;"
2245
+ )
2246
+ down_sql = f"DROP VIEW IF EXISTS {table};"
2247
+ elif is_create:
2230
2248
  col_lines = [" id INTEGER PRIMARY KEY AUTOINCREMENT"]
2231
2249
  for fname, ftype in fields:
2232
2250
  info = FIELD_TYPE_MAP.get(ftype, FIELD_TYPE_MAP["string"])
@@ -2269,9 +2287,10 @@ def _gen_migration(name: str, flags: dict = None, *,
2269
2287
  )
2270
2288
  print(f" ✓ Created {down_path}")
2271
2289
 
2272
- # Co-emit a real apply-up/down test — only for CREATE migrations, whose UP
2273
- # SQL is real DDL to assert against (a placeholder ALTER has nothing yet).
2274
- if emit_test and is_create:
2290
+ # Co-emit a real apply-up/down test — only for CREATE TABLE migrations, whose
2291
+ # UP SQL is real DDL to assert against (a placeholder ALTER, or a VIEW stub
2292
+ # that still needs its SELECT, has nothing concrete to assert yet).
2293
+ if emit_test and is_create and not is_view:
2275
2294
  _emit_migration_test(name, table, filename, down_filename)
2276
2295
 
2277
2296
 
@@ -2589,15 +2608,15 @@ def _emit_route_stub_test(route: str) -> None:
2589
2608
  '"""Routing test for __ROUTE__ — no mocks, real Router.\n'
2590
2609
  "\n"
2591
2610
  "Generated with src/routes/__ROUTE__.py by `tina4python generate route\n"
2592
- "__ROUTE__` (no --model). The handlers are AI-FILL stubs that raise until\n"
2593
- "you implement them, so this tests what IS live on generation: all five\n"
2594
- "routes register on the REAL Router, and the list handler fails loud until\n"
2595
- "filled. Fill a handler, then assert its real response here.\n"
2611
+ "__ROUTE__` (no --model). The handlers start as AI-FILL stubs that raise\n"
2612
+ "until you implement them. This tests what is live on generation: all five\n"
2613
+ "routes register on the REAL Router, and the list handler is wired and\n"
2614
+ "callable. It stays GREEN whether the stub still raises OR you have filled\n"
2615
+ "it in — implementing the handler never turns this suite red. Add your own\n"
2616
+ "assertions on the real response once it is filled.\n"
2596
2617
  '"""\n'
2597
2618
  "import asyncio\n"
2598
2619
  "\n"
2599
- "import pytest\n"
2600
- "\n"
2601
2620
  "from tina4_python.core.request import Request\n"
2602
2621
  "from tina4_python.core.response import Response\n"
2603
2622
  "from tina4_python.core.router import Router\n"
@@ -2613,13 +2632,23 @@ def _emit_route_stub_test(route: str) -> None:
2613
2632
  ' assert ("PUT", "/api/__ROUTE__/{id:int}") in paths\n'
2614
2633
  ' assert ("DELETE", "/api/__ROUTE__/{id:int}") in paths\n'
2615
2634
  "\n"
2616
- " def test_list_handler_is_a_live_stub(self):\n"
2617
- ' """The scaffolded handler raises until filled (fails loud, good DX)."""\n'
2635
+ " def test_list_handler_is_wired(self):\n"
2636
+ ' """The list handler is registered and callable. It starts as a\n'
2637
+ " loud AI-FILL stub (raises NotImplementedError); once you implement\n"
2638
+ " it this test STILL passes — it asserts wiring, never that the stub\n"
2639
+ ' is unfinished, so doing the work never turns the suite red."""\n'
2640
+ " handler = route_module.list___ROUTE__\n"
2641
+ " assert callable(handler)\n"
2618
2642
  " request = Request.from_scope(\n"
2619
2643
  ' {"type": "http", "method": "GET", "path": "/api/__ROUTE__",\n'
2620
2644
  ' "query_string": b"", "headers": [], "client": ("127.0.0.1", 0)}, b"")\n'
2621
- " with pytest.raises(NotImplementedError):\n"
2622
- " asyncio.run(route_module.list___ROUTE__(request, Response()))\n"
2645
+ " try:\n"
2646
+ " result = handler(request, Response())\n"
2647
+ " if asyncio.iscoroutine(result): # async def handler\n"
2648
+ " result = asyncio.run(result)\n"
2649
+ " except NotImplementedError:\n"
2650
+ " return # still the scaffold stub — expected until filled in\n"
2651
+ " assert result is not None # filled in: must hand back a response\n"
2623
2652
  )
2624
2653
  content = content.replace("__CLASS__", _pascal(route)).replace("__ROUTE__", route)
2625
2654
  _write_test(route, content)
@@ -2672,8 +2701,6 @@ def _emit_service_test(name: str, snake: str) -> None:
2672
2701
  "__NAME__`. Registers the scaffold on a REAL ServiceRunner and confirms the\n"
2673
2702
  "descriptor; the task body is an AI-FILL stub that raises until filled.\n"
2674
2703
  '"""\n'
2675
- "import pytest\n"
2676
- "\n"
2677
2704
  "from tina4_python.service import ServiceRunner\n"
2678
2705
  "from src.services.__SNAKE__ import __SNAKE___task, register, service\n"
2679
2706
  "\n"
@@ -2687,10 +2714,15 @@ def _emit_service_test(name: str, snake: str) -> None:
2687
2714
  " def test_descriptor_shape(self):\n"
2688
2715
  ' assert service["name"] and callable(service["handler"])\n'
2689
2716
  "\n"
2690
- " def test_task_is_a_live_stub(self):\n"
2691
- ' """The scaffolded task raises until filled (fails loud, good DX)."""\n'
2692
- " with pytest.raises(NotImplementedError):\n"
2717
+ " def test_task_is_wired(self):\n"
2718
+ ' """The task is callable. It starts as a loud AI-FILL stub\n'
2719
+ " (raises NotImplementedError); once you implement it this test\n"
2720
+ ' STILL passes, so doing the work never turns the suite red."""\n'
2721
+ " assert callable(__SNAKE___task)\n"
2722
+ " try:\n"
2693
2723
  " __SNAKE___task(None)\n"
2724
+ " except NotImplementedError:\n"
2725
+ " return # still the scaffold stub — expected until filled in\n"
2694
2726
  )
2695
2727
  content = (content.replace("__CLASS__", _pascal(snake))
2696
2728
  .replace("__NAME__", name).replace("__SNAKE__", snake))
@@ -2708,8 +2740,6 @@ def _emit_queue_test(topic: str, slug: str) -> None:
2708
2740
  "service. handle___SLUG__ is an AI-FILL stub that raises until you fill it\n"
2709
2741
  "— then assert the processed side effect here.\n"
2710
2742
  '"""\n'
2711
- "import pytest\n"
2712
- "\n"
2713
2743
  "from tina4_python.queue import Queue\n"
2714
2744
  "from src.services.__SLUG___consumer import (\n"
2715
2745
  " publish___SLUG__, handle___SLUG__, consume___SLUG__, service,\n"
@@ -2727,10 +2757,15 @@ def _emit_queue_test(topic: str, slug: str) -> None:
2727
2757
  ' assert service["daemon"] is True\n'
2728
2758
  ' assert service["handler"] is consume___SLUG__\n'
2729
2759
  "\n"
2730
- " def test_handle_is_a_live_stub(self):\n"
2731
- ' """The scaffolded per-job handler raises until filled (fails loud)."""\n'
2732
- " with pytest.raises(NotImplementedError):\n"
2760
+ " def test_handle_is_wired(self):\n"
2761
+ ' """handle___SLUG__ is callable. It starts as a loud AI-FILL stub\n'
2762
+ " (raises NotImplementedError); once you implement it this test\n"
2763
+ ' STILL passes, so doing the work never turns the suite red."""\n'
2764
+ " assert callable(handle___SLUG__)\n"
2765
+ " try:\n"
2733
2766
  " handle___SLUG__({})\n"
2767
+ " except NotImplementedError:\n"
2768
+ " return # still the scaffold stub — expected until filled in\n"
2734
2769
  )
2735
2770
  content = (content.replace("__CLASS__", _pascal(slug))
2736
2771
  .replace("__TOPIC__", topic).replace("__SLUG__", slug))
@@ -2812,8 +2847,6 @@ def _emit_websocket_test(ws_path: str, base: str, handler: str) -> None:
2812
2847
  '"""\n'
2813
2848
  "import asyncio\n"
2814
2849
  "\n"
2815
- "import pytest\n"
2816
- "\n"
2817
2850
  "from tina4_python.core.router import Router\n"
2818
2851
  "from src.routes.ws___BASE__ import __HANDLER__\n"
2819
2852
  "\n"
@@ -2826,9 +2859,14 @@ def _emit_websocket_test(ws_path: str, base: str, handler: str) -> None:
2826
2859
  ' """The "close" branch returns cleanly without a connection."""\n'
2827
2860
  ' assert asyncio.run(__HANDLER__(None, "close", None)) is None\n'
2828
2861
  "\n"
2829
- " def test_message_branch_is_a_live_stub(self):\n"
2830
- " with pytest.raises(NotImplementedError):\n"
2862
+ " def test_message_branch_is_wired(self):\n"
2863
+ ' """The "message" branch starts as a loud AI-FILL stub (raises\n'
2864
+ " NotImplementedError); once you implement it this test STILL\n"
2865
+ ' passes, so doing the work never turns the suite red."""\n'
2866
+ " try:\n"
2831
2867
  ' asyncio.run(__HANDLER__(None, "message", "hi"))\n'
2868
+ " except NotImplementedError:\n"
2869
+ " return # still the scaffold stub — expected until filled in\n"
2832
2870
  )
2833
2871
  content = (content.replace("__CLASS__", _pascal(base))
2834
2872
  .replace("__WSPATH__", ws_path)
@@ -2847,8 +2885,6 @@ def _emit_listener_test(event: str, slug: str) -> None:
2847
2885
  "emitting the event reaches it. The reaction body is an AI-FILL stub that\n"
2848
2886
  "raises until filled, so a strict emit re-raises here (proving it ran).\n"
2849
2887
  "\"\"\"\n"
2850
- "import pytest\n"
2851
- "\n"
2852
2888
  "from tina4_python.core.events import emit, events, listeners\n"
2853
2889
  "import src.listeners.__SLUG__ # noqa: F401 — importing binds the listener\n"
2854
2890
  "\n"
@@ -2859,9 +2895,15 @@ def _emit_listener_test(event: str, slug: str) -> None:
2859
2895
  ' assert len(listeners("__EVENT__")) >= 1\n'
2860
2896
  "\n"
2861
2897
  " def test_emit_reaches_the_listener(self):\n"
2862
- ' """strict=True re-raises the stub error, proving the listener ran."""\n'
2863
- " with pytest.raises(NotImplementedError):\n"
2864
- ' emit("__EVENT__", {"id": 1}, strict=True)\n'
2898
+ ' """Emitting the event reaches the listener. It starts as a loud\n'
2899
+ " AI-FILL stub (strict emit re-raises NotImplementedError); once you\n"
2900
+ " implement it this test STILL passes, so doing the work never turns\n"
2901
+ ' the suite red."""\n'
2902
+ " try:\n"
2903
+ ' results = emit("__EVENT__", {"id": 1}, strict=True)\n'
2904
+ " except NotImplementedError:\n"
2905
+ " return # still the scaffold stub — expected until filled in\n"
2906
+ " assert results is not None # filled in: the listener ran and returned\n"
2865
2907
  )
2866
2908
  content = (content.replace("__CLASS__", _pascal(slug))
2867
2909
  .replace("__EVENT__", event).replace("__SLUG__", slug))
@@ -22,6 +22,7 @@ Routes are registered via decorators. Pattern matching supports dynamic params.
22
22
  return response.status(201).json(request.body)
23
23
  """
24
24
  import re
25
+ import inspect
25
26
  import functools
26
27
  from tina4_python.debug import Log
27
28
 
@@ -1088,7 +1089,15 @@ def template(template_name: str):
1088
1089
  def decorator(fn):
1089
1090
  @functools.wraps(fn)
1090
1091
  async def wrapper(request, response, *args, **kwargs):
1091
- result = await fn(request, response, *args, **kwargs)
1092
+ # Only await when the handler actually returned an awaitable.
1093
+ # A plain ``def`` handler returns its value directly, so
1094
+ # ``await fn(...)`` used to raise "object dict can't be used in
1095
+ # 'await' expression" and every request answered 500 (#287) —
1096
+ # even though the route decorators accept a sync ``def``. Mirror
1097
+ # them: call, then await only if the result is awaitable.
1098
+ result = fn(request, response, *args, **kwargs)
1099
+ if inspect.isawaitable(result):
1100
+ result = await result
1092
1101
  if isinstance(result, dict):
1093
1102
  return response.render(template_name, result)
1094
1103
  return result
@@ -2079,6 +2079,28 @@ def _make_mw_continuation(mw, inner_next):
2079
2079
  return wrapper
2080
2080
 
2081
2081
 
2082
+ def _coerce_handler_result(result, response: Response) -> Response:
2083
+ """Turn a handler's return value into a Response.
2084
+
2085
+ Parity with PHP (``Router::handlerResultToResponse``) and Ruby
2086
+ (``finalise_route_response``): a handler may return a ``Response`` (used as
2087
+ is), or a dict / list / str / ORM model / ``DatabaseResult`` — which is run
2088
+ through the auto-detecting ``response()`` callable (dict/list → JSON,
2089
+ str → HTML or text, domain object → JSON) — or ``None``, in which case
2090
+ whatever the handler already wrote onto the ``response`` object stands.
2091
+
2092
+ Before this, every non-``Response`` return was silently dropped and the
2093
+ untouched (empty) response went out, so ``return {"open": 3}`` answered an
2094
+ empty 200 with no error and no log line (#289). The developer guides say
2095
+ "return an object and it becomes JSON", which is now true.
2096
+ """
2097
+ if isinstance(result, Response):
2098
+ return result
2099
+ if result is None:
2100
+ return response
2101
+ return response(result)
2102
+
2103
+
2082
2104
  async def _invoke_handler_with_middleware(request: Request, response: Response, route: dict, params: dict) -> Response:
2083
2105
  """Invoke the route handler, wrapping with any function-style middleware.
2084
2106
 
@@ -2108,9 +2130,7 @@ async def _invoke_handler_with_middleware(request: Request, response: Response,
2108
2130
  next_handler = _make_mw_continuation(mw, next_handler)
2109
2131
 
2110
2132
  result = await next_handler(request, response)
2111
- if isinstance(result, Response):
2112
- return result
2113
- return response
2133
+ return _coerce_handler_result(result, response)
2114
2134
 
2115
2135
 
2116
2136
  async def _invoke_handler(request: Request, response: Response, route: dict, params: dict) -> Response:
@@ -2179,9 +2199,7 @@ async def _invoke_handler(request: Request, response: Response, route: dict, par
2179
2199
  else:
2180
2200
  result = await asyncio.to_thread(_handler, *_args)
2181
2201
 
2182
- if isinstance(result, Response):
2183
- response = result
2184
- return response
2202
+ return _coerce_handler_result(result, response)
2185
2203
 
2186
2204
 
2187
2205
  def _handle_route_error(
@@ -904,6 +904,47 @@ def _migrate(db, migration_folder: str = "migrations", delimiter: str = ";") ->
904
904
  _release_migration_lock(db, lock)
905
905
 
906
906
 
907
+ # A freshly scaffolded migration carries a `tina4:edit` marker at each spot the
908
+ # developer must fill in (ADR-0063 scaffolding envelope). A placeholder whose
909
+ # body has NO executable SQL yet — the comment-only ALTER stub from a non-create
910
+ # `migrate:create`, or the commented view stub — is unfinished: applying it (and
911
+ # recording it passed) runs nothing and leaves the real SQL, written later under
912
+ # the same filename, never applied, with `tina4 migrate` reporting nothing
913
+ # pending (#288, #297). Such a migration is kept pending until it is written.
914
+ #
915
+ # A scaffolded CREATE TABLE still carries a `tina4:edit` hint but DOES have real,
916
+ # runnable DDL (id + created_at), so it applies normally — the ordinary
917
+ # `generate model` → `migrate` workflow is unaffected. The two signals together
918
+ # (marker present AND no executable statement) pick out only the empty scaffold.
919
+ _EDIT_PLACEHOLDER_RE = re.compile(r"(?:#|--|//|\{#)\s*tina4:edit\b", re.IGNORECASE)
920
+ _SQL_LINE_COMMENT_RE = re.compile(r"--[^\n]*")
921
+ _SQL_BLOCK_COMMENT_RE = re.compile(r"/\*.*?\*/", re.DOTALL)
922
+
923
+
924
+ def _has_executable_sql(sql: str) -> bool:
925
+ """True if any executable statement remains once comments are stripped."""
926
+ body = _SQL_BLOCK_COMMENT_RE.sub("", sql)
927
+ body = _SQL_LINE_COMMENT_RE.sub("", body)
928
+ return bool(body.strip(" \t\r\n;"))
929
+
930
+
931
+ def _is_unapplied_scaffold(path: Path) -> bool:
932
+ """True if a migration file is still the unedited scaffold placeholder.
933
+
934
+ A ``.sql`` file qualifies when it still bears a ``tina4:edit`` marker AND has
935
+ no executable statement; a ``.py`` scaffold qualifies on the marker alone.
936
+ """
937
+ try:
938
+ text = path.read_text(encoding="utf-8")
939
+ except OSError:
940
+ return False
941
+ if not _EDIT_PLACEHOLDER_RE.search(text):
942
+ return False
943
+ if path.suffix == ".py":
944
+ return True
945
+ return not _has_executable_sql(text)
946
+
947
+
907
948
  def _run_pending(db, migration_folder: str = "migrations", delimiter: str = ";") -> list[str]:
908
949
  """Apply every pending migration, in order. Caller holds the run-wide lock.
909
950
 
@@ -939,6 +980,18 @@ def _run_pending(db, migration_folder: str = "migrations", delimiter: str = ";")
939
980
  if migration_name in executed:
940
981
  continue
941
982
 
983
+ # Never apply a migration that is still the empty, unedited scaffold —
984
+ # keep it pending, loudly, so the developer's real SQL is not shadowed
985
+ # (#288, #297).
986
+ if _is_unapplied_scaffold(mig_file):
987
+ logger.warning(
988
+ f"Migration {mig_file.name} is still an unedited scaffold (a "
989
+ "'tina4:edit' placeholder with no SQL yet) — skipped and kept "
990
+ "pending. Write the migration and remove the tina4:edit line(s), "
991
+ "then run migrate again."
992
+ )
993
+ continue
994
+
942
995
  try:
943
996
  # Defensive: on an engine/driver that defaults to a non-autocommit
944
997
  # connection even for reads (e.g. MySQL via mysql-connector-python,
File without changes
File without changes