nextpy-framework 5.3.0__tar.gz → 5.3.1__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 (170) hide show
  1. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/cli.py +60 -33
  2. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/core/builder.py +10 -0
  3. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/server/app.py +31 -0
  4. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy_framework.egg-info/PKG-INFO +1 -1
  5. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/PKG-INFO +1 -1
  6. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/pyproject.toml +1 -1
  7. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/__init__.py +0 -0
  8. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/admin.py +0 -0
  9. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/api.py +0 -0
  10. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/asgi.py +0 -0
  11. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/ast_parser.py +0 -0
  12. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/auth.py +0 -0
  13. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/cache.py +0 -0
  14. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/components/__init__.py +0 -0
  15. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/components/debug/AutoDebug_v3.py +0 -0
  16. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/components/debug/DebugIcon.css +0 -0
  17. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/components/debug/debug_demo.html +0 -0
  18. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/components/form.py +0 -0
  19. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/components/head.py +0 -0
  20. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/components/hooks_provider.py +0 -0
  21. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/components/image.py +0 -0
  22. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/components/layout.py +0 -0
  23. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/components/link.py +0 -0
  24. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/components/navigation.py +0 -0
  25. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/components/ui.py +0 -0
  26. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/components.py +0 -0
  27. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/config.py +0 -0
  28. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/core/__init__.py +0 -0
  29. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/core/component_renderer.py +0 -0
  30. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/core/component_router.py +0 -0
  31. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/core/data_fetching.py +0 -0
  32. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/core/demo_pages_simple.py +0 -0
  33. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/core/demo_router.py +0 -0
  34. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/core/renderer.py +0 -0
  35. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/core/router.py +0 -0
  36. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/core/streaming.py +0 -0
  37. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/db.py +0 -0
  38. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/debug/core.py +0 -0
  39. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/debug/performance.py +0 -0
  40. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/debug/ui.py +0 -0
  41. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/docs/conf.py +0 -0
  42. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/hooks.py +0 -0
  43. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/introspection/__init__.py +0 -0
  44. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/introspection/ast.py +0 -0
  45. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/introspection/compiler.py +0 -0
  46. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/introspection/components.py +0 -0
  47. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/introspection/framework.py +0 -0
  48. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/jsx.py +0 -0
  49. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/jsx_preprocessor.py +0 -0
  50. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/jsx_transformer.py +0 -0
  51. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/migrations.py +0 -0
  52. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/nextpy-vscode/client/package.json +0 -0
  53. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/nextpy-vscode/client/src/language-configuration.json +0 -0
  54. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/nextpy-vscode/client/src/syntaxes/nextpy.tmLanguage.json +0 -0
  55. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/nextpy-vscode/client/tsconfig.json +0 -0
  56. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/nextpy-vscode/server/package.json +0 -0
  57. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/package.json +0 -0
  58. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/plugins/__init__.py +0 -0
  59. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/plugins/base.py +0 -0
  60. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/plugins/builtin.py +0 -0
  61. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/plugins/config.py +0 -0
  62. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/__init__.py +0 -0
  63. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/compiler/actions.py +0 -0
  64. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/compiler/handler_compiler.py +0 -0
  65. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/components/clipboard.py +0 -0
  66. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/components/component.py +0 -0
  67. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/core/__init__.py +0 -0
  68. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/core/ast_nodes.py +0 -0
  69. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/core/evaluator.py +0 -0
  70. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/core/parser.py +0 -0
  71. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/core/runtime.py +0 -0
  72. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/devtools/language_server.py +0 -0
  73. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/devtools/language_server_lsp.py +0 -0
  74. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/devtools/psx_formatter.py +0 -0
  75. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/devtools/server_client_components.py +0 -0
  76. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/devtools/setup.py +0 -0
  77. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/devtools/vscode-extension/language-configuration.json +0 -0
  78. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/devtools/vscode-extension/package.json +0 -0
  79. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/devtools/vscode-extension/syntaxes/psx.tmLanguage.json +0 -0
  80. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/devtools/vscode-extension/tsconfig.json +0 -0
  81. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/hydration/__init__.py +0 -0
  82. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/hydration/decorators.py +0 -0
  83. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/hydration/engine.py +0 -0
  84. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/hydration/integration.py +0 -0
  85. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/renderer/renderer.py +0 -0
  86. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/router/__init__.py +0 -0
  87. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/router/client_router.py +0 -0
  88. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/runtime/actions_runtime.py +0 -0
  89. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/runtime/js_actions_runtime.py +0 -0
  90. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/tests/test_full_integration.py +0 -0
  91. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/tests/test_html_attribute_support.py +0 -0
  92. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/utils/helpers.py +0 -0
  93. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/psx/vdom/vnode.py +0 -0
  94. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/public/__init__.py +0 -0
  95. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/public/logo.png +0 -0
  96. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/public/tailwind.css +0 -0
  97. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/py.typed +0 -0
  98. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/security.py +0 -0
  99. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/server/__init__.py +0 -0
  100. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/server/debug.py +0 -0
  101. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/server/middleware.py +0 -0
  102. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/server_actions.py +0 -0
  103. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/source/conf.py +0 -0
  104. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/state_sync.py +0 -0
  105. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/styles/styles.css +0 -0
  106. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/styles.css +0 -0
  107. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tasks.py +0 -0
  108. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/HANDLER_REGISTRATION_SYSTEM.py +0 -0
  109. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/conftest.py +0 -0
  110. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/setup_complete.py +0 -0
  111. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_autodebug_enhanced.py +0 -0
  112. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_cli_scaffolding.py +0 -0
  113. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_colors.py +0 -0
  114. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_component_rendering.py +0 -0
  115. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_comprehensive.py +0 -0
  116. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_conversion.py +0 -0
  117. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_critical_fixes.py +0 -0
  118. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_demo_mode.py +0 -0
  119. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_demo_server.py +0 -0
  120. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_enhanced_handlers.py +0 -0
  121. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_extraction.py +0 -0
  122. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_final.py +0 -0
  123. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_fixes.py +0 -0
  124. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_fullstack_features.py +0 -0
  125. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_handler_system.py +0 -0
  126. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_hydration_engine.py +0 -0
  127. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_integration.py +0 -0
  128. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_interactive_bug.py +0 -0
  129. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_jsx_edgecases.py +0 -0
  130. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_jsx_preprocessor.py +0 -0
  131. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_migration.py +0 -0
  132. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_modular_debug.py +0 -0
  133. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_performance_cache.py +0 -0
  134. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_psx_reactivity.py +0 -0
  135. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_routing.py +0 -0
  136. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_security_hardening.py +0 -0
  137. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_server.py +0 -0
  138. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_server_features.py +0 -0
  139. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_server_working.py +0 -0
  140. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_tailwind.py +0 -0
  141. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_tailwind_full.py +0 -0
  142. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_tailwind_integration.py +0 -0
  143. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_tailwind_up_to_date.py +0 -0
  144. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/tests/test_websocket_complete.py +0 -0
  145. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/true_jsx.py +0 -0
  146. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/utils/__init__.py +0 -0
  147. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/utils/cache.py +0 -0
  148. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/utils/email.py +0 -0
  149. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/utils/errors.py +0 -0
  150. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/utils/file_upload.py +0 -0
  151. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/utils/images.py +0 -0
  152. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/utils/logging.py +0 -0
  153. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/utils/search.py +0 -0
  154. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/utils/seo.py +0 -0
  155. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/utils/validators.py +0 -0
  156. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/vscode-extension/language-configuration.json +0 -0
  157. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/vscode-extension/package-final.json +0 -0
  158. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/vscode-extension/package.json +0 -0
  159. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/vscode-extension/snippets/nextpy-psx.json +0 -0
  160. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/vscode-extension/syntaxes/nextpy-psx.tmLanguage.json +0 -0
  161. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/vscode-extension/tsconfig.json +0 -0
  162. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy/websocket.py +0 -0
  163. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy_framework.egg-info/SOURCES.txt +0 -0
  164. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy_framework.egg-info/dependency_links.txt +0 -0
  165. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy_framework.egg-info/entry_points.txt +0 -0
  166. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy_framework.egg-info/requires.txt +0 -0
  167. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/.nextpy_framework/nextpy_framework.egg-info/top_level.txt +0 -0
  168. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/LICENSE +0 -0
  169. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/README.md +0 -0
  170. {nextpy_framework-5.3.0 → nextpy_framework-5.3.1}/setup.cfg +0 -0
