nexus-framework 0.4.1__tar.gz → 0.4.2__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 (235) hide show
  1. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/PKG-INFO +1 -1
  2. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/pyproject.toml +1 -1
  3. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/__init__.py +1 -1
  4. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/commands/new_command.py +47 -9
  5. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/connection.py +22 -3
  6. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/schema/blueprint.py +42 -5
  7. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/studio/manager.py +1 -1
  8. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/porter/converters/laravel.py +335 -64
  9. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/starters/api.py +6 -6
  10. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/starters/inertia.py +2 -2
  11. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/starters/standard.py +430 -65
  12. nexus_framework-0.4.2/src/nexus/starters/web.py +716 -0
  13. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus_framework.egg-info/PKG-INFO +1 -1
  14. nexus_framework-0.4.1/src/nexus/starters/web.py +0 -400
  15. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/README.md +0 -0
  16. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/setup.cfg +0 -0
  17. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/application.py +0 -0
  18. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/__init__.py +0 -0
  19. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/access/gate.py +0 -0
  20. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/auth_service_provider.py +0 -0
  21. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/authenticatable.py +0 -0
  22. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/guard.py +0 -0
  23. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/hashing.py +0 -0
  24. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/manager.py +0 -0
  25. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/middleware.py +0 -0
  26. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/sanctum/__init__.py +0 -0
  27. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/sanctum/guard.py +0 -0
  28. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/sanctum/has_api_tokens.py +0 -0
  29. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/sanctum/middleware.py +0 -0
  30. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/sanctum/migration.py +0 -0
  31. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/sanctum/new_access_token.py +0 -0
  32. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/sanctum/personal_access_token.py +0 -0
  33. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/auth/user_provider.py +0 -0
  34. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/cache/__init__.py +0 -0
  35. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/cache/cache_service_provider.py +0 -0
  36. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/cache/driver.py +0 -0
  37. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/cache/manager.py +0 -0
  38. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/cache/store.py +0 -0
  39. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/config/__init__.py +0 -0
  40. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/config/repository.py +0 -0
  41. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/__init__.py +0 -0
  42. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/cli.py +0 -0
  43. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/command.py +0 -0
  44. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/commands/__init__.py +0 -0
  45. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/commands/clear.py +0 -0
  46. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/commands/config.py +0 -0
  47. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/commands/database.py +0 -0
  48. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/commands/db_reverse.py +0 -0
  49. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/commands/install_tools.py +0 -0
  50. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/commands/key_generate.py +0 -0
  51. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/commands/make.py +0 -0
  52. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/commands/queue.py +0 -0
  53. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/commands/route_list.py +0 -0
  54. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/commands/schedule.py +0 -0
  55. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/commands/serve.py +0 -0
  56. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/commands/starter.py +0 -0
  57. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/commands/tinker.py +0 -0
  58. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/console_service_provider.py +0 -0
  59. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/generators/__init__.py +0 -0
  60. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/generators/stubs.py +0 -0
  61. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/console/kernel.py +0 -0
  62. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/container/__init__.py +0 -0
  63. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/container/container.py +0 -0
  64. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/container/exceptions.py +0 -0
  65. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/__init__.py +0 -0
  66. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/database_service_provider.py +0 -0
  67. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/factory.py +0 -0
  68. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/migrations/__init__.py +0 -0
  69. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/migrations/migration.py +0 -0
  70. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/migrations/migrator.py +0 -0
  71. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/models/__init__.py +0 -0
  72. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/models/exceptions.py +0 -0
  73. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/models/model.py +0 -0
  74. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/models/relations/__init__.py +0 -0
  75. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/models/relations/base.py +0 -0
  76. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/models/relations/belongs_to.py +0 -0
  77. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/models/relations/belongs_to_many.py +0 -0
  78. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/models/relations/has_many.py +0 -0
  79. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/models/relations/has_one.py +0 -0
  80. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/models/soft_deletes.py +0 -0
  81. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/query/builder.py +0 -0
  82. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/schema/__init__.py +0 -0
  83. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/schema/schema.py +0 -0
  84. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/seeder.py +0 -0
  85. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/database/studio/__init__.py +0 -0
  86. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/events/__init__.py +0 -0
  87. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/events/dispatcher.py +0 -0
  88. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/events/event_service_provider.py +0 -0
  89. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/exceptions/__init__.py +0 -0
  90. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/exceptions/exception_service_provider.py +0 -0
  91. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/exceptions/handler.py +0 -0
  92. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/__init__.py +0 -0
  93. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/app.py +0 -0
  94. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/artisan.py +0 -0
  95. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/auth.py +0 -0
  96. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/cache.py +0 -0
  97. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/config.py +0 -0
  98. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/date.py +0 -0
  99. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/db.py +0 -0
  100. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/event.py +0 -0
  101. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/facade.py +0 -0
  102. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/gate.py +0 -0
  103. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/hash.py +0 -0
  104. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/inertia.py +0 -0
  105. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/log.py +0 -0
  106. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/mail.py +0 -0
  107. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/notification.py +0 -0
  108. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/queue.py +0 -0
  109. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/rate_limiter.py +0 -0
  110. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/request.py +0 -0
  111. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/route.py +0 -0
  112. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/schedule.py +0 -0
  113. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/schema.py +0 -0
  114. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/session.py +0 -0
  115. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/storage.py +0 -0
  116. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/telescope.py +0 -0
  117. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/url.py +0 -0
  118. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/validator.py +0 -0
  119. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/facades/view.py +0 -0
  120. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/filesystem/__init__.py +0 -0
  121. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/filesystem/driver.py +0 -0
  122. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/filesystem/filesystem_service_provider.py +0 -0
  123. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/filesystem/manager.py +0 -0
  124. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/foundation/__init__.py +0 -0
  125. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/foundation/application.py +0 -0
  126. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/foundation/provider.py +0 -0
  127. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/foundation/runner.py +0 -0
  128. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/foundation/service_provider.py +0 -0
  129. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/http/__init__.py +0 -0
  130. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/http/exceptions.py +0 -0
  131. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/http/middleware.py +0 -0
  132. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/http/request.py +0 -0
  133. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/http/requests/__init__.py +0 -0
  134. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/http/requests/form_request.py +0 -0
  135. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/http/resources/__init__.py +0 -0
  136. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/http/resources/json_resource.py +0 -0
  137. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/http/resources/resource_collection.py +0 -0
  138. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/http/response.py +0 -0
  139. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/http/uploaded_file.py +0 -0
  140. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/inertia/__init__.py +0 -0
  141. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/inertia/helpers.py +0 -0
  142. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/inertia/inertia.py +0 -0
  143. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/inertia/inertia_service_provider.py +0 -0
  144. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/inertia/lazy.py +0 -0
  145. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/inertia/middleware.py +0 -0
  146. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/inertia/response.py +0 -0
  147. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/logging/__init__.py +0 -0
  148. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/logging/logging_service_provider.py +0 -0
  149. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/logging/manager.py +0 -0
  150. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/mail/__init__.py +0 -0
  151. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/mail/mail_service_provider.py +0 -0
  152. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/mail/mailable.py +0 -0
  153. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/mail/manager.py +0 -0
  154. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/mail/transport.py +0 -0
  155. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/notifications/__init__.py +0 -0
  156. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/notifications/manager.py +0 -0
  157. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/notifications/notification.py +0 -0
  158. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/notifications/notification_service_provider.py +0 -0
  159. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/porter/__init__.py +0 -0
  160. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/porter/converters/base.py +0 -0
  161. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/porter/converters/django.py +0 -0
  162. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/porter/converters/flask.py +0 -0
  163. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/porter/converters/reverse.py +0 -0
  164. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/porter/detector.py +0 -0
  165. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/porter/manager.py +0 -0
  166. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/porter/porter_service_provider.py +0 -0
  167. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/py.typed +0 -0
  168. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/queue/__init__.py +0 -0
  169. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/queue/driver.py +0 -0
  170. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/queue/job.py +0 -0
  171. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/queue/manager.py +0 -0
  172. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/queue/queue_service_provider.py +0 -0
  173. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/queue/worker.py +0 -0
  174. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/routing/__init__.py +0 -0
  175. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/routing/limiter.py +0 -0
  176. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/routing/route.py +0 -0
  177. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/routing/router.py +0 -0
  178. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/routing/throttle.py +0 -0
  179. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/routing/url.py +0 -0
  180. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/schedule/__init__.py +0 -0
  181. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/schedule/event.py +0 -0
  182. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/schedule/schedule.py +0 -0
  183. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/schedule/schedule_service_provider.py +0 -0
  184. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/security/__init__.py +0 -0
  185. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/security/cors.py +0 -0
  186. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/security/csrf.py +0 -0
  187. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/security/headers.py +0 -0
  188. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/session/__init__.py +0 -0
  189. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/session/driver.py +0 -0
  190. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/session/manager.py +0 -0
  191. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/session/middleware.py +0 -0
  192. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/session/session.py +0 -0
  193. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/session/session_service_provider.py +0 -0
  194. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/starters/__init__.py +0 -0
  195. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/starters/openapi.py +0 -0
  196. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/support/__init__.py +0 -0
  197. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/support/arr.py +0 -0
  198. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/support/carbon.py +0 -0
  199. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/support/collection.py +0 -0
  200. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/support/dependencies.py +0 -0
  201. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/support/env.py +0 -0
  202. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/support/helpers.py +0 -0
  203. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/support/str.py +0 -0
  204. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/telescope/__init__.py +0 -0
  205. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/telescope/debugbar.py +0 -0
  206. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/telescope/entry.py +0 -0
  207. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/telescope/middleware.py +0 -0
  208. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/telescope/telescope.py +0 -0
  209. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/telescope/telescope_service_provider.py +0 -0
  210. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/testing/__init__.py +0 -0
  211. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/testing/client.py +0 -0
  212. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/testing/database.py +0 -0
  213. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/testing/fakes/__init__.py +0 -0
  214. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/testing/fakes/event_fake.py +0 -0
  215. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/testing/fakes/log_fake.py +0 -0
  216. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/testing/fakes/mail_fake.py +0 -0
  217. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/testing/fakes/notification_fake.py +0 -0
  218. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/testing/fakes/queue_fake.py +0 -0
  219. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/testing/fakes/storage_fake.py +0 -0
  220. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/testing/response.py +0 -0
  221. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/testing/test_case.py +0 -0
  222. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/testing/time.py +0 -0
  223. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/validation/__init__.py +0 -0
  224. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/validation/rule.py +0 -0
  225. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/validation/validation_service_provider.py +0 -0
  226. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/validation/validator.py +0 -0
  227. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/view/__init__.py +0 -0
  228. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/view/compiler.py +0 -0
  229. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/view/factory.py +0 -0
  230. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus/view/view_service_provider.py +0 -0
  231. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus_framework.egg-info/SOURCES.txt +0 -0
  232. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus_framework.egg-info/dependency_links.txt +0 -0
  233. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus_framework.egg-info/entry_points.txt +0 -0
  234. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus_framework.egg-info/requires.txt +0 -0
  235. {nexus_framework-0.4.1 → nexus_framework-0.4.2}/src/nexus_framework.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nexus-framework
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: An expressive, batteries-included asynchronous web framework for Python inspired by Laravel.
5
5
  Author-email: Nexus Core Team <core@nexus-framework.org>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "nexus-framework"
