nextpy-framework 5.0.0__tar.gz → 5.1.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 (166) hide show
  1. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/cli.py +72 -5
  2. nextpy_framework-5.1.1/.nextpy_framework/nextpy/components/debug/DebugIcon.css +470 -0
  3. nextpy_framework-5.1.1/.nextpy_framework/nextpy/components/debug/debug_demo.html +280 -0
  4. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/db.py +7 -0
  5. nextpy_framework-5.1.1/.nextpy_framework/nextpy/nextpy-vscode/client/package.json +87 -0
  6. nextpy_framework-5.1.1/.nextpy_framework/nextpy/nextpy-vscode/client/src/language-configuration.json +38 -0
  7. nextpy_framework-5.1.1/.nextpy_framework/nextpy/nextpy-vscode/client/src/syntaxes/nextpy.tmLanguage.json +108 -0
  8. nextpy_framework-5.1.1/.nextpy_framework/nextpy/nextpy-vscode/client/tsconfig.json +16 -0
  9. nextpy_framework-5.1.1/.nextpy_framework/nextpy/nextpy-vscode/server/package.json +21 -0
  10. nextpy_framework-5.1.1/.nextpy_framework/nextpy/package.json +28 -0
  11. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/compiler/handler_compiler.py +12 -7
  12. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/core/parser.py +40 -172
  13. nextpy_framework-5.1.1/.nextpy_framework/nextpy/psx/devtools/vscode-extension/language-configuration.json +39 -0
  14. nextpy_framework-5.1.1/.nextpy_framework/nextpy/psx/devtools/vscode-extension/package.json +134 -0
  15. nextpy_framework-5.1.1/.nextpy_framework/nextpy/psx/devtools/vscode-extension/syntaxes/psx.tmLanguage.json +141 -0
  16. nextpy_framework-5.1.1/.nextpy_framework/nextpy/psx/devtools/vscode-extension/tsconfig.json +17 -0
  17. nextpy_framework-5.1.1/.nextpy_framework/nextpy/public/tailwind.css +2 -0
  18. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/server/app.py +0 -1
  19. nextpy_framework-5.1.1/.nextpy_framework/nextpy/styles/styles.css +34 -0
  20. nextpy_framework-5.1.1/.nextpy_framework/nextpy/styles.css +3 -0
  21. nextpy_framework-5.1.1/.nextpy_framework/nextpy/vscode-extension/language-configuration.json +40 -0
  22. nextpy_framework-5.1.1/.nextpy_framework/nextpy/vscode-extension/package-final.json +154 -0
  23. nextpy_framework-5.1.1/.nextpy_framework/nextpy/vscode-extension/package.json +176 -0
  24. nextpy_framework-5.1.1/.nextpy_framework/nextpy/vscode-extension/snippets/nextpy-psx.json +255 -0
  25. nextpy_framework-5.1.1/.nextpy_framework/nextpy/vscode-extension/syntaxes/nextpy-psx.tmLanguage.json +316 -0
  26. nextpy_framework-5.1.1/.nextpy_framework/nextpy/vscode-extension/tsconfig.json +22 -0
  27. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1/.nextpy_framework/nextpy_framework.egg-info}/PKG-INFO +2 -1
  28. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy_framework.egg-info/SOURCES.txt +21 -0
  29. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy_framework.egg-info/requires.txt +1 -0
  30. {nextpy_framework-5.0.0/.nextpy_framework/nextpy_framework.egg-info → nextpy_framework-5.1.1}/PKG-INFO +2 -1
  31. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/pyproject.toml +6 -5
  32. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/__init__.py +0 -0
  33. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/admin.py +0 -0
  34. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/api.py +0 -0
  35. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/asgi.py +0 -0
  36. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/ast_parser.py +0 -0
  37. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/auth.py +0 -0
  38. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/cache.py +0 -0
  39. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/components/__init__.py +0 -0
  40. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/components/debug/AutoDebug_v3.py +0 -0
  41. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/components/form.py +0 -0
  42. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/components/head.py +0 -0
  43. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/components/hooks_provider.py +0 -0
  44. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/components/image.py +0 -0
  45. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/components/layout.py +0 -0
  46. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/components/link.py +0 -0
  47. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/components/navigation.py +0 -0
  48. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/components/ui.py +0 -0
  49. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/components.py +0 -0
  50. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/config.py +0 -0
  51. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/core/__init__.py +0 -0
  52. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/core/builder.py +0 -0
  53. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/core/component_renderer.py +0 -0
  54. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/core/component_router.py +0 -0
  55. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/core/data_fetching.py +0 -0
  56. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/core/demo_pages_simple.py +0 -0
  57. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/core/demo_router.py +0 -0
  58. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/core/renderer.py +0 -0
  59. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/core/router.py +0 -0
  60. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/core/streaming.py +0 -0
  61. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/debug/core.py +0 -0
  62. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/debug/performance.py +0 -0
  63. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/debug/ui.py +0 -0
  64. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/docs/conf.py +0 -0
  65. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/hooks.py +0 -0
  66. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/introspection/__init__.py +0 -0
  67. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/introspection/ast.py +0 -0
  68. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/introspection/compiler.py +0 -0
  69. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/introspection/components.py +0 -0
  70. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/introspection/framework.py +0 -0
  71. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/jsx.py +0 -0
  72. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/jsx_preprocessor.py +0 -0
  73. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/jsx_transformer.py +0 -0
  74. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/plugins/__init__.py +0 -0
  75. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/plugins/base.py +0 -0
  76. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/plugins/builtin.py +0 -0
  77. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/plugins/config.py +0 -0
  78. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/plugins.py +0 -0
  79. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/__init__.py +0 -0
  80. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/compiler/actions.py +0 -0
  81. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/components/component.py +0 -0
  82. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/core/__init__.py +0 -0
  83. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/core/ast_nodes.py +0 -0
  84. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/core/evaluator.py +0 -0
  85. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/core/runtime.py +0 -0
  86. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/devtools/language_server.py +0 -0
  87. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/devtools/language_server_lsp.py +0 -0
  88. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/devtools/psx_formatter.py +0 -0
  89. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/devtools/server_client_components.py +0 -0
  90. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/devtools/setup.py +0 -0
  91. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/hydration/__init__.py +0 -0
  92. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/hydration/decorators.py +0 -0
  93. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/hydration/engine.py +0 -0
  94. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/hydration/integration.py +0 -0
  95. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/renderer/renderer.py +0 -0
  96. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/router/__init__.py +0 -0
  97. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/router/client_router.py +0 -0
  98. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/runtime/actions_runtime.py +0 -0
  99. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/runtime/js_actions_runtime.py +0 -0
  100. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/tests/test_full_integration.py +0 -0
  101. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/tests/test_html_attribute_support.py +0 -0
  102. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/utils/helpers.py +0 -0
  103. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/psx/vdom/vnode.py +0 -0
  104. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/public/__init__.py +0 -0
  105. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/public/logo.png +0 -0
  106. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/py.typed +0 -0
  107. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/security.py +0 -0
  108. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/server/__init__.py +0 -0
  109. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/server/debug.py +0 -0
  110. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/server/middleware.py +0 -0
  111. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/server_actions.py +0 -0
  112. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/source/conf.py +0 -0
  113. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/state_sync.py +0 -0
  114. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tasks.py +0 -0
  115. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/HANDLER_REGISTRATION_SYSTEM.py +0 -0
  116. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/setup_complete.py +0 -0
  117. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_autodebug_enhanced.py +0 -0
  118. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_cli_scaffolding.py +0 -0
  119. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_colors.py +0 -0
  120. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_component_rendering.py +0 -0
  121. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_comprehensive.py +0 -0
  122. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_conversion.py +0 -0
  123. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_critical_fixes.py +0 -0
  124. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_demo_mode.py +0 -0
  125. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_demo_server.py +0 -0
  126. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_enhanced_handlers.py +0 -0
  127. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_extraction.py +0 -0
  128. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_final.py +0 -0
  129. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_fixes.py +0 -0
  130. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_fullstack_features.py +0 -0
  131. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_handler_system.py +0 -0
  132. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_hydration_engine.py +0 -0
  133. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_integration.py +0 -0
  134. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_interactive_bug.py +0 -0
  135. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_jsx_edgecases.py +0 -0
  136. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_jsx_preprocessor.py +0 -0
  137. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_migration.py +0 -0
  138. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_modular_debug.py +0 -0
  139. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_performance_cache.py +0 -0
  140. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_psx_reactivity.py +0 -0
  141. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_routing.py +0 -0
  142. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_security_hardening.py +0 -0
  143. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_server.py +0 -0
  144. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_server_features.py +0 -0
  145. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_server_working.py +0 -0
  146. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_tailwind.py +0 -0
  147. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_tailwind_full.py +0 -0
  148. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_tailwind_integration.py +0 -0
  149. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_tailwind_up_to_date.py +0 -0
  150. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/tests/test_websocket_complete.py +0 -0
  151. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/true_jsx.py +0 -0
  152. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/utils/__init__.py +0 -0
  153. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/utils/cache.py +0 -0
  154. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/utils/email.py +0 -0
  155. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/utils/file_upload.py +0 -0
  156. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/utils/logging.py +0 -0
  157. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/utils/search.py +0 -0
  158. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/utils/seo.py +0 -0
  159. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/utils/validators.py +0 -0
  160. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy/websocket.py +0 -0
  161. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy_framework.egg-info/dependency_links.txt +0 -0
  162. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy_framework.egg-info/entry_points.txt +0 -0
  163. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/.nextpy_framework/nextpy_framework.egg-info/top_level.txt +0 -0
  164. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/LICENSE +0 -0
  165. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/README.md +0 -0
  166. {nextpy_framework-5.0.0 → nextpy_framework-5.1.1}/setup.cfg +0 -0
