tina4-python 3.13.161__tar.gz → 3.13.162__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.161 → tina4_python-3.13.162}/PKG-INFO +1 -1
  2. {tina4_python-3.13.161 → tina4_python-3.13.162}/pyproject.toml +1 -1
  3. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/__init__.py +1 -1
  4. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/core/server.py +99 -62
  5. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/queue_backends/kafka_backend.py +15 -1
  6. {tina4_python-3.13.161 → tina4_python-3.13.162}/.gitignore +0 -0
  7. {tina4_python-3.13.161 → tina4_python-3.13.162}/COMMERCIAL-LICENSE.md +0 -0
  8. {tina4_python-3.13.161 → tina4_python-3.13.162}/LICENSE +0 -0
  9. {tina4_python-3.13.161 → tina4_python-3.13.162}/NOTICE +0 -0
  10. {tina4_python-3.13.161 → tina4_python-3.13.162}/README.md +0 -0
  11. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/.tina4-metrics.json +0 -0
  12. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/CLAUDE.md +0 -0
  13. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/HtmlElement.py +0 -0
  14. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/Testing.py +0 -0
  15. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/_import_helper.py +0 -0
  16. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/ai/__init__.py +0 -0
  17. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/ai/client.py +0 -0
  18. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/api/__init__.py +0 -0
  19. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/auth/__init__.py +0 -0
  20. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/cache/__init__.py +0 -0
  21. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/cli/__init__.py +0 -0
  22. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/container/__init__.py +0 -0
  23. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/context/__init__.py +0 -0
  24. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/context/chunker.py +0 -0
  25. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/core/__init__.py +0 -0
  26. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/core/cache.py +0 -0
  27. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/core/constants.py +0 -0
  28. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/core/csp.py +0 -0
  29. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/core/events.py +0 -0
  30. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/core/middleware.py +0 -0
  31. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/core/port_takeover.py +0 -0
  32. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/core/rate_limiter.py +0 -0
  33. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/core/request.py +0 -0
  34. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/core/response.py +0 -0
  35. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/core/router.py +0 -0
  36. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/crud/__init__.py +0 -0
  37. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/crud/page.py +0 -0
  38. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/crud/page_render.py +0 -0
  39. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/database/__init__.py +0 -0
  40. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/database/adapter.py +0 -0
  41. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/database/async_api.py +0 -0
  42. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/database/connection.py +0 -0
  43. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/database/database_url.py +0 -0
  44. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/database/firebird.py +0 -0
  45. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/database/mongodb.py +0 -0
  46. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/database/mssql.py +0 -0
  47. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/database/mysql.py +0 -0
  48. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/database/odbc.py +0 -0
  49. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/database/pool.py +0 -0
  50. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/database/postgres.py +0 -0
  51. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/database/sql_translator.py +0 -0
  52. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/database/sqlite.py +0 -0
  53. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/debug/__init__.py +0 -0
  54. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/debug/error_overlay.py +0 -0
  55. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/dev_admin/__init__.py +0 -0
  56. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/dev_admin/metrics.py +0 -0
  57. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/dev_admin/plan.py +0 -0
  58. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/dev_admin/project_index.py +0 -0
  59. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/docs.py +0 -0
  60. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/docstore/__init__.py +0 -0
  61. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/dotenv/__init__.py +0 -0
  62. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/env.py +0 -0
  63. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/frond/FROND.md +0 -0
  64. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/frond/__init__.py +0 -0
  65. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/frond/compiler.py +0 -0
  66. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/frond/engine.py +0 -0
  67. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/frond/parser.py +0 -0
  68. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/auth/meta.json +0 -0
  69. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/auth/src/routes/api/gallery_auth.py +0 -0
  70. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/database/meta.json +0 -0
  71. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/database/src/routes/api/gallery_db.py +0 -0
  72. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/error-overlay/meta.json +0 -0
  73. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/error-overlay/src/routes/api/gallery_crash.py +0 -0
  74. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/orm/meta.json +0 -0
  75. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/orm/src/orm/Product.py +0 -0
  76. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/orm/src/routes/api/gallery_products.py +0 -0
  77. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/queue/meta.json +0 -0
  78. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/queue/src/routes/api/gallery_queue.py +0 -0
  79. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/rest-api/meta.json +0 -0
  80. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/rest-api/src/routes/api/gallery_hello.py +0 -0
  81. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/templates/meta.json +0 -0
  82. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/templates/src/routes/gallery_page.py +0 -0
  83. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/gallery/templates/src/templates/gallery_page.twig +0 -0
  84. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/graph/__init__.py +0 -0
  85. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/graph/adapter.py +0 -0
  86. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/graph/adapters/__init__.py +0 -0
  87. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/graph/adapters/arango.py +0 -0
  88. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/graph/adapters/bolt.py +0 -0
  89. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/graph/adapters/ultipa.py +0 -0
  90. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/graph/graph_url.py +0 -0
  91. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/graphql/__init__.py +0 -0
  92. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/i18n/__init__.py +0 -0
  93. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/mcp/__init__.py +0 -0
  94. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/mcp/protocol.py +0 -0
  95. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/mcp/tools.py +0 -0
  96. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/messenger/__init__.py +0 -0
  97. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/migration/__init__.py +0 -0
  98. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/migration/runner.py +0 -0
  99. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/mqtt/__init__.py +0 -0
  100. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/mqtt/message.py +0 -0
  101. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/orm/__init__.py +0 -0
  102. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/orm/async_api.py +0 -0
  103. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/orm/collection.py +0 -0
  104. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/orm/fields.py +0 -0
  105. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/orm/model.py +0 -0
  106. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/orm/point.py +0 -0
  107. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/THIRD-PARTY-NOTICES.md +0 -0
  108. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/__feedback/widget.js +0 -0
  109. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/bundled-component-provenance.json +0 -0
  110. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/css/tina4.css +0 -0
  111. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/css/tina4.min.css +0 -0
  112. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/favicon.ico +0 -0
  113. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/images/logo.svg +0 -0
  114. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/images/tina4-logo-icon.webp +0 -0
  115. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/js/frond.js +0 -0
  116. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/js/frond.min.js +0 -0
  117. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/js/tina4-dev-admin-split.html +0 -0
  118. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/js/tina4-dev-admin.min.js +0 -0
  119. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/js/tina4.min.js +0 -0
  120. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/js/tina4js.min.js +0 -0
  121. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/licenses/swagger-ui-3.10.0-original-notice.txt +0 -0
  122. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/licenses/swagger-ui-5.17.14-NOTICE.txt +0 -0
  123. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/licenses/swagger-ui-Apache-2.0.txt +0 -0
  124. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/licenses/tina4-css-MIT.txt +0 -0
  125. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/licenses/tina4-dev-admin-components.json +0 -0
  126. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/licenses/tina4-dev-admin-third-party.txt +0 -0
  127. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/licenses/tina4-js-MIT.txt +0 -0
  128. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/swagger/index.html +0 -0
  129. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/public/swagger/oauth2-redirect.html +0 -0
  130. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/push/__init__.py +0 -0
  131. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/push/_base.py +0 -0
  132. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/push/_cryptography.py +0 -0
  133. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/push/_libcrypto.py +0 -0
  134. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/query_builder/__init__.py +0 -0
  135. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/queue/__init__.py +0 -0
  136. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/queue/amqp_url.py +0 -0
  137. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/queue/job.py +0 -0
  138. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/queue/kafka_backend.py +0 -0
  139. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/queue/lite_backend.py +0 -0
  140. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/queue/mongo_backend.py +0 -0
  141. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/queue/rabbitmq_backend.py +0 -0
  142. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/queue/topic_dead_letter.py +0 -0
  143. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/queue_backends/__init__.py +0 -0
  144. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/queue_backends/mongo_backend.py +0 -0
  145. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/queue_backends/rabbitmq_backend.py +0 -0
  146. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/realtime/__init__.py +0 -0
  147. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/realtime/models/Attachment.py +0 -0
  148. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/realtime/models/Channel.py +0 -0
  149. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/realtime/models/ChannelMember.py +0 -0
  150. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/realtime/models/Message.py +0 -0
  151. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/realtime/models/Workspace.py +0 -0
  152. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/realtime/models/__init__.py +0 -0
  153. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/realtime/s3_client.py +0 -0
  154. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/realtime/storage.py +0 -0
  155. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/seeder/__init__.py +0 -0
  156. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/service/__init__.py +0 -0
  157. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/session/__init__.py +0 -0
  158. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/session_handlers/__init__.py +0 -0
  159. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/session_handlers/memcached_handler.py +0 -0
  160. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/session_handlers/mongodb_handler.py +0 -0
  161. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/session_handlers/redis_handler.py +0 -0
  162. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/session_handlers/valkey_handler.py +0 -0
  163. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/sso.py +0 -0
  164. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/ssrf.py +0 -0
  165. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/swagger/__init__.py +0 -0
  166. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/tcp/__init__.py +0 -0
  167. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/components/crud.twig +0 -0
  168. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/crud/form.twig +0 -0
  169. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/crud/modals.twig +0 -0
  170. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/crud/page.twig +0 -0
  171. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/crud/table.twig +0 -0
  172. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/docker/distroless/Dockerfile +0 -0
  173. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/docker/poetry/Dockerfile +0 -0
  174. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/docker/python/Dockerfile +0 -0
  175. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/docker/uv/Dockerfile +0 -0
  176. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/errors/302.twig +0 -0
  177. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/errors/401.twig +0 -0
  178. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/errors/403.twig +0 -0
  179. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/errors/404.twig +0 -0
  180. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/errors/500.twig +0 -0
  181. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/errors/502.twig +0 -0
  182. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/errors/503.twig +0 -0
  183. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/errors/base.twig +0 -0
  184. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/frontend/README.md +0 -0
  185. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/templates/readme.md +0 -0
  186. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/test/__init__.py +0 -0
  187. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/test_client/__init__.py +0 -0
  188. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/translations/af/LC_MESSAGES/messages.mo +0 -0
  189. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/translations/af/LC_MESSAGES/messages.po +0 -0
  190. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/translations/en/LC_MESSAGES/messages.mo +0 -0
  191. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/translations/en/LC_MESSAGES/messages.po +0 -0
  192. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/translations/es/LC_MESSAGES/messages.mo +0 -0
  193. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/translations/es/LC_MESSAGES/messages.po +0 -0
  194. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/translations/fr/LC_MESSAGES/messages.mo +0 -0
  195. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/translations/fr/LC_MESSAGES/messages.po +0 -0
  196. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/translations/ja/LC_MESSAGES/messages.mo +0 -0
  197. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/translations/ja/LC_MESSAGES/messages.po +0 -0
  198. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/translations/zh/LC_MESSAGES/messages.mo +0 -0
  199. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/translations/zh/LC_MESSAGES/messages.po +0 -0
  200. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/validator/__init__.py +0 -0
  201. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/websocket/__init__.py +0 -0
  202. {tina4_python-3.13.161 → tina4_python-3.13.162}/tina4_python/websocket/backplane.py +0 -0
  203. {tina4_python-3.13.161 → tina4_python-3.13.162}/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.161
