nexus-framework 0.3.2__tar.gz → 0.4.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.
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/PKG-INFO +21 -1
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/pyproject.toml +25 -1
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/__init__.py +1 -1
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/cache/driver.py +12 -1
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/commands/db_reverse.py +6 -6
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/commands/install_tools.py +32 -4
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/connection.py +18 -2
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/migrations/migration.py +9 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/studio/manager.py +1003 -63
- nexus_framework-0.4.1/src/nexus/porter/__init__.py +15 -0
- nexus_framework-0.4.1/src/nexus/porter/converters/base.py +47 -0
- nexus_framework-0.4.1/src/nexus/porter/converters/django.py +259 -0
- nexus_framework-0.4.1/src/nexus/porter/converters/flask.py +235 -0
- nexus_framework-0.4.1/src/nexus/porter/converters/laravel.py +455 -0
- nexus_framework-0.4.1/src/nexus/porter/converters/reverse.py +279 -0
- nexus_framework-0.4.1/src/nexus/porter/detector.py +73 -0
- nexus_framework-0.4.1/src/nexus/porter/manager.py +97 -0
- nexus_framework-0.4.1/src/nexus/porter/porter_service_provider.py +15 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/routing/router.py +145 -1
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/starters/standard.py +2 -2
- nexus_framework-0.4.1/src/nexus/support/dependencies.py +88 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus_framework.egg-info/PKG-INFO +21 -1
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus_framework.egg-info/SOURCES.txt +10 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus_framework.egg-info/requires.txt +24 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/README.md +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/setup.cfg +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/application.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/access/gate.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/auth_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/authenticatable.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/guard.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/hashing.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/manager.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/middleware.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/sanctum/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/sanctum/guard.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/sanctum/has_api_tokens.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/sanctum/middleware.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/sanctum/migration.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/sanctum/new_access_token.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/sanctum/personal_access_token.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/auth/user_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/cache/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/cache/cache_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/cache/manager.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/cache/store.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/config/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/config/repository.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/cli.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/command.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/commands/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/commands/clear.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/commands/config.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/commands/database.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/commands/key_generate.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/commands/make.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/commands/new_command.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/commands/queue.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/commands/route_list.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/commands/schedule.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/commands/serve.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/commands/starter.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/commands/tinker.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/console_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/generators/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/generators/stubs.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/console/kernel.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/container/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/container/container.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/container/exceptions.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/database_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/factory.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/migrations/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/migrations/migrator.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/models/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/models/exceptions.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/models/model.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/models/relations/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/models/relations/base.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/models/relations/belongs_to.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/models/relations/belongs_to_many.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/models/relations/has_many.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/models/relations/has_one.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/models/soft_deletes.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/query/builder.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/schema/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/schema/blueprint.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/schema/schema.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/seeder.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/database/studio/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/events/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/events/dispatcher.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/events/event_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/exceptions/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/exceptions/exception_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/exceptions/handler.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/app.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/artisan.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/auth.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/cache.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/config.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/date.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/db.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/event.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/facade.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/gate.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/hash.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/inertia.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/log.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/mail.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/notification.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/queue.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/rate_limiter.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/request.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/route.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/schedule.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/schema.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/session.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/storage.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/telescope.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/url.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/validator.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/facades/view.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/filesystem/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/filesystem/driver.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/filesystem/filesystem_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/filesystem/manager.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/foundation/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/foundation/application.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/foundation/provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/foundation/runner.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/foundation/service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/http/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/http/exceptions.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/http/middleware.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/http/request.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/http/requests/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/http/requests/form_request.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/http/resources/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/http/resources/json_resource.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/http/resources/resource_collection.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/http/response.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/http/uploaded_file.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/inertia/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/inertia/helpers.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/inertia/inertia.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/inertia/inertia_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/inertia/lazy.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/inertia/middleware.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/inertia/response.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/logging/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/logging/logging_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/logging/manager.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/mail/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/mail/mail_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/mail/mailable.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/mail/manager.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/mail/transport.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/notifications/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/notifications/manager.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/notifications/notification.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/notifications/notification_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/py.typed +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/queue/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/queue/driver.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/queue/job.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/queue/manager.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/queue/queue_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/queue/worker.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/routing/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/routing/limiter.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/routing/route.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/routing/throttle.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/routing/url.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/schedule/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/schedule/event.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/schedule/schedule.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/schedule/schedule_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/security/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/security/cors.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/security/csrf.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/security/headers.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/session/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/session/driver.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/session/manager.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/session/middleware.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/session/session.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/session/session_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/starters/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/starters/api.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/starters/inertia.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/starters/openapi.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/starters/web.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/support/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/support/arr.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/support/carbon.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/support/collection.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/support/env.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/support/helpers.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/support/str.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/telescope/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/telescope/debugbar.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/telescope/entry.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/telescope/middleware.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/telescope/telescope.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/telescope/telescope_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/testing/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/testing/client.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/testing/database.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/testing/fakes/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/testing/fakes/event_fake.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/testing/fakes/log_fake.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/testing/fakes/mail_fake.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/testing/fakes/notification_fake.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/testing/fakes/queue_fake.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/testing/fakes/storage_fake.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/testing/response.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/testing/test_case.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/testing/time.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/validation/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/validation/rule.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/validation/validation_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/validation/validator.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/view/__init__.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/view/compiler.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/view/factory.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus/view/view_service_provider.py +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus_framework.egg-info/dependency_links.txt +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/src/nexus_framework.egg-info/entry_points.txt +0 -0
- {nexus_framework-0.3.2 → nexus_framework-0.4.1}/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.
|
|
3
|
+
Version: 0.4.1
|
|
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
|
|
@@ -35,6 +35,26 @@ Requires-Dist: python-dotenv>=1.0.1
|
|
|
35
35
|
Requires-Dist: python-multipart>=0.0.9
|
|
36
36
|
Requires-Dist: anyio>=4.3.0
|
|
37
37
|
Requires-Dist: faker>=24.0.0
|
|
38
|
+
Requires-Dist: pymysql>=1.1.0
|
|
39
|
+
Requires-Dist: cryptography>=42.0.0
|
|
40
|
+
Requires-Dist: psycopg2-binary>=2.9.9
|
|
41
|
+
Requires-Dist: httpx>=0.27.0
|
|
42
|
+
Requires-Dist: redis>=5.0.0
|
|
43
|
+
Requires-Dist: bcrypt>=4.0.0
|
|
44
|
+
Provides-Extra: mysql
|
|
45
|
+
Requires-Dist: pymysql>=1.1.0; extra == "mysql"
|
|
46
|
+
Requires-Dist: cryptography>=42.0.0; extra == "mysql"
|
|
47
|
+
Provides-Extra: postgres
|
|
48
|
+
Requires-Dist: psycopg2-binary>=2.9.9; extra == "postgres"
|
|
49
|
+
Provides-Extra: redis
|
|
50
|
+
Requires-Dist: redis>=5.0.0; extra == "redis"
|
|
51
|
+
Provides-Extra: all
|
|
52
|
+
Requires-Dist: pymysql>=1.1.0; extra == "all"
|
|
53
|
+
Requires-Dist: cryptography>=42.0.0; extra == "all"
|
|
54
|
+
Requires-Dist: psycopg2-binary>=2.9.9; extra == "all"
|
|
55
|
+
Requires-Dist: redis>=5.0.0; extra == "all"
|
|
56
|
+
Requires-Dist: bcrypt>=4.0.0; extra == "all"
|
|
57
|
+
Requires-Dist: httpx>=0.27.0; extra == "all"
|
|
38
58
|
Provides-Extra: dev
|
|
39
59
|
Requires-Dist: pytest>=8.1.0; extra == "dev"
|
|
40
60
|
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "nexus-framework"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.4.1"
|
|
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"
|
|
@@ -52,6 +52,12 @@ dependencies = [
|
|
|
52
52
|
"python-multipart>=0.0.9",
|
|
53
53
|
"anyio>=4.3.0",
|
|
54
54
|
"faker>=24.0.0",
|
|
55
|
+
"pymysql>=1.1.0",
|
|
56
|
+
"cryptography>=42.0.0",
|
|
57
|
+
"psycopg2-binary>=2.9.9",
|
|
58
|
+
"httpx>=0.27.0",
|
|
59
|
+
"redis>=5.0.0",
|
|
60
|
+
"bcrypt>=4.0.0",
|
|
55
61
|
]
|
|
56
62
|
|
|
57
63
|
[project.urls]
|
|
@@ -61,6 +67,24 @@ Repository = "https://github.com/nexus-framework/nexus.git"
|
|
|
61
67
|
Issues = "https://github.com/nexus-framework/nexus/issues"
|
|
62
68
|
|
|
63
69
|
[project.optional-dependencies]
|
|
70
|
+
mysql = [
|
|
71
|
+
"pymysql>=1.1.0",
|
|
72
|
+
"cryptography>=42.0.0",
|
|
73
|
+
]
|
|
74
|
+
postgres = [
|
|
75
|
+
"psycopg2-binary>=2.9.9",
|
|
76
|
+
]
|
|
77
|
+
redis = [
|
|
78
|
+
"redis>=5.0.0",
|
|
79
|
+
]
|
|
80
|
+
all = [
|
|
81
|
+
"pymysql>=1.1.0",
|
|
82
|
+
"cryptography>=42.0.0",
|
|
83
|
+
"psycopg2-binary>=2.9.9",
|
|
84
|
+
"redis>=5.0.0",
|
|
85
|
+
"bcrypt>=4.0.0",
|
|
86
|
+
"httpx>=0.27.0",
|
|
87
|
+
]
|
|
64
88
|
dev = [
|
|
65
89
|
"pytest>=8.1.0",
|
|
66
90
|
"pytest-asyncio>=0.23.0",
|
|
@@ -193,7 +193,18 @@ class RedisCacheDriver(CacheDriver):
|
|
|
193
193
|
import redis # type: ignore[import-not-found]
|
|
194
194
|
self._client = redis.Redis(host=host, port=port, db=db, decode_responses=True)
|
|
195
195
|
self._client.ping()
|
|
196
|
-
except
|
|
196
|
+
except ImportError:
|
|
197
|
+
try:
|
|
198
|
+
from nexus.support.dependencies import ensure_driver
|
|
199
|
+
if ensure_driver("redis", silent=True):
|
|
200
|
+
import redis # type: ignore[import-not-found]
|
|
201
|
+
self._client = redis.Redis(host=host, port=port, db=db, decode_responses=True)
|
|
202
|
+
self._client.ping()
|
|
203
|
+
else:
|
|
204
|
+
self._client = None
|
|
205
|
+
except Exception: # noqa: BLE001
|
|
206
|
+
self._client = None
|
|
207
|
+
except (RuntimeError, ConnectionError, OSError):
|
|
197
208
|
self._client = None
|
|
198
209
|
|
|
199
210
|
def _prefixed(self, key: str) -> str:
|
|
@@ -194,22 +194,22 @@ def reverse_engineer_database(
|
|
|
194
194
|
|
|
195
195
|
from __future__ import annotations
|
|
196
196
|
|
|
197
|
-
from nexus.database.migrations
|
|
197
|
+
from nexus.database.migrations import Migration
|
|
198
198
|
from nexus.database.schema.blueprint import Blueprint
|
|
199
|
-
from nexus.
|
|
199
|
+
from nexus.facades.schema import Schema
|
|
200
200
|
|
|
201
201
|
|
|
202
202
|
class {class_name}(Migration):
|
|
203
203
|
"""Create {t_name} table schema."""
|
|
204
204
|
|
|
205
|
-
def up(self
|
|
205
|
+
def up(self) -> None:
|
|
206
206
|
def table_definition(table: Blueprint) -> None:
|
|
207
207
|
{schema_body}
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+
Schema.create("{t_name}", table_definition)
|
|
210
210
|
|
|
211
|
-
def down(self
|
|
212
|
-
|
|
211
|
+
def down(self) -> None:
|
|
212
|
+
Schema.drop_if_exists("{t_name}")
|
|
213
213
|
'''
|
|
214
214
|
target_mig_file.write_text(migration_code, encoding="utf-8")
|
|
215
215
|
generated_migrations.append(mig_filename)
|
|
@@ -10,12 +10,14 @@ Provides commands to install and publish optional tooling:
|
|
|
10
10
|
from __future__ import annotations
|
|
11
11
|
|
|
12
12
|
import os
|
|
13
|
+
import secrets
|
|
13
14
|
import webbrowser
|
|
14
15
|
from typing import TYPE_CHECKING
|
|
15
16
|
|
|
16
17
|
import typer
|
|
17
18
|
from rich.console import Console
|
|
18
19
|
from rich.panel import Panel
|
|
20
|
+
from rich.prompt import Prompt
|
|
19
21
|
|
|
20
22
|
if TYPE_CHECKING:
|
|
21
23
|
from nexus.foundation.application import Application
|
|
@@ -141,14 +143,35 @@ CONFIG = {
|
|
|
141
143
|
)
|
|
142
144
|
)
|
|
143
145
|
|
|
144
|
-
@cli.command("db:install", help="Install Nexus Database Studio management interface")
|
|
145
|
-
def db_install(
|
|
146
|
-
"""
|
|
146
|
+
@cli.command("db:install", help="Install Nexus Database Studio management interface with secure credentials")
|
|
147
|
+
def db_install(
|
|
148
|
+
username: str | None = typer.Option(None, "--username", "-u", help="Admin username for Database Studio access"),
|
|
149
|
+
password: str | None = typer.Option(None, "--password", "-p", help="Admin password for Database Studio access"),
|
|
150
|
+
no_interaction: bool = typer.Option(False, "--no-interaction", "-n", help="Skip interactive prompts and use defaults"),
|
|
151
|
+
) -> None:
|
|
152
|
+
"""Publish config/database_studio.py and activate DB_STUDIO_ENABLED in .env with secure credentials."""
|
|
153
|
+
if not username:
|
|
154
|
+
if no_interaction:
|
|
155
|
+
username = "admin"
|
|
156
|
+
else:
|
|
157
|
+
username = Prompt.ask("[bold cyan]Enter Database Studio admin username[/bold cyan]", default="admin")
|
|
158
|
+
|
|
159
|
+
if not password:
|
|
160
|
+
if no_interaction:
|
|
161
|
+
password = "admin"
|
|
162
|
+
else:
|
|
163
|
+
password = Prompt.ask("[bold cyan]Enter Database Studio admin password[/bold cyan]", password=True, default="nexus123")
|
|
164
|
+
|
|
165
|
+
secret_key = secrets.token_urlsafe(32)
|
|
166
|
+
|
|
147
167
|
_update_env_file(
|
|
148
168
|
app,
|
|
149
169
|
{
|
|
150
170
|
"DB_STUDIO_ENABLED": "true",
|
|
151
171
|
"DB_STUDIO_PATH": "/db/studio",
|
|
172
|
+
"DB_STUDIO_USER": username,
|
|
173
|
+
"DB_STUDIO_PASSWORD": password,
|
|
174
|
+
"DB_STUDIO_SECRET": secret_key,
|
|
152
175
|
},
|
|
153
176
|
)
|
|
154
177
|
|
|
@@ -163,6 +186,9 @@ from nexus.support.env import env
|
|
|
163
186
|
CONFIG = {
|
|
164
187
|
"enabled": env("DB_STUDIO_ENABLED", True),
|
|
165
188
|
"path": env("DB_STUDIO_PATH", "/db/studio"),
|
|
189
|
+
"username": env("DB_STUDIO_USER", "admin"),
|
|
190
|
+
"password": env("DB_STUDIO_PASSWORD", ""),
|
|
191
|
+
"secret": env("DB_STUDIO_SECRET", "nexus_studio_secret_key"),
|
|
166
192
|
}
|
|
167
193
|
''',
|
|
168
194
|
encoding="utf-8",
|
|
@@ -172,8 +198,10 @@ CONFIG = {
|
|
|
172
198
|
Panel(
|
|
173
199
|
"[bold green]⚡ Nexus Database Studio Installed Successfully![/bold green]\n\n"
|
|
174
200
|
"• [bold cyan]Database Management GUI:[/bold cyan] http://localhost:8000/db/studio\n"
|
|
201
|
+
f"• [bold cyan]Admin Username:[/bold cyan] [yellow]{username}[/yellow]\n"
|
|
202
|
+
f"• [bold cyan]Admin Password:[/bold cyan] [dim]{'*' * len(password)}[/dim]\n"
|
|
203
|
+
"• [bold cyan]Access Security:[/bold cyan] Protected with session authentication\n"
|
|
175
204
|
"• [bold cyan]CLI Shortcut:[/bold cyan] Run [white]nexus db:studio[/white] to launch\n"
|
|
176
|
-
"• Features: Table Inspector, Row Pagination, Schema Viewer, Raw SQL Console\n"
|
|
177
205
|
"• Published [dim]config/database_studio.py[/dim]",
|
|
178
206
|
title="Database Studio",
|
|
179
207
|
border_style="green",
|
|
@@ -66,22 +66,38 @@ class DatabaseManager:
|
|
|
66
66
|
)
|
|
67
67
|
|
|
68
68
|
elif driver in ("mysql", "mariadb"):
|
|
69
|
+
from nexus.support.dependencies import ensure_driver
|
|
70
|
+
ensure_driver("mysql")
|
|
69
71
|
host = db_config.get("host") or env("DB_HOST", "127.0.0.1")
|
|
70
72
|
port = db_config.get("port") or env("DB_PORT", 3306)
|
|
71
73
|
database = db_config.get("database") or env("DB_DATABASE", "nexus")
|
|
72
74
|
username = db_config.get("username") or env("DB_USERNAME", "root")
|
|
73
75
|
password = db_config.get("password") or env("DB_PASSWORD", "")
|
|
74
76
|
url = f"mysql+pymysql://{username}:{password}@{host}:{port}/{database}"
|
|
75
|
-
|
|
77
|
+
try:
|
|
78
|
+
return create_engine(url, pool_pre_ping=True)
|
|
79
|
+
except Exception as e:
|
|
80
|
+
if "pymysql" in str(e).lower() or "module" in str(e).lower():
|
|
81
|
+
ensure_driver("mysql", silent=False)
|
|
82
|
+
return create_engine(url, pool_pre_ping=True)
|
|
83
|
+
raise
|
|
76
84
|
|
|
77
85
|
elif driver in ("pgsql", "postgres", "postgresql"):
|
|
86
|
+
from nexus.support.dependencies import ensure_driver
|
|
87
|
+
ensure_driver("postgresql")
|
|
78
88
|
host = db_config.get("host") or env("DB_HOST", "127.0.0.1")
|
|
79
89
|
port = db_config.get("port") or env("DB_PORT", 5432)
|
|
80
90
|
database = db_config.get("database") or env("DB_DATABASE", "nexus")
|
|
81
91
|
username = db_config.get("username") or env("DB_USERNAME", "postgres")
|
|
82
92
|
password = db_config.get("password") or env("DB_PASSWORD", "")
|
|
83
93
|
url = f"postgresql://{username}:{password}@{host}:{port}/{database}"
|
|
84
|
-
|
|
94
|
+
try:
|
|
95
|
+
return create_engine(url, pool_pre_ping=True)
|
|
96
|
+
except Exception as e:
|
|
97
|
+
if "psycopg" in str(e).lower() or "module" in str(e).lower():
|
|
98
|
+
ensure_driver("postgresql", silent=False)
|
|
99
|
+
return create_engine(url, pool_pre_ping=True)
|
|
100
|
+
raise
|
|
85
101
|
|
|
86
102
|
else:
|
|
87
103
|
url = db_config.get("url") or f"{driver}:///"
|
|
@@ -2,10 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from typing import Any
|
|
6
|
+
|
|
5
7
|
|
|
6
8
|
class Migration:
|
|
7
9
|
"""Base class for all schema migrations."""
|
|
8
10
|
|
|
11
|
+
@property
|
|
12
|
+
def schema(self) -> Any:
|
|
13
|
+
"""Access the database schema builder facade."""
|
|
14
|
+
from nexus.facades.schema import Schema
|
|
15
|
+
|
|
16
|
+
return Schema
|
|
17
|
+
|
|
9
18
|
def up(self) -> None:
|
|
10
19
|
"""Run the migration operations."""
|
|
11
20
|
|