@@ -247,7 +247,18 @@ def _init_project_db():
247
247
  from nextpy.config import settings
248
248
  from nextpy.db import init_db
249
249
 
250
- return init_db(settings["database_url"])
250
+ # Ensure database URL is absolute path for consistency
251
+ db_url = settings["database_url"]
252
+ if db_url.startswith("sqlite:///"):
253
+ db_path = db_url.replace("sqlite:///", "")
254
+ if not os.path.isabs(db_path):
255
+ # Make it relative to the project directory
256
+ project_dir = Path.cwd()
257
+ abs_path = str(project_dir / db_path)
258
+ db_url = f"sqlite:///{abs_path}"
259
+ settings["database_url"] = db_url
260
+
261
+ return init_db(db_url)
251
262
 
252
263
 
253
264
  def _format_size(size_bytes: int) -> str:
@@ -296,6 +307,19 @@ def dev(port: int, host: str, reload: bool, debug: bool):
296
307
  settings["nextpy_debug"] = debug
297
308
  settings["development"] = True
298
309
 
310
+ # Initialize database before starting server
311
+ from nextpy.db import init_db
312
+ import os as _os
313
+ db_url = settings["database_url"]
314
+ if db_url.startswith("sqlite:///"):
315
+ db_path = db_url.replace("sqlite:///", "")
316
+ if not _os.path.isabs(db_path):
317
+ project_dir = Path.cwd()
318
+ abs_path = str(project_dir / db_path)
319
+ db_url = f"sqlite:///{abs_path}"
320
+ settings["database_url"] = db_url
321
+ init_db(db_url)
322
+
299
323
  main_module = find_main_module()