3
+ Version: 3.13.162
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.161"
3
+ version = "3.13.162"
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.161"
60
+ return "3.13.162"
61
61
 
62
62
 
63
63
  __version__ = _resolve_version()
@@ -4730,13 +4730,12 @@ def run(host: str | None = None, port: int | None = None, no_browser: bool = Fal
4730
4730
  except OSError:
4731
4731
  Log.warning(f"AI port {_ai_port} in use — skipping")
4732
4732
 
4733
- # Raw TCP services (feature 142, ADR-0102 D1) fold into THIS accept loop
4734
- # — same process as HTTP, so a device gateway and its dashboard share
4735
- # config, logging, ORM and queue. Each binds its own port; a worker that
4736
- # finds the port already bound skips silently (single-owner).
4737
- from tina4_python import tcp as _tcp_services
4738
- await _tcp_services.start_all(host)
4739
-
4733
+ # Arm the shutdown signal handlers BEFORE we begin accepting raw-TCP
4734
+ # connections (below). Binding a port that accepts work before graceful
4735
+ # shutdown is wired leaves a window in which a signal kills the process
4736
+ # ungracefully instead of draining — a device that connects the instant
4737
+ # the port opens lands squarely in it (feature 142's SIGTERM-drain
4738
+ # contract). Mirrors Node/PHP/Ruby arming handlers before accept.
4740
4739
  loop = asyncio.get_running_loop()
4741
4740
  for sig in (signal.SIGINT, signal.SIGTERM):
4742
4741
  try:
@@ -4744,6 +4743,15 @@ def run(host: str | None = None, port: int | None = None, no_browser: bool = Fal
4744
4743
  except NotImplementedError:
4745
4744
  pass # Windows
4746
4745
 
4746
+ # Raw TCP services (feature 142, ADR-0102 D1) fold into THIS accept loop
4747
+ # — same process as HTTP, so a device gateway and its dashboard share
4748
+ # config, logging, ORM and queue. Started AFTER the handlers above, so a
4749
+ # device connecting the instant the port opens can never catch the
4750
+ # process without a graceful-shutdown handler. Each binds its own port; a
4751
+ # worker that finds the port already bound skips silently (single-owner).
4752
+ from tina4_python import tcp as _tcp_services
4753
+ await _tcp_services.start_all(host)
4754
+
4747
4755
  # Start registered background tasks as asyncio tasks. Sync callbacks run
4748
4756
  # in a thread pool so they CANNOT block the event loop. The SAME helper
4749
4757
  # runs under the production ASGI lifespan (see app()), so a background()
@@ -4752,63 +4760,92 @@ def run(host: str | None = None, port: int | None = None, no_browser: bool = Fal
4752
4760
 
4753
4761
  await shutdown.wait()
4754
4762
 
4755
- # 1. Stop accepting FIRST. A connection that arrives after the signal
4756
- # must get a clean CONNECTION REFUSED — not a 503, not a TCP reset.
4757
- live_servers = [
4758
- s for s in (ai_server, server, *loopback_servers) if s is not None
4759
- ]
4760
- for live_server in live_servers:
4761
- live_server.close()
4762
- # Raw TCP listeners stop accepting at the same moment as HTTP.
4763
- _tcp_services.stop_accepting_all()
4764
-
4765
- # 2. Stop background work.
4766
- for t in bg_tasks:
4767
- t.cancel()
4768
-
4769
- # 3. Drain what is already in flight, BOUNDED. wait_closed() on its own
4770
- # waits forever, so one wedged handler (or one idle WebSocket) used to
4771
- # hold the process open past any orchestrator's grace period.
4772
- timeout_seconds = _resolve_shutdown_timeout()
4763
+ # The whole teardown tail is EXCEPTION-SAFE: a throw in ANY step must
4764
+ # degrade to a stderr line and STILL let a handled SIGTERM/SIGINT exit 0
4765
+ # — it may never fatal the process. Two steps below log while they tear
4766
+ # down (the invalid-timeout WARNING in _resolve_shutdown_timeout(), and
4767
+ # the "Server stopped." / Log.reset() finale), so under TINA4_LOG_STRICT
4768
+ # with a failing log sink they RAISE; before this guard that escaped
4769
+ # _serve() → asyncio.run() re-raised → a handled signal exited non-zero,
4770
+ # the exact opposite of the contract. This mirrors PHP Server::cleanup()
4771
+ # (the \Throwable guard that still exit(0)s) and Ruby's teardown. It is
4772
+ # idempotent (the shutdown event is already consumed and _serve() returns
4773
+ # right after) and does NOT touch the production uvicorn/hypercorn/granian
4774
+ # path, which computes the timeout at config time and returns long before
4775
+ # this tail runs.
4773
4776
  try:
4774
- async with asyncio.timeout(timeout_seconds):
4775
- # A live WebSocket never drains by itself — tell it we are going
4776
- # away (RFC 6455 close code 1001) so the client reconnects
4777
- # elsewhere instead of seeing the socket vanish. A dead peer
4778
- # must not turn a clean exit 0 into a crash on the way out.
4779
- try:
4780
- await _ws_manager.disconnect_all(
4781
- code=CLOSE_GOING_AWAY, reason="server shutting down")
4782
- except Exception as exc: # noqa: BLE001 — never fail the exit
4783
- Log.error(f"Error closing WebSocket connections on shutdown: {exc}")
4784
- # Raw TCP services drain their live device connections (firing
4785
- # on_close) alongside the HTTP drain, within the same deadline.
4786
- try:
4787
- await _tcp_services.drain_all()
4788
- except Exception as exc: # noqa: BLE001 — never fail the exit
4789
- Log.error(f"Error draining TCP services on shutdown: {exc}")
4790
- for live_server in live_servers:
4791
- await live_server.wait_closed()
4792
- except TimeoutError:
4793
- Log.warning(
4794
- f"TINA4_SHUTDOWN_TIMEOUT={timeout_seconds:g}s reached with work still "
4795
- f"in flight — forcing the remaining connections closed"
4796
- )
4777
+ # 1. Stop accepting FIRST. A connection that arrives after the signal
4778
+ # must get a clean CONNECTION REFUSED — not a 503, not a TCP reset.
4779
+ live_servers = [
4780
+ s for s in (ai_server, server, *loopback_servers) if s is not None
4781
+ ]
4797
4782
  for live_server in live_servers:
4798
- # Python 3.13+. On 3.12 the tasks are cancelled by asyncio.run's
4799
- # own teardown instead, which still gets us out.
4800
- abort_clients = getattr(live_server, "abort_clients", None)
4801
- if abort_clients is not None:
4802
- abort_clients()
4803
-
4804
- # 4. Release the resources the OS would otherwise reap for us.
4805
- _close_bound_databases()
4806
- _executor.shutdown(wait=False, cancel_futures=True)
4807
- Log.info("Server stopped.")
4808
- # Graceful shutdown owns the final call to reset() (Decision 24 /
4809
- # LOG-I02): flush+close owned sinks AFTER the shutdown record above is
4810
- # written, exactly once.
4811
- Log.reset()
4783
+ live_server.close()
4784
+ # Raw TCP listeners stop accepting at the same moment as HTTP.
4785
+ _tcp_services.stop_accepting_all()
4786
+
4787
+ # 2. Stop background work.
4788
+ for t in bg_tasks:
4789
+ t.cancel()
4790
+
4791
+ # 3. Drain what is already in flight, BOUNDED. wait_closed() on its
4792
+ # own waits forever, so one wedged handler (or one idle WebSocket)
4793
+ # used to hold the process open past any orchestrator's grace
4794
+ # period.
4795
+ timeout_seconds = _resolve_shutdown_timeout()
4796
+ try:
4797
+ async with asyncio.timeout(timeout_seconds):
4798
+ # A live WebSocket never drains by itself — tell it we are
4799
+ # going away (RFC 6455 close code 1001) so the client
4800
+ # reconnects elsewhere instead of seeing the socket vanish. A
4801
+ # dead peer must not turn a clean exit 0 into a crash on the
4802
+ # way out.
4803
+ try:
4804
+ await _ws_manager.disconnect_all(
4805
+ code=CLOSE_GOING_AWAY, reason="server shutting down")
4806
+ except Exception as exc: # noqa: BLE001 — never fail the exit
4807
+ Log.error(f"Error closing WebSocket connections on shutdown: {exc}")
4808
+ # Raw TCP services drain their live device connections (firing
4809
+ # on_close) alongside the HTTP drain, within the same deadline.
4810
+ try:
4811
+ await _tcp_services.drain_all()
4812
+ except Exception as exc: # noqa: BLE001 — never fail the exit
4813
+ Log.error(f"Error draining TCP services on shutdown: {exc}")
4814
+ for live_server in live_servers:
4815
+ await live_server.wait_closed()
4816
+ except TimeoutError:
4817
+ Log.warning(
4818
+ f"TINA4_SHUTDOWN_TIMEOUT={timeout_seconds:g}s reached with work still "
4819
+ f"in flight — forcing the remaining connections closed"
4820
+ )
4821
+ for live_server in live_servers:
4822
+ # Python 3.13+. On 3.12 the tasks are cancelled by
4823
+ # asyncio.run's own teardown instead, which still gets us out.
4824
+ abort_clients = getattr(live_server, "abort_clients", None)
4825
+ if abort_clients is not None:
4826
+ abort_clients()
4827
+
4828
+ # 4. Release the resources the OS would otherwise reap for us.
4829
+ _close_bound_databases()
4830
+ _executor.shutdown(wait=False, cancel_futures=True)
4831
+ Log.info("Server stopped.")
4832
+ # Graceful shutdown owns the final call to reset() (Decision 24 /
4833
+ # LOG-I02): flush+close owned sinks AFTER the shutdown record above is
4834
+ # written, exactly once.
4835
+ Log.reset()
4836
+ except Exception as teardown_error: # noqa: BLE001 — a handled signal MUST exit 0
4837
+ # A teardown step threw (e.g. a strict-mode log sink that fails to
4838
+ # write). Degrade to a best-effort stderr line and fall through to a
4839
+ # clean exit — never re-raise, which would fatal a handled signal.
4840
+ try:
4841
+ print(
4842
+ f"tina4: shutdown teardown degraded ({teardown_error!r}) — "
4843
+ f"exiting 0",
4844
+ file=sys.stderr,
4845
+ flush=True,
4846
+ )
4847
+ except Exception:
4848
+ pass
4812
4849
 
4813
4850
  try:
4814
4851
  asyncio.run(_serve())
@@ -170,8 +170,22 @@ class KafkaConnector:
170
170
  break
171
171
  if msg is None:
172
172
  return None, None
173
+ raw = msg.value()
174
+ if raw is None:
175
+ # Tombstone / delete marker: a null-value record. Debezium emits
176
+ # these on deletes and log-compacted topics use them as delete
177
+ # markers, so they are normal on Kafka. There is nothing to decode
178
+ # -- skip it (return "no message"). The consumer's position has
179
+ # already advanced past it in-memory, so the next poll() returns
180
+ # the following record and the commit moves the offset past the
181
+ # tombstone. An explicit is-None check (not merely adding
182
+ # AttributeError to the except) keeps unrelated attribute errors
183
+ # loud. (#303: None.decode() used to raise AttributeError, which
184
+ # was not in the except, so the tombstone was a poison pill that
185
+ # killed the consumer thread on every restart.)
186
+ return None, None
173
187
  try:
174
- message = json.loads(msg.value().decode("utf-8"))
188
+ message = json.loads(raw.decode("utf-8"))
175
189
  except (json.JSONDecodeError, UnicodeDecodeError):
176
190
  return None, None
177
191
  return message, self._track(msg, message, by_record)
File without changes
File without changes