7
- version = "0.4.1"
7
+ version = "0.4.2"
8
8
  description = "An expressive, batteries-included asynchronous web framework for Python inspired by Laravel."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -1,3 +1,3 @@
1
1
  """Nexus Framework - The Elegant Full-Stack Python Web Framework."""
2
2
 
3
- __version__ = "0.4.1"
3
+ __version__ = "0.4.2"
@@ -54,6 +54,11 @@ def register_new_command(cli: typer.Typer, app: Application) -> None:
54
54
  name: str | None = typer.Argument(None, help="The project name or directory (use '.' for current directory)"),
55
55
  starter: str | None = typer.Option(None, "--starter", "-s", help="Starter kit template ('standard', 'api', 'web', 'inertia')"),
56
56
  database: str | None = typer.Option(None, "--database", "-d", help="Database driver ('sqlite', 'pgsql', 'mysql')"),
57
+ db_host: str | None = typer.Option(None, "--db-host", help="Database server hostname"),
58
+ db_port: int | None = typer.Option(None, "--db-port", help="Database server port"),
59
+ db_name: str | None = typer.Option(None, "--db-name", help="Database schema name"),
60
+ db_user: str | None = typer.Option(None, "--db-user", help="Database username"),
61
+ db_password: str | None = typer.Option(None, "--db-password", help="Database password"),
57
62
  force: bool = typer.Option(False, "--force", "-f", help="Overwrite existing files in target directory"),