300
324
  project_dir = Path.cwd()
301
325
  os.chdir(project_dir)
@@ -1256,6 +1280,7 @@ def _create_project_structure(
1256
1280
  "pages/blog",
1257
1281
  "pages/api",
1258
1282
  "pages/api/users",
1283
+ "pages/actions",
1259
1284
  "components",
1260
1285
  "components/ui",
1261
1286
  "components/layout",
@@ -1843,6 +1868,7 @@ __all__ = ["AppUser", "User"]
1843
1868
  (project_dir / "main.py").write_text('''"""NextPy application entry point."""
1844
1869
 
1845
1870
  import sys
1871
+ import os
1846
1872
  from pathlib import Path
1847
1873
 
1848
1874
  # Support running from a source checkout that vendors the framework.
@@ -1858,7 +1884,23 @@ from nextpy.db import User, init_db
1858
1884
  # Importing models registers them on nextpy.db.Base.
1859
1885
  import models # noqa: F401
1860
1886
 
1861
- init_db(settings["database_url"])
1887
+ # Import server actions to register them
1888
+ try:
1889
+ from pages.actions import * # noqa: F401
1890
+ except ImportError:
1891
+ pass # No server actions yet
1892
+
1893
+ # Ensure database URL is absolute path for consistency
1894
+ db_url = settings["database_url"]
1895
+ if db_url.startswith("sqlite:///"):
1896
+ db_path = db_url.replace("sqlite:///", "")
1897
+ if not os.path.isabs(db_path):
1898
+ # Make it relative to the project directory
1899
+ project_dir = Path(__file__).parent
1900
+ abs_path = str(project_dir / db_path)
1901
+ db_url = f"sqlite:///{abs_path}"
1902
+
1903
+ init_db(db_url)
1862
1904
 
1863
1905
  admin_site = AdminSite()
1864
1906
  admin_site.register(User)
@@ -2109,6 +2151,22 @@ def use_auth(request):
2109
2151
  )
2110
2152
  click.echo(" Created: hooks/use_auth.py")
2111
2153
 
2154
+ (project_dir / "pages/actions" / "__init__.py").write_text('''
2155
+ """Server actions for this NextPy app.
2156
+
2157
+ Server actions allow you to call Python functions from client-side components.
2158
+ All server actions are automatically registered when imported here.
2159
+
2160
+ Example:
2161
+ from nextpy.server_actions import server_action
2162
+
2163
+ @server_action()
2164
+ async def my_action(data: str):
2165
+ return {"result": f"Processed: {data}"}
2166
+ """''')
2167
+ click.echo(" Created: pages/actions/__init__.py")
2168
+
2169
+
2112
2170
  # Create middleware example
2113
2171
  (project_dir / "middleware" / "cors.py").write_text('''"""CORS middleware example"""
2114
2172
 
@@ -2132,8 +2190,14 @@ def add_cors_middleware(app):
2132
2190
  (project_dir / "tests" / "test_api.py").write_text('''"""API tests example"""
2133
2191
 
2134
2192
  import pytest
2135
- from fastapi.testclient import TestClient
2193
+ import sys
2194
+ from pathlib import Path
2195
+
2196
+ # Add project to path
2197
+ sys.path.insert(0, str(Path(__file__).parent.parent))
2198
+
2136
2199
  from main import app
2200
+ from fastapi.testclient import TestClient
2137
2201
 
2138
2202
  client = TestClient(app)
2139
2203
 
@@ -2320,13 +2384,15 @@ NEXTPY_DEBUG=true
2320
2384
  HOST=0.0.0.0
2321
2385
  PORT=8000
2322
2386
 
2323
- # Database
2324
- DATABASE_URL=sqlite:///./app.db
2387
+ # Database (uses absolute path to ensure consistency)
2388
+ DATABASE_URL=sqlite:///{str(project_dir / "app.db")}
2325
2389
 
2326
2390
  # Secrets (generated for this project)
2327
2391
  SECRET_KEY={_secret_key}
2328
2392
  JWT_SECRET={_jwt_secret}
2329
2393
  SESSION_SECRET={_session_secret}
2394
+ JWT_ALGORITHM=HS256
2395
+ JWT_EXPIRATION_HOURS=24
2330
2396
 
2331
2397
  # Security
2332
2398
  CSRF_PROTECTION=true
@@ -2336,6 +2402,7 @@ CORS_ORIGINS=
2336
2402
  # NextPy Settings
2337
2403
  NEXTPY_DEBUG_ICON=true
2338
2404
  NEXTPY_HOT_RELOAD=true
2405
+ NEXTPY_HMR=true
2339
2406
  NEXTPY_LOG_LEVEL=info
2340
2407
  """)
2341
2408
  click.echo(" Created: .env")
@@ -0,0 +1,470 @@
1
+ /* NextPy Debug Icon Styles - Similar to Next.js debug overlay */
2
+
3
+ /* Main debug overlay container */
4
+ .nextpy-debug-overlay {
5
+ position: fixed;
6
+ top: 0;
7
+ left: 0;
8
+ width: 100%;
9
+ height: 100%;
10
+ pointer-events: none;
11
+ z-index: 9999;
12
+ }
13
+
14
+ /* Debug icon button */
15
+ .nextpy-debug-icon {
16
+ position: fixed;
17
+ bottom: 20px;
18
+ right: 20px;
19
+ width: 48px;
20
+ height: 48px;
21
+ background: #1a1a1a;
22
+ border: 2px solid #333;
23
+ border-radius: 50%;
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: center;
27
+ cursor: pointer;
28
+ font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
29
+ font-size: 12px;
30
+ font-weight: bold;
31
+ color: #fff;
32
+ transition: all 0.2s ease;
33
+ pointer-events: all;
34
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
35
+ user-select: none;
36
+ }
37
+
38
+ .nextpy-debug-icon:hover {
39
+ background: #333;
40
+ border-color: #555;
41
+ transform: scale(1.1);
42
+ box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
43
+ }
44
+
45
+ .nextpy-debug-icon.active {
46
+ background: #0070f3;
47
+ border-color: #0051cc;
48
+ }
49
+
50
+ .nextpy-debug-text {
51
+ font-size: 14px;
52
+ font-weight: 700;
53
+ letter-spacing: -0.5px;
54
+ }
55
+
56
+ /* Debug badge for errors/warnings */
57
+ .nextpy-debug-badge {
58
+ position: absolute;
59
+ top: -8px;
60
+ right: -8px;
61
+ min-width: 18px;
62
+ height: 18px;
63
+ background: #ff4444;
64
+ color: white;
65
+ border-radius: 50%;
66
+ font-size: 10px;
67
+ font-weight: bold;
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ border: 2px solid #1a1a1a;
72
+ animation: pulse 2s infinite;
73
+ }
74
+
75
+ .nextpy-debug-badge.nextpy-debug-warning {
76
+ background: #ffaa00;
77
+ }
78
+
79
+ .nextpy-debug-badge.nextpy-debug-error {
80
+ background: #ff4444;
81
+ }
82
+
83
+ @keyframes pulse {
84
+ 0% { transform: scale(1); }
85
+ 50% { transform: scale(1.1); }
86
+ 100% { transform: scale(1); }
87
+ }
88
+
89
+ /* Debug panel */
90
+ .nextpy-debug-panel {
91
+ position: fixed;
92
+ bottom: 80px;
93
+ right: 20px;
94
+ width: 400px;
95
+ max-height: 600px;
96
+ background: #1a1a1a;
97
+ border: 1px solid #333;
98
+ border-radius: 8px;
99
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
100
+ overflow: hidden;
101
+ pointer-events: all;
102
+ font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
103
+ font-size: 12px;
104
+ color: #fff;
105
+ display: none;
106
+ }
107
+
108
+ /* Debug panel header */
109
+ .nextpy-debug-header {
110
+ background: #2a2a2a;
111
+ padding: 12px 16px;
112
+ border-bottom: 1px solid #333;
113
+ display: flex;
114
+ justify-content: space-between;
115
+ align-items: center;
116
+ }
117
+
118
+ .nextpy-debug-title {
119
+ display: flex;
120
+ align-items: center;
121
+ gap: 8px;
122
+ }
123
+
124
+ .nextpy-debug-title h3 {
125
+ margin: 0;
126
+ font-size: 14px;
127
+ font-weight: 600;
128
+ color: #fff;
129
+ }
130
+
131
+ .nextpy-debug-version {
132
+ background: #0070f3;
133
+ color: white;
134
+ padding: 2px 6px;
135
+ border-radius: 4px;
136
+ font-size: 10px;
137
+ font-weight: 500;
138
+ }
139
+
140
+ .nextpy-debug-close {
141
+ background: none;
142
+ border: none;
143
+ color: #999;
144
+ font-size: 18px;
145
+ cursor: pointer;
146
+ padding: 0;
147
+ width: 24px;
148
+ height: 24px;
149
+ display: flex;
150
+ align-items: center;
151
+ justify-content: center;
152
+ border-radius: 4px;
153
+ transition: all 0.2s ease;
154
+ }
155
+
156
+ .nextpy-debug-close:hover {
157
+ background: #ff4444;
158
+ color: white;
159
+ }
160
+
161
+ /* Debug sections */
162
+ .nextpy-debug-section {
163
+ border-bottom: 1px solid #333;
164
+ padding: 12px 16px;
165
+ }
166
+
167
+ .nextpy-debug-section:last-child {
168
+ border-bottom: none;
169
+ }
170
+
171
+ .nextpy-debug-section h4 {
172
+ margin: 0 0 8px 0;
173
+ font-size: 12px;
174
+ font-weight: 600;
175
+ color: #ccc;
176
+ text-transform: uppercase;
177
+ letter-spacing: 0.5px;
178
+ }
179
+
180
+ /* Debug info rows */
181
+ .nextpy-debug-info,
182
+ .nextpy-debug-metrics {
183
+ display: flex;
184
+ flex-direction: column;
185
+ gap: 4px;
186
+ }
187
+
188
+ .nextpy-debug-row {
189
+ display: flex;
190
+ justify-content: space-between;
191
+ align-items: center;
192
+ padding: 2px 0;
193
+ }
194
+
195
+ .nextpy-debug-label {
196
+ color: #999;
197
+ font-size: 11px;
198
+ }
199
+
200
+ .nextpy-debug-value {
201
+ color: #fff;
202
+ font-weight: 500;
203
+ font-size: 11px;
204
+ }
205
+
206
+ /* Page props */
207
+ .nextpy-debug-props {
208
+ background: #0a0a0a;
209
+ border: 1px solid #333;
210
+ border-radius: 4px;
211
+ padding: 8px;
212
+ max-height: 120px;
213
+ overflow-y: auto;
214
+ }
215
+
216
+ .nextpy-debug-code {
217
+ margin: 0;
218
+ font-size: 10px;
219
+ line-height: 1.4;
220
+ color: #ccc;
221
+ white-space: pre-wrap;
222
+ word-break: break-all;
223
+ }
224
+
225
+ /* Errors and warnings */
226
+ .nextpy-debug-errors,
227
+ .nextpy-debug-warnings {
228
+ display: flex;
229
+ flex-direction: column;
230
+ gap: 4px;
231
+ }
232
+
233
+ .nextpy-debug-error-item,
234
+ .nextpy-debug-warning-item {
235
+ display: flex;
236
+ align-items: center;
237
+ gap: 8px;
238
+ padding: 4px 8px;
239
+ border-radius: 4px;
240
+ font-size: 11px;
241
+ }
242
+
243
+ .nextpy-debug-error-item {
244
+ background: rgba(255, 68, 68, 0.2);
245
+ border: 1px solid rgba(255, 68, 68, 0.3);
246
+ color: #ff6b6b;
247
+ }
248
+
249
+ .nextpy-debug-warning-item {
250
+ background: rgba(255, 170, 0, 0.2);
251
+ border: 1px solid rgba(255, 170, 0, 0.3);
252
+ color: #ffa500;
253
+ }
254
+
255
+ .nextpy-debug-error-count,
256
+ .nextpy-debug-warning-count {
257
+ background: rgba(255, 255, 255, 0.2);
258
+ padding: 2px 6px;
259
+ border-radius: 12px;
260
+ font-weight: bold;
261
+ font-size: 10px;
262
+ }
263
+
264
+ /* Debug tools */
265
+ .nextpy-debug-tools {
266
+ display: grid;
267
+ grid-template-columns: 1fr 1fr;
268
+ gap: 8px;
269
+ }
270
+
271
+ .nextpy-debug-tool-btn {
272
+ background: #2a2a2a;
273
+ border: 1px solid #444;
274
+ color: #ccc;
275
+ padding: 8px 12px;
276
+ border-radius: 4px;
277
+ font-size: 10px;
278
+ cursor: pointer;
279
+ transition: all 0.2s ease;
280
+ font-family: inherit;
281
+ }
282
+
283
+ .nextpy-debug-tool-btn:hover {
284
+ background: #3a3a3a;
285
+ border-color: #666;
286
+ color: #fff;
287
+ }
288
+
289
+ .nextpy-debug-tool-btn.active {
290
+ background: #0070f3;
291
+ border-color: #0051cc;
292
+ color: white;
293
+ }
294
+
295
+ /* Debug logs */
296
+ .nextpy-debug-logs {
297
+ max-height: 200px;
298
+ overflow-y: auto;
299
+ display: flex;
300
+ flex-direction: column;
301
+ gap: 2px;
302
+ }
303
+
304
+ .nextpy-debug-log-item {
305
+ display: flex;
306
+ gap: 8px;
307
+ padding: 4px 8px;
308
+ border-radius: 2px;
309
+ font-size: 10px;
310
+ line-height: 1.3;
311
+ align-items: flex-start;
312
+ }
313
+
314
+ .nextpy-debug-log-info {
315
+ background: rgba(0, 112, 243, 0.1);
316
+ border-left: 3px solid #0070f3;
317
+ }
318
+
319
+ .nextpy-debug-log-warning {
320
+ background: rgba(255, 170, 0, 0.1);
321
+ border-left: 3px solid #ffa500;
322
+ }
323
+
324
+ .nextpy-debug-log-error {
325
+ background: rgba(255, 68, 68, 0.1);
326
+ border-left: 3px solid #ff4444;
327
+ }
328
+
329
+ .nextpy-debug-log-time {
330
+ color: #666;
331
+ font-family: monospace;
332
+ white-space: nowrap;
333
+ min-width: 60px;
334
+ }
335
+
336
+ .nextpy-debug-log-level {
337
+ font-weight: bold;
338
+ min-width: 40px;
339
+ }
340
+
341
+ .nextpy-debug-log-message {
342
+ color: #ccc;
343
+ flex: 1;
344
+ word-break: break-word;
345
+ }
346
+
347
+ /* Component boundaries overlay */
348
+ .nextpy-debug-boundaries {
349
+ position: fixed;
350
+ top: 0;
351
+ left: 0;
352
+ width: 100%;
353
+ height: 100%;
354
+ pointer-events: none;
355
+ z-index: 9998;
356
+ display: none;
357
+ }
358
+
359
+ .nextpy-debug-boundary {
360
+ position: absolute;
361
+ border: 2px dashed #0070f3;
362
+ background: rgba(0, 112, 243, 0.1);
363
+ pointer-events: none;
364
+ }
365
+
366
+ .nextpy-debug-boundary-label {
367
+ position: absolute;
368
+ top: -20px;
369
+ left: 0;
370
+ background: #0070f3;
371
+ color: white;
372
+ padding: 2px 6px;
373
+ border-radius: 2px;
374
+ font-size: 10px;
375
+ font-weight: bold;
376
+ }
377
+
378
+ /* Re-render highlights */
379
+ .nextpy-debug-rerenders {
380
+ position: fixed;
381
+ top: 0;
382
+ left: 0;
383
+ width: 100%;
384
+ height: 100%;
385
+ pointer-events: none;
386
+ z-index: 9997;
387
+ display: none;
388
+ }
389
+
390
+ .nextpy-debug-rerender {
391
+ position: absolute;
392
+ border: 2px solid #ffa500;
393
+ background: rgba(255, 170, 0, 0.2);
394
+ pointer-events: none;
395
+ }
396
+
397
+ .nextpy-debug-rerender-pulse {
398
+ position: absolute;
399
+ top: -2px;
400
+ left: -2px;
401
+ right: -2px;
402
+ bottom: -2px;
403
+ border: 2px solid #ffa500;
404
+ animation: rerender-pulse 1s ease-out;
405
+ }
406
+
407
+ @keyframes rerender-pulse {
408
+ 0% {
409
+ opacity: 1;
410
+ transform: scale(1);
411
+ }
412
+ 100% {
413
+ opacity: 0;
414
+ transform: scale(1.5);
415
+ }
416
+ }
417
+
418
+ /* Scrollbar styling */
419
+ .nextpy-debug-logs::-webkit-scrollbar,
420
+ .nextpy-debug-props::-webkit-scrollbar {
421
+ width: 6px;
422
+ }
423
+
424
+ .nextpy-debug-logs::-webkit-scrollbar-track,
425
+ .nextpy-debug-props::-webkit-scrollbar-track {
426
+ background: #0a0a0a;
427
+ }
428
+
429
+ .nextpy-debug-logs::-webkit-scrollbar-thumb,
430
+ .nextpy-debug-props::-webkit-scrollbar-thumb {
431
+ background: #444;
432
+ border-radius: 3px;
433
+ }
434
+
435
+ .nextpy-debug-logs::-webkit-scrollbar-thumb:hover,
436
+ .nextpy-debug-props::-webkit-scrollbar-thumb:hover {
437
+ background: #666;
438
+ }
439
+
440
+ /* Responsive design */
441
+ @media (max-width: 480px) {
442
+ .nextpy-debug-panel {
443
+ width: calc(100vw - 40px);
444
+ right: 20px;
445
+ left: 20px;
446
+ max-height: 70vh;
447
+ }
448
+
449
+ .nextpy-debug-tools {
450
+ grid-template-columns: 1fr;
451
+ }
452
+ }
453
+
454
+ /* Dark mode variations */
455
+ @media (prefers-color-scheme: dark) {
456
+ .nextpy-debug-icon {
457
+ background: #0a0a0a;
458
+ border-color: #333;
459
+ }
460
+
461
+ .nextpy-debug-panel {
462
+ background: #0a0a0a;
463
+ border-color: #333;
464
+ }
465
+
466
+ .nextpy-debug-header {
467
+ background: #1a1a1a;
468
+ border-color: #333;
469
+ }
470
+ }