@@ -1842,6 +1842,12 @@ _framework_dir = Path(__file__).parent / ".nextpy_framework"
1842
1842
  if _framework_dir.exists():
1843
1843
  sys.path.insert(0, str(_framework_dir))
1844
1844
 
1845
+ # Anchor the working directory to the project root. Serverless platforms
1846
+ # (Vercel, etc.) may run the function from a different cwd, and the router,
1847
+ # uploads, static files and SQLite all resolve relative paths from cwd.
1848
+ _PROJECT_ROOT = Path(__file__).resolve().parent
1849
+ os.chdir(_PROJECT_ROOT)
1850
+
1845
1851
  import nextpy as nx
1846
1852
  from nextpy.admin import AdminSite
1847
1853
  from nextpy.config import settings
@@ -1861,10 +1867,10 @@ admin_site.register(User)
1861
1867
 
1862
1868
  # Define the app instance cleanly so Uvicorn can import it
1863
1869
  app = nx.create_app(
1864
- pages_dir="pages",
1865
- templates_dir="templates",
1866
- public_dir="public",
1867
- out_dir="out",
1870
+ pages_dir=str(_PROJECT_ROOT / "pages"),
1871
+ templates_dir=str(_PROJECT_ROOT / "templates"),
1872
+ public_dir=str(_PROJECT_ROOT / "public"),
1873
+ out_dir=str(_PROJECT_ROOT / "out"),
1868
1874
  debug=settings["debug"],
1869
1875
  admin_site=admin_site,
1870
1876
  )