58
63
  git: bool | None = typer.Option(None, "--git/--no-git", help="Initialize a fresh Git repository"),
59
64
  install: bool | None = typer.Option(None, "--install/--no-install", help="Automatically install Python and NPM dependencies"),
@@ -106,12 +111,31 @@ def register_new_command(cli: typer.Typer, app: Application) -> None:
106
111
  raw_db = Prompt.ask("Choose database engine", choices=list(db_map.keys()), default="1")
107
112
  db_choice = db_map[raw_db]
108
113
 
109
- # 4. Git repository prompt
114
+ # 4. Database configuration prompts (if non-sqlite)
115
+ clean_app_name = "".join(c if c.isalnum() else "_" for c in (name or "nexus").lower()).strip("_") or "nexus"
116
+ default_port = 3306 if "mysql" in db_choice else 5432
117
+ default_user = "root" if "mysql" in db_choice else "postgres"
118
+
119
+ db_host = db_host or "127.0.0.1"
120
+ db_port = db_port or default_port
121
+ db_name = db_name or clean_app_name
122
+ db_user = db_user or default_user
123
+ db_password = db_password if db_password is not None else ""
124
+
125
+ if is_interactive and db_choice != "sqlite":
126
+ console.print(f"\n[bold cyan]Configure {db_choice.upper()} Database Credentials:[/bold cyan]")
127
+ db_host = Prompt.ask(" Database Host", default=db_host)
128
+ db_port = int(Prompt.ask(" Database Port", default=str(db_port)))
129
+ db_name = Prompt.ask(" Database Name", default=db_name)
130
+ db_user = Prompt.ask(" Database Username", default=db_user)
131
+ db_password = Prompt.ask(" Database Password", password=True, default=db_password)
132
+
133
+ # 5. Git repository prompt
110
134
  use_git = git if git is not None else True
111
135
  if is_interactive and git is None:
112
136
  use_git = Confirm.ask("\nInitialize a fresh Git repository?", default=True)
113
137
 
114
- # 5. Dependency installation prompt
138
+ # 6. Dependency installation prompt
115
139
  should_install = install if install is not None else True
116
140
  if is_interactive and install is None:
117
141
  should_install = Confirm.ask("Automatically install Python & NPM dependencies now?", default=True)
@@ -168,14 +192,28 @@ def register_new_command(cli: typer.Typer, app: Application) -> None:
168
192
  app_key, _ = set_app_key_in_env(target)
169
193
  console.print(f"[bold green]Application key set successfully:[/bold green] [cyan]{app_key}[/cyan]")
170
194
 
171
- # Configure selected database in .env if not sqlite
195
+ # Configure selected database in .env and .env.example if not sqlite
172
196
  if db_choice != "sqlite":
173
- env_file = target / ".env"
174
- if env_file.exists():
175
- txt = env_file.read_text(encoding="utf-8")
176
- txt = txt.replace("DB_CONNECTION=sqlite", f"DB_CONNECTION={db_choice}")
177
- env_file.write_text(txt, encoding="utf-8")
178
- console.print(f"[bold green]✓[/bold green] Database configured in .env: [cyan]{db_choice}[/cyan]")
197
+ new_db_block = (
198
+ f"DB_CONNECTION={db_choice}\n"
199
+ f"DB_HOST={db_host}\n"
200
+ f"DB_PORT={db_port}\n"
201
+ f"DB_DATABASE={db_name}\n"
202
+ f"DB_USERNAME={db_user}\n"
203
+ f"DB_PASSWORD={db_password}"
204
+ )
205
+ for env_target in [target / ".env", target / ".env.example"]:
206
+ if env_target.exists():
207
+ txt = env_target.read_text(encoding="utf-8")
208
+ old_sqlite_block = "DB_CONNECTION=sqlite\nDB_DATABASE=storage/database.sqlite"
209
+ if old_sqlite_block in txt:
210
+ txt = txt.replace(old_sqlite_block, new_db_block)
211
+ else:
212
+ txt = txt.replace("DB_CONNECTION=sqlite", f"DB_CONNECTION={db_choice}")
213
+ txt = txt.replace("DB_DATABASE=storage/database.sqlite", f"DB_DATABASE={db_name}")
214
+ txt += f"\nDB_HOST={db_host}\nDB_PORT={db_port}\nDB_USERNAME={db_user}\nDB_PASSWORD={db_password}\n"
215
+ env_target.write_text(txt, encoding="utf-8")
216
+ console.print(f"[bold green]✓[/bold green] Database configured in .env: [cyan]{db_choice}://{db_user}@{db_host}:{db_port}/{db_name}[/cyan]")
179
217
 