@@ -1902,24 +1908,26 @@ Notes for serverless deployments:
1902
1908
  * Build Tailwind before deploying: ``npm install && npm run build:tailwind``.
1903
1909
  """
1904
1910
 
1911
+ import os
1905
1912
  import sys
1906
1913
  from pathlib import Path
1907
1914
 
1908
- # Make the project root importable regardless of the function's cwd.
1909
- sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
1915
+ # Make the project root importable regardless of the function's cwd, and
1916
+ # anchor cwd there too — the router, uploads, static files and SQLite all
1917
+ # resolve relative paths from the working directory.
1918
+ _PROJECT_ROOT = Path(__file__).resolve().parent.parent
1919
+ sys.path.insert(0, str(_PROJECT_ROOT))
1920
+ os.chdir(_PROJECT_ROOT)
1910
1921
 
1911
1922
  from main import app # noqa: F401,E402
1912
1923
  ''')
1924
+ # NOTE: do NOT scaffold a vercel.json with a catch-all rewrite. Vercel's
1925
+ # Python/FastAPI preset already routes every request to main.py's app.
1926
+ # A rewrite like {"source": "/(.*)", "destination": "/api/index"} makes
1927
+ # Vercel route using the rewritten destination path, so the app receives
1928
+ # "/api/index" for every request and every page 404s.
1913
1929
  click.echo(" Created: api/index.py (Vercel)")
1914
1930
 
1915
- (project_dir / "vercel.json").write_text('''{
1916
- "rewrites": [
1917
- { "source": "/(.*)", "destination": "/api/index.py" }
1918
- ]
1919
- }
1920
- ''')
1921
- click.echo(" Created: vercel.json")
1922
-
1923
1931
  (project_dir / "Dockerfile").write_text('''# NextPy production image — works on Railway, Render, Fly.io, ECS, etc.
1924
1932
  FROM python:3.12-slim
1925
1933
 
@@ -1969,8 +1977,24 @@ __pycache__
1969
1977
  - `DATABASE_URL` — hosted Postgres, e.g. `postgresql://user:pass@host/db`
1970
1978
  - `NEXTPY_SECRET_KEY` — random secret for JWT/CSRF
1971
1979
  - `NEXTPY_SECURE_COOKIES=true`
1972
- 4. Deploy. `vercel.json` routes every request to `api/index.py`, which serves
1973
- the FastAPI app (pages, API routes, server actions, uploads, SSE).
1980
+ 4. Deploy. **Do not add a catch-all rewrite** — Vercel's Python/FastAPI preset
1981
+ already routes every request to `main.py`'s `app` (pages, API routes, server
1982
+ actions, uploads, SSE). A `vercel.json` rewrite like
1983
+ `{"source": "/(.*)", "destination": "/api/index"}` makes Vercel route using
1984
+ the rewritten destination path, so the app receives `/api/index` for every
1985
+ request and **every page 404s**. `api/index.py` is only a fallback entry
1986
+ point; the preset serves `main.py` directly.
1987
+
1988
+ **If every route 404s:** the app is running (you see NextPy's 404 page) but the
1989
+ router found zero pages. Check the function logs for the startup line:
1990
+
1991
+ ```
1992
+ [NextPy] pages_dir=... exists=True routes=N
1993
+ ```
1994
+
1995
+ - `exists=False` → `pages/` is not in the deployment (commit and push it;
1996
+ Vercel deploys from git).
1997
+ - `routes=0` with `exists=True` → the pages failed to scan; share the log.
1974
1998
 
1975
1999
  Caveats: SQLite and local disk are ephemeral on serverless — use Postgres and
1976
2000
  external blob storage (Vercel Blob / S3) for uploads in production.
@@ -2046,7 +2070,7 @@ def BlogIndex(props=None):
2046
2070
 
2047
2071
  <div class="flex flex-col flex-1 p-6">
2048
2072
  <h2 class="text-xl font-bold text-gray-900 line-clamp-2">
2049
- <a href="blog/{post['slug']}" class="transition-colors rounded hover:text-indigo-600 focus:outline-none focus:ring-2 focus:ring-indigo-500">
2073
+ <a href="/blog/{post['slug']}" class="transition-colors rounded hover:text-indigo-600 focus:outline-none focus:ring-2 focus:ring-indigo-500">
2050
2074
  {post["title"]}
2051
2075
  </a>
2052
2076
  </h2>
@@ -2064,7 +2088,7 @@ def BlogIndex(props=None):
2064
2088
  </div>
2065
2089
 
2066
2090
  <div class="mt-4">
2067
- <a href="blog/{post['slug']}" class="inline-flex items-center text-sm font-semibold text-indigo-600 transition-colors hover:text-indigo-800 group-hover:underline">
2091
+ <a href="/blog/{post['slug']}" class="inline-flex items-center text-sm font-semibold text-indigo-600 transition-colors hover:text-indigo-800 group-hover:underline">
2068
2092
  Read more
2069
2093
  <svg class="w-4 h-4 ml-1 transition-transform group-hover:translate-x-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
2070
2094
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"/>
@@ -2796,9 +2820,9 @@ def Card(props=None):
2796
2820
  # Create PSX homepage
2797
2821
  (project_dir / "pages" / "index.py").write_text('''"""Interactive Homepage with PSX"""
2798
2822
 
2799
- from nextpy.psx import component, useState
2823
+ from nextpy.psx import interactive_component, useState
2800
2824
 
2801
- @component
2825
+ @interactive_component
2802
2826
  def Home(props=None):
2803
2827
  props = props or {}
2804
2828
  title = props.get("title", "Welcome to NextPy!")
@@ -2811,7 +2835,7 @@ def Home(props=None):
2811
2835
 
2812
2836
  <div class="flex flex-col items-center max-w-xl gap-8 text-center">
2813
2837
  <h1 class="text-[56px] font-extrabold tracking-tighter leading-none select-none font-mono flex items-baseline">
2814
- <img src="/static/images/logo.png" alt="NextPy Logo" class="w-auto h-16" />
2838
+ <img src="/images/logo.png" alt="NextPy Logo" class="w-auto h-16" />
2815
2839
  </h1>
2816
2840
 
2817
2841
  <h2 class="text-4xl font-bold">{title}</h2>
@@ -2990,12 +3014,12 @@ def Examples(props=None):
2990
3014
 
2991
3015
  <div class="grid gap-6 md:grid-cols-3">
2992
3016
  {for card in [
2993
- {"title": "Card 1", "color": "blue"},
2994
- {"title": "Card 2", "color": "green"},
2995
- {"title": "Card 3", "color": "purple"}
3017
+ {"title": "Card 1", "class": "bg-blue-200"},
3018
+ {"title": "Card 2", "class": "bg-green-200"},
3019
+ {"title": "Card 3", "class": "bg-purple-200"}
2996
3020
  ]:
2997
3021
  <div class="p-6 transition-shadow bg-white rounded-lg shadow hover:shadow-lg">
2998
- <div class={"w-full h-32 bg-" + card["color"] + "-200 rounded mb-4"}></div>
3022
+ <div class={card["class"] + " w-full h-32 rounded mb-4"}></div>
2999
3023
  <h3 class="font-semibold">{card["title"]}</h3>
3000
3024
  </div>
3001
3025
  }
@@ -3204,7 +3228,9 @@ def LoginPage(props=None):
3204
3228
  </div>
3205
3229
 
3206
3230
  <div class="rounded-2xl border border-gray-200 bg-white p-8 shadow-xl shadow-gray-900/5">
3207
- <div data-state-error data-state-toggle style="display: none" class="mb-5 p-3 text-sm text-red-700 rounded-lg bg-red-50"></div>
3231
+ {if error:
3232
+ <div class="mb-5 p-3 text-sm text-red-700 rounded-lg bg-red-50">{error}</div>
3233
+ }
3208
3234
 
3209
3235
  <form onsubmit={handle_login} class="space-y-5">
3210
3236
  <div>
@@ -3286,7 +3312,9 @@ def RegisterPage(props=None):
3286
3312
  </div>
3287
3313
 
3288
3314
  <div class="rounded-2xl border border-gray-200 bg-white p-8 shadow-xl shadow-gray-900/5">
3289
- <div data-state-error data-state-toggle style="display: none" class="mb-5 p-3 text-sm text-red-700 rounded-lg bg-red-50"></div>
3315
+ {if error:
3316
+ <div class="mb-5 p-3 text-sm text-red-700 rounded-lg bg-red-50">{error}</div>
3317
+ }
3290
3318
 
3291
3319
  <form onsubmit={handle_register} class="space-y-4">
3292
3320
  <input type="text" value={fullName} oninput={lambda e: setFullName(e.target.value)}
@@ -3842,25 +3870,25 @@ def Features(props=None):
3842
3870
  "icon": "page",
3843
3871
  "title": "File-Based Routing",
3844
3872
  "description": "Create pages by adding Python files to pages/",
3845
- "link": "/documentation"
3873
+ "link": "/examples"
3846
3874
  },
3847
3875
  {
3848
3876
  "icon": "rocket",
3849
3877
  "title": "Server-Side Rendering",
3850
3878
  "description": "Render pages on the server with get_server_side_props",
3851
- "link": "/documentation"
3879
+ "link": "/examples"
3852
3880
  },
3853
3881
  {
3854
3882
  "icon": "lightning",
3855
3883
  "title": "Static Generation",
3856
3884
  "description": "Pre-render pages at build time with get_static_props",
3857
- "link": "/documentation"
3885
+ "link": "/examples"
3858
3886
  },
3859
3887
  {
3860
3888
  "icon": "database",
3861
3889
  "title": "Database Integration",
3862
3890
  "description": "SQLAlchemy ORM with SQLite, PostgreSQL, MySQL",
3863
- "link": "/db_example"
3891
+ "link": "/examples"
3864
3892
  },
3865
3893
  {
3866
3894
  "icon": "wrench",
@@ -3878,7 +3906,7 @@ def Features(props=None):
3878
3906
  "icon": "fire",
3879
3907
  "title": "Live Reload",
3880
3908
  "description": "Instant updates during development",
3881
- "link": "/documentation"
3909
+ "link": "/examples"
3882
3910
  },
3883
3911
  {
3884
3912
  "icon": "shield",
@@ -3983,7 +4011,6 @@ async def get_server_side_props(context):
3983
4011
 
3984
4012
  pages = [
3985
4013
  {"loc": f"{base_url}/", "lastmod": datetime.now().strftime("%Y-%m-%d"), "changefreq": "daily", "priority": "1.0"},
3986
- {"loc": f"{base_url}/documentation", "lastmod": datetime.now().strftime("%Y-%m-%d"), "changefreq": "weekly", "priority": "0.9"},
3987
4014
  {"loc": f"{base_url}/examples", "lastmod": datetime.now().strftime("%Y-%m-%d"), "changefreq": "weekly", "priority": "0.8"},
3988
4015
  {"loc": f"{base_url}/features", "lastmod": datetime.now().strftime("%Y-%m-%d"), "changefreq": "weekly", "priority": "0.8"},
3989
4016
  {"loc": f"{base_url}/about", "lastmod": datetime.now().strftime("%Y-%m-%d"), "changefreq": "monthly", "priority": "0.7"},
@@ -15,7 +15,9 @@ from nextpy.core.component_router import ComponentRouter, ComponentRoute
15
15
  from nextpy.core.renderer import Renderer
16
16
  from nextpy.core.data_fetching import (
17
17
  PageContext,
18
+ PageNotFoundError,
18
19
  PropsResult,
20
+ RedirectError,
19
21
  execute_data_fetching,
20
22
  execute_data_fetching_result,
21
23
  get_static_paths_for_route,
@@ -222,6 +224,14 @@ class Builder:
222
224
 
223
225
  print(f" Built: {path} -> {output_path}")
224
226
 
227
+ except RedirectError as e:
228
+ # Next.js semantics: a redirect during SSG means the page is not
229
+ # generated (e.g. auth-guarded pages redirect to /login at build
230
+ # time). Skip quietly instead of failing the build.
231
+ print(f" Skipped: {path} -> redirect to {e.destination}")
232
+ except PageNotFoundError:
233
+ # Page opted out of static generation via not_found: True.
234
+ print(f" Skipped: {path} -> not found")
225
235
  except Exception as e:
226
236
  print(f" Error building {path}: {e}")
227
237
 
@@ -149,6 +149,14 @@ class NextPyApp:
149
149
 
150
150
  # Scan pages for routes
151
151
  self.router.scan_pages()
152
+
153
+ # Startup diagnostics: on serverless platforms a wrong cwd or a
154
+ # missing pages/ bundle silently yields zero routes (every page 404s).
155
+ _routes = getattr(self.router, "routes", None) or getattr(self.router, "_routes", None) or []
156
+ print(
157
+ f"[NextPy] pages_dir={self.pages_dir.resolve()} "
158
+ f"exists={self.pages_dir.exists()} routes={len(_routes)}"
159
+ )
152
160
 
153
161
  # Check if we should enable demo mode
154
162
  if isinstance(self.router, Router) and demo_router.should_serve_demo():
@@ -363,6 +371,29 @@ class NextPyApp:
363
371
  except Exception:
364
372
  # Non-fatal: continue if registration fails
365
373
  pass
374
+
375
+ # Next.js semantics: files in public/ are served at the site root
376
+ # (public/images/logo.png -> /images/logo.png). Serverless platforms
377
+ # like Vercel serve public/ at the root themselves and exclude it
378
+ # from the function bundle, so the /static mount 404s there. This
379
+ # middleware serves root-relative public files locally too, so the
380
+ # same asset paths work in dev and in production.
381
+ _public_root = self.public_dir.resolve()
382
+ _reserved = ("static/", "uploads/", "_nextpy/", "api/", "__")
383
+
384
+ @self.app.middleware("http")
385
+ async def _serve_public_root(request, call_next):
386
+ if request.method in ("GET", "HEAD"):
387
+ rel = request.url.path.lstrip("/")
388
+ if rel and not rel.startswith(_reserved):
389
+ candidate = (_public_root / rel).resolve()
390
+ try:
391
+ if candidate.is_file() and candidate.is_relative_to(_public_root):
392
+ from starlette.responses import FileResponse
393
+ return FileResponse(candidate)
394
+ except (OSError, ValueError):
395
+ pass
396
+ return await call_next(request)
366
397
  # Serve user-uploaded files (nextpy.utils.file_upload writes here).
367
398
  # Created eagerly so the mount never 500s on a fresh project.
368
399
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nextpy-framework
3
- Version: 5.3.0
3
+ Version: 5.3.1
4
4
  Summary: The Python Web Framework introducing file-based routing, SSR, and SSG and more
5
5
  Author: RahimStudios
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nextpy-framework
3
- Version: 5.3.0
3
+ Version: 5.3.1
4
4
  Summary: The Python Web Framework introducing file-based routing, SSR, and SSG and more
5
5
  Author: RahimStudios
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "nextpy-framework"
7
- version = "5.3.0"
7
+ version = "5.3.1"
8
8
  description = "The Python Web Framework introducing file-based routing, SSR, and SSG and more"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"