180
218
  # Auto-install Python and NPM dependencies if requested
181
219
  if should_install:
@@ -66,31 +66,50 @@ class DatabaseManager:
66
66
  )
67
67
 
68
68
  elif driver in ("mysql", "mariadb"):
69
+ from urllib.parse import quote_plus
70
+
69
71
  from nexus.support.dependencies import ensure_driver
72
+
70
73
  ensure_driver("mysql")
71
74
  host = db_config.get("host") or env("DB_HOST", "127.0.0.1")
72
75
  port = db_config.get("port") or env("DB_PORT", 3306)
73
76
  database = db_config.get("database") or env("DB_DATABASE", "nexus")
74
77
  username = db_config.get("username") or env("DB_USERNAME", "root")
75
78
  password = db_config.get("password") or env("DB_PASSWORD", "")
76
- url = f"mysql+pymysql://{username}:{password}@{host}:{port}/{database}"
79
+
80
+ safe_user = quote_plus(str(username))
81
+ safe_pass = quote_plus(str(password))
82
+ url = f"mysql+pymysql://{safe_user}:{safe_pass}@{host}:{port}/{database}?charset=utf8mb4"
77
83
  try:
78
84
  return create_engine(url, pool_pre_ping=True)
79
85
  except Exception as e:
80
- if "pymysql" in str(e).lower() or "module" in str(e).lower():
86
+ err_str = str(e).lower()
87
+ if "pymysql" in err_str or "module" in err_str:
81
88
  ensure_driver("mysql", silent=False)
82
89
  return create_engine(url, pool_pre_ping=True)
90
+ if "auth_gssapi_client" in err_str:
91
+ raise RuntimeError(
92
+ f"Database connection error: MariaDB/MySQL server requested 'auth_gssapi_client'. "
93
+ f"This happens when connecting as '{username}' with an invalid/empty password or when MariaDB GSSAPI plugin is active. "
94
+ f"Please check DB_USERNAME and DB_PASSWORD in your .env file."
95
+ ) from e
83
96
  raise
84
97
 
85
98
  elif driver in ("pgsql", "postgres", "postgresql"):
99
+ from urllib.parse import quote_plus
100
+
86
101
  from nexus.support.dependencies import ensure_driver
102
+
87
103
  ensure_driver("postgresql")
88
104
  host = db_config.get("host") or env("DB_HOST", "127.0.0.1")
89
105
  port = db_config.get("port") or env("DB_PORT", 5432)
90
106
  database = db_config.get("database") or env("DB_DATABASE", "nexus")
91
107
  username = db_config.get("username") or env("DB_USERNAME", "postgres")
92
108
  password = db_config.get("password") or env("DB_PASSWORD", "")
93
- url = f"postgresql://{username}:{password}@{host}:{port}/{database}"
109
+
110
+ safe_user = quote_plus(str(username))
111
+ safe_pass = quote_plus(str(password))
112
+ url = f"postgresql://{safe_user}:{safe_pass}@{host}:{port}/{database}"
94
113
  try:
95
114
  return create_engine(url, pool_pre_ping=True)
96
115
  except Exception as e:
@@ -33,9 +33,11 @@ class ColumnDefinition:
33
33
  self._has_default = True
34
34
  return self
35
35
 
36
- def unique(self) -> Self:
36
+ def unique(self, name: str | None = None) -> Self:
37
37
  """Mark column as unique."""
38
38
  self._unique = True
39
+ if name:
40
+ self.attributes["unique_name"] = name
39
41
  return self
40
42
 
41
43
  def primary(self) -> Self:
@@ -43,9 +45,11 @@ class ColumnDefinition:
43
45
  self._primary = True
44
46
  return self
45
47
 
46
- def index(self) -> Self:
48
+ def index(self, name: str | None = None) -> Self:
47
49
  """Create an index on the column."""
48
50
  self._index = True
51
+ if name:
52
+ self.attributes["index_name"] = name
49
53
  return self
50
54
 
51
55
  def constrained(self, table: str | None = None, column: str = "id") -> Self:
@@ -101,6 +105,18 @@ class Blueprint:
101
105
  self.columns.append(col)
102
106
  return col
103
107
 
108
+ def small_integer(self, name: str) -> ColumnDefinition:
109
+ """Add a small integer column."""
110
+ col = ColumnDefinition(name, "small_integer")
111
+ self.columns.append(col)
112
+ return col
113
+
114
+ def tiny_integer(self, name: str) -> ColumnDefinition:
115
+ """Add a tiny integer column."""
116
+ col = ColumnDefinition(name, "tiny_integer")
117
+ self.columns.append(col)
118
+ return col
119
+
104
120
  def big_integer(self, name: str) -> ColumnDefinition:
105
121
  """Add a big integer column."""
106
122
  col = ColumnDefinition(name, "big_integer")
@@ -154,6 +170,18 @@ class Blueprint:
154
170
  """Drop columns from the table."""
155
171
  self.commands.append({"type": "drop_column", "columns": list(names)})
156
172
 
173
+ def index(self, columns: str | list[str], name: str | None = None) -> None:
174
+ """Add a standalone or composite index."""
175
+ cols = [columns] if isinstance(columns, str) else list(columns)
176
+ idx_name = name or f"idx_{self.table}_{'_'.join(cols)}"
177
+ self.commands.append({"type": "index", "columns": cols, "name": idx_name})
178
+
179
+ def unique(self, columns: str | list[str], name: str | None = None) -> None:
180
+ """Add a standalone or composite unique constraint/index."""
181
+ cols = [columns] if isinstance(columns, str) else list(columns)
182
+ uq_name = name or f"uq_{self.table}_{'_'.join(cols)}"
183
+ self.commands.append({"type": "unique", "columns": cols, "name": uq_name})
184
+
157
185
  def to_sql(self, driver: str = "sqlite") -> list[str]:
158
186
  """Compile the blueprint columns and commands to SQL DDL statements."""
159
187
  statements: list[str] = []
@@ -197,12 +225,21 @@ class Blueprint:
197
225
  create_table = f"CREATE TABLE IF NOT EXISTS {self.table} (\n " + ",\n ".join(column_clauses) + "\n)"
198
226
  statements.append(create_table)
199
227
 
200
- # Handle indexes
228
+ # Handle column indexes
201
229
  for col in self.columns:
202
230
  if col._index and not col._primary and not col._unique:
203
- idx_name = f"idx_{self.table}_{col.name}"
231
+ idx_name = col.attributes.get("index_name") or f"idx_{self.table}_{col.name}"
204
232
  statements.append(f"CREATE INDEX IF NOT EXISTS {idx_name} ON {self.table} ({col.name})")
205
233
 
234
+ # Handle explicit commands (composite indexes and unique constraints)
235
+ for cmd in self.commands:
236
+ if cmd["type"] == "index":
237
+ cols_str = ", ".join(cmd["columns"])
238
+ statements.append(f"CREATE INDEX IF NOT EXISTS {cmd['name']} ON {self.table} ({cols_str})")
239
+ elif cmd["type"] == "unique":
240
+ cols_str = ", ".join(cmd["columns"])
241
+ statements.append(f"CREATE UNIQUE INDEX IF NOT EXISTS {cmd['name']} ON {self.table} ({cols_str})")
242
+
206
243
  return statements
207
244
 
208
245
  def _map_type(self, col: ColumnDefinition, driver: str) -> str:
@@ -212,7 +249,7 @@ class Blueprint:
212
249
  return f"VARCHAR({col.attributes.get('length', 255)})"
213
250
  elif t == "text":
214
251
  return "TEXT"
215
- elif t == "integer":
252
+ elif t in ("integer", "small_integer", "tiny_integer"):
216
253
  return "INTEGER"
217
254
  elif t == "big_integer":
218
255
  return "BIGINT"
@@ -1524,7 +1524,7 @@ class DatabaseStudioManager:
1524
1524
 
1525
1525
  <!-- TAB 5: PORTER & REVERSE ENGINEERING -->
1526
1526
  <div x-show="activeTab === 'porter'" class="flex-1 overflow-y-auto p-6">
1527
- <div class="max-w-5xl mx-auto space-y-6">
1527
+ <div class="w-full space-y-6">
1528
1528
  <!-- Porter Sub-navigation Header -->
1529
1529
  <div class="bg-white border border-slate-200 rounded-xl p-5 shadow-xs">
1530
1530
  <div class="flex flex-wrap items-center justify-between gap-4 border-b border-slate-100 pb-4 mb-4">