amsdal_cli 0.4.16__tar.gz → 0.5.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.
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/PKG-INFO +2 -2
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/change-logs.md +12 -0
- amsdal_cli-0.5.1/latest-changelogs.md +5 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/pyproject.toml +11 -2
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/__about__.py +1 -1
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/services/mixin.py +1 -1
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/deploy/sub_commands/deploy_new.py +6 -6
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_model.py +1 -1
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/sub_commands/apply.py +12 -5
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/sub_commands/list.py +22 -4
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/sub_commands/make.py +3 -3
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/initialize.py +6 -2
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/migrate_models.py +12 -12
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/command.py +2 -2
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/utils.py +51 -24
- amsdal_cli-0.4.16/latest-changelogs.md +0 -5
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/.editorconfig +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/.gitignore +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/CONTRIBUTING.md +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/LICENSE.txt +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/README.md +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/license_check.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/release_notes/.gitkeep +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/scripts/release.sh +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/scripts/tag_check.sh +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/Third-Party Materials - AMSDAL Dependencies - License Notices.md +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/app.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/constants.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/data_models/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/data_models/custom_code.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/data_models/options.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/data_models/schemas_directory.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/extenders/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/extenders/custom_code_extender.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/extenders/options_extender.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/base.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/cli_custom_code_loader.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/cli_loader.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/cli_options_loader.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/cli_statics_loader.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/cli_transactions_loader.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/utils.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/mixins/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/mixins/enrich_schemas_mixin.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/schema_json_loader.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/utils/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/utils/merger.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/services/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/services/builder.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/utils/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/utils/build_config_file.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/callbacks.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/ci_cd/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/ci_cd/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/ci_cd/constants.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/ci_cd/templates/github.yml +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/clean/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/clean/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/app.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/dependency/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/dependency/app.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/dependency/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/dependency/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/dependency/sub_commands/dependency_delete.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/dependency/sub_commands/dependency_list.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/dependency/sub_commands/dependency_new.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/deploy/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/deploy/app.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/deploy/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/deploy/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/deploy/sub_commands/deploy_delete.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/deploy/sub_commands/deploy_list.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/enums.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/app.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/constants.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_checkout.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_delete.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_list.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_new.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/utils.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/app.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/constants.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/sub_commands/secret_delete.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/sub_commands/secret_list.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/sub_commands/secret_new.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/allowlist/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/allowlist/app.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/allowlist/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/allowlist/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/allowlist/sub_commands/allowlist_delete.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/allowlist/sub_commands/allowlist_new.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/app.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/basic_auth/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/basic_auth/app.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/basic_auth/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/basic_auth_delete.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/basic_auth_new.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/basic_auth_retrieve.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/sub_commands/expose_db.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/sub_commands/get_monitoring_info.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/sub_commands/sync_db.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/app.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/enums.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_frontend_config.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_hook.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_modifier.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_permission.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_property.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_tests.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_transaction.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/templates/async_transaction.pyt +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/templates/hook.pyt +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/templates/modifier/constructor.pyt +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/templates/modifier/display_name.pyt +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/templates/modifier/version_name.pyt +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/templates/property.pyt +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/templates/transaction.pyt +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/build_base_path.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/cast_to_attribute_type.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/model_attributes.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/async_mode_utils.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/conftest_utils.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/function_utils.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/model_utils.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/templates/async/conftest.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/templates/sync/conftest.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/type_utils.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/unit.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/app.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/constants.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/.amsdal/.dependencies +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/.amsdal/.environment +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/.amsdal/.secrets +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/.amsdal-cli +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/.gitignore +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/README.md +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/config.yml +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/requirements.txt +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/build.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/config_updater.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/credentials.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/meta.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/model_generator.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/tables.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/restore/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/restore/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/restore/enums.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/filters/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/filters/models_watch_filter.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/filters/static_files_watch_filter.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/services/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/services/supervisor.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/tests/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/tests/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/verify/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/verify/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/verify/models.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/verify/utils/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/verify/utils/verify_json_model.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/verify/utils/verify_python_file.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/worker/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/worker/app.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/worker/command.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/worker/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/worker/sub_commands/run.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/config/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/config/main.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/main.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/py.typed +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/alias_group.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/check_versions.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/cli_config.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/copier.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/markdown_patch.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/render_template.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/schema_repository.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/text.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/vcs/__init__.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/vcs/base.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/vcs/dummy.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/vcs/enums.py +0 -0
- {amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/vcs/git.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: amsdal_cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: CLI for AMSDAL framework
|
|
5
5
|
Project-URL: Documentation, https://pypi.org/project/amsdal_cli/#readme
|
|
6
6
|
Project-URL: Issues, https://pypi.org/project/amsdal_cli/
|
|
@@ -121,7 +121,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
121
121
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
122
122
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
123
123
|
Requires-Python: >=3.11
|
|
124
|
-
Requires-Dist: amsdal-server==0.
|
|
124
|
+
Requires-Dist: amsdal-server==0.5.*
|
|
125
125
|
Requires-Dist: click<8.2.0
|
|
126
126
|
Requires-Dist: faker==27.*
|
|
127
127
|
Requires-Dist: gitpython~=3.1
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [v0.5.1](https://pypi.org/project/amsdal_cli/0.5.1/) - 2025-06-20
|
|
2
|
+
|
|
3
|
+
### Changed
|
|
4
|
+
|
|
5
|
+
- Adjusted migrations for new functionality
|
|
6
|
+
|
|
7
|
+
## [v0.5.0](https://pypi.org/project/amsdal_cli/0.5.0/) - 2025-05-23
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Adjustments for the migrations improvements
|
|
12
|
+
|
|
1
13
|
## [v0.4.16](https://pypi.org/project/amsdal_cli/0.4.16/) - 2025-05-12
|
|
2
14
|
|
|
3
15
|
### Fixed
|
|
@@ -39,10 +39,13 @@ dependencies = [
|
|
|
39
39
|
"jinja2~=3.1",
|
|
40
40
|
"watchfiles~=0.21",
|
|
41
41
|
"GitPython~=3.1",
|
|
42
|
-
"amsdal-server==0.
|
|
42
|
+
"amsdal-server==0.5.*",
|
|
43
43
|
"faker==27.*",
|
|
44
44
|
]
|
|
45
45
|
|
|
46
|
+
[tool.hatch.envs.default.env-vars]
|
|
47
|
+
COLUMNS = "200"
|
|
48
|
+
|
|
46
49
|
[project.urls]
|
|
47
50
|
Documentation = "https://pypi.org/project/amsdal_cli/#readme"
|
|
48
51
|
Issues = "https://pypi.org/project/amsdal_cli/"
|
|
@@ -100,6 +103,9 @@ all = [
|
|
|
100
103
|
change-logs = "towncrier {args:.}"
|
|
101
104
|
release = "rm latest-changelogs.md && towncrier build --yes --version {args:version} && (cat latest-changelogs.md; cat change-logs.md) > temp.md && mv temp.md change-logs.md && git add change-logs.md latest-changelogs.md release_notes && git commit -m 'Updated release notes'"
|
|
102
105
|
|
|
106
|
+
[tool.hatch.envs.local.env-vars]
|
|
107
|
+
COLUMNS = "200"
|
|
108
|
+
|
|
103
109
|
[tool.hatch.envs.local]
|
|
104
110
|
template = "local"
|
|
105
111
|
path = "../.venv/amsdal_cli_local"
|
|
@@ -223,7 +229,10 @@ ignore = [
|
|
|
223
229
|
"S105", "S106", "S107",
|
|
224
230
|
# Ignore complexity
|
|
225
231
|
"C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915",
|
|
226
|
-
"A005"
|
|
232
|
+
"A005",
|
|
233
|
+
"PLC0415",
|
|
234
|
+
"RUF100",
|
|
235
|
+
"UP045",
|
|
227
236
|
]
|
|
228
237
|
unfixable = [
|
|
229
238
|
# Don't touch unused imports
|
|
@@ -246,7 +246,6 @@ def _check_missing_generated_migrations(
|
|
|
246
246
|
from amsdal.configs.constants import CORE_MIGRATIONS_PATH
|
|
247
247
|
from amsdal.configs.main import settings
|
|
248
248
|
from amsdal_models.migration.file_migration_generator import FileMigrationGenerator
|
|
249
|
-
from amsdal_utils.models.enums import ModuleType
|
|
250
249
|
|
|
251
250
|
from amsdal_cli.commands.migrations.constants import MIGRATIONS_DIR_NAME
|
|
252
251
|
from amsdal_cli.utils.cli_config import ModelsFormat
|
|
@@ -261,7 +260,7 @@ def _check_missing_generated_migrations(
|
|
|
261
260
|
if not amsdal_manager.is_authenticated:
|
|
262
261
|
amsdal_manager.authenticate()
|
|
263
262
|
|
|
264
|
-
amsdal_manager.post_setup()
|
|
263
|
+
amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
265
264
|
migrations_dir = app_source_path / MIGRATIONS_DIR_NAME
|
|
266
265
|
cli_config.models_format = ModelsFormat.PY
|
|
267
266
|
schema_repository = build_schema_repository(cli_config=cli_config)
|
|
@@ -270,8 +269,9 @@ def _check_missing_generated_migrations(
|
|
|
270
269
|
app_migrations_path=migrations_dir,
|
|
271
270
|
contrib_migrations_directory_name=settings.CONTRIB_MODELS_PACKAGE_NAME,
|
|
272
271
|
)
|
|
272
|
+
generator.init_state()
|
|
273
273
|
|
|
274
|
-
operations = generator.generate_operations(schema_repository.user_schemas
|
|
274
|
+
operations = generator.app_file_migration_generator.generate_operations(schema_repository.user_schemas)
|
|
275
275
|
|
|
276
276
|
if operations:
|
|
277
277
|
rprint(rich_error('Missing generated migrations. Use `amsdal migrations new` to fix. Exiting...'))
|
|
@@ -295,7 +295,6 @@ async def _async_check_missing_generated_migrations(
|
|
|
295
295
|
from amsdal.configs.constants import CORE_MIGRATIONS_PATH
|
|
296
296
|
from amsdal.configs.main import settings
|
|
297
297
|
from amsdal_models.migration.file_migration_generator import AsyncFileMigrationGenerator
|
|
298
|
-
from amsdal_utils.models.enums import ModuleType
|
|
299
298
|
|
|
300
299
|
from amsdal_cli.commands.migrations.constants import MIGRATIONS_DIR_NAME
|
|
301
300
|
from amsdal_cli.utils.cli_config import ModelsFormat
|
|
@@ -310,7 +309,7 @@ async def _async_check_missing_generated_migrations(
|
|
|
310
309
|
if not amsdal_manager.is_authenticated:
|
|
311
310
|
amsdal_manager.authenticate()
|
|
312
311
|
|
|
313
|
-
await amsdal_manager.post_setup()
|
|
312
|
+
await amsdal_manager.post_setup() # type: ignore[call-arg, misc]
|
|
314
313
|
|
|
315
314
|
migrations_dir = app_source_path / MIGRATIONS_DIR_NAME
|
|
316
315
|
|
|
@@ -321,8 +320,9 @@ async def _async_check_missing_generated_migrations(
|
|
|
321
320
|
app_migrations_path=migrations_dir,
|
|
322
321
|
contrib_migrations_directory_name=settings.CONTRIB_MODELS_PACKAGE_NAME,
|
|
323
322
|
)
|
|
323
|
+
await generator.init_state()
|
|
324
324
|
|
|
325
|
-
operations =
|
|
325
|
+
operations = generator.app_file_migration_generator.generate_operations(schema_repository.user_schemas)
|
|
326
326
|
|
|
327
327
|
if operations:
|
|
328
328
|
rprint(rich_error('Missing generated migrations. Use `amsdal migrations new` to fix. Exiting...'))
|
|
@@ -105,7 +105,7 @@ def generate_model(
|
|
|
105
105
|
|
|
106
106
|
if unique_attrs:
|
|
107
107
|
_unique = json_schema.setdefault('unique', [])
|
|
108
|
-
_unique.extend(unique_attrs)
|
|
108
|
+
_unique.extend(unique_attrs)
|
|
109
109
|
|
|
110
110
|
for attr in parsed_attrs:
|
|
111
111
|
property_info: dict[str, Any] = {
|
{amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/sub_commands/apply.py
RENAMED
|
@@ -30,6 +30,7 @@ def _sync_apply(
|
|
|
30
30
|
from amsdal_models.migration.file_migration_executor import FileMigrationExecutorManager
|
|
31
31
|
from amsdal_models.migration.migrations import MigrationSchemas
|
|
32
32
|
from amsdal_models.migration.migrations_loader import MigrationsLoader
|
|
33
|
+
from amsdal_models.migration.utils import build_migrations_module_name
|
|
33
34
|
|
|
34
35
|
from amsdal_cli.commands.migrations.constants import MIGRATIONS_DIR_NAME
|
|
35
36
|
from amsdal_cli.utils.text import rich_info
|
|
@@ -42,11 +43,15 @@ def _sync_apply(
|
|
|
42
43
|
amsdal_manager.setup()
|
|
43
44
|
|
|
44
45
|
amsdal_manager.authenticate()
|
|
45
|
-
amsdal_manager.post_setup()
|
|
46
|
+
amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
46
47
|
|
|
47
48
|
app_migrations_loader = MigrationsLoader(
|
|
48
49
|
migrations_dir=build_dir / MIGRATIONS_DIR_NAME,
|
|
49
50
|
module_type=ModuleType.USER,
|
|
51
|
+
module_name=build_migrations_module_name(
|
|
52
|
+
None,
|
|
53
|
+
MIGRATIONS_DIR_NAME,
|
|
54
|
+
),
|
|
50
55
|
)
|
|
51
56
|
schemas = MigrationSchemas()
|
|
52
57
|
|
|
@@ -101,9 +106,9 @@ async def _async_sync_apply(
|
|
|
101
106
|
from amsdal_models.migration.data_classes import MigrationResult
|
|
102
107
|
from amsdal_models.migration.executors.default_executor import DefaultAsyncMigrationExecutor
|
|
103
108
|
from amsdal_models.migration.file_migration_executor import AsyncFileMigrationExecutorManager
|
|
104
|
-
from amsdal_models.migration.file_migration_store import AsyncFileMigrationStore
|
|
105
109
|
from amsdal_models.migration.migrations import MigrationSchemas
|
|
106
110
|
from amsdal_models.migration.migrations_loader import MigrationsLoader
|
|
111
|
+
from amsdal_models.migration.utils import build_migrations_module_name
|
|
107
112
|
|
|
108
113
|
from amsdal_cli.commands.migrations.constants import MIGRATIONS_DIR_NAME
|
|
109
114
|
from amsdal_cli.utils.text import rich_info
|
|
@@ -116,14 +121,16 @@ async def _async_sync_apply(
|
|
|
116
121
|
|
|
117
122
|
try:
|
|
118
123
|
amsdal_manager.authenticate()
|
|
119
|
-
store = AsyncFileMigrationStore(build_dir / MIGRATIONS_DIR_NAME)
|
|
120
124
|
|
|
121
|
-
await
|
|
122
|
-
await amsdal_manager.post_setup()
|
|
125
|
+
await amsdal_manager.post_setup() # type: ignore[call-arg, misc]
|
|
123
126
|
|
|
124
127
|
app_migrations_loader = MigrationsLoader(
|
|
125
128
|
migrations_dir=build_dir / MIGRATIONS_DIR_NAME,
|
|
126
129
|
module_type=ModuleType.USER,
|
|
130
|
+
module_name=build_migrations_module_name(
|
|
131
|
+
None,
|
|
132
|
+
MIGRATIONS_DIR_NAME,
|
|
133
|
+
),
|
|
127
134
|
)
|
|
128
135
|
schemas = MigrationSchemas()
|
|
129
136
|
|
{amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/sub_commands/list.py
RENAMED
|
@@ -19,9 +19,11 @@ def _fetch_migrations(app_migrations_path: Path) -> list['MigrationFile']:
|
|
|
19
19
|
if not amsdal_manager.is_setup:
|
|
20
20
|
amsdal_manager.setup()
|
|
21
21
|
amsdal_manager.authenticate()
|
|
22
|
-
amsdal_manager.post_setup()
|
|
22
|
+
amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
23
23
|
|
|
24
24
|
store = FileMigrationStore(app_migrations_path)
|
|
25
|
+
store.init_migration_table()
|
|
26
|
+
|
|
25
27
|
return store.fetch_migrations()
|
|
26
28
|
|
|
27
29
|
|
|
@@ -35,7 +37,7 @@ async def _async_fetch_migrations(app_migrations_path: Path) -> list['MigrationF
|
|
|
35
37
|
|
|
36
38
|
try:
|
|
37
39
|
amsdal_manager.authenticate()
|
|
38
|
-
await amsdal_manager.post_setup()
|
|
40
|
+
await amsdal_manager.post_setup() # type: ignore[call-arg,misc]
|
|
39
41
|
|
|
40
42
|
store = AsyncFileMigrationStore(app_migrations_path)
|
|
41
43
|
await store.init_migration_table()
|
|
@@ -58,6 +60,7 @@ def list_migrations(
|
|
|
58
60
|
from amsdal.configs.main import settings
|
|
59
61
|
from amsdal_models.migration.data_classes import ModuleType
|
|
60
62
|
from amsdal_models.migration.migrations_loader import MigrationsLoader
|
|
63
|
+
from amsdal_models.migration.utils import build_migrations_module_name
|
|
61
64
|
from amsdal_models.migration.utils import contrib_to_module_root_path
|
|
62
65
|
from amsdal_utils.config.manager import AmsdalConfigManager
|
|
63
66
|
|
|
@@ -94,6 +97,10 @@ def list_migrations(
|
|
|
94
97
|
core_loader = MigrationsLoader(
|
|
95
98
|
migrations_dir=CORE_MIGRATIONS_PATH,
|
|
96
99
|
module_type=ModuleType.CORE,
|
|
100
|
+
module_name=build_migrations_module_name(
|
|
101
|
+
'amsdal',
|
|
102
|
+
'__migrations__',
|
|
103
|
+
),
|
|
97
104
|
)
|
|
98
105
|
contrib_loaders: list[tuple[str, MigrationsLoader]] = []
|
|
99
106
|
|
|
@@ -106,7 +113,10 @@ def list_migrations(
|
|
|
106
113
|
MigrationsLoader(
|
|
107
114
|
migrations_dir=contrib_root_path / settings.CONTRIB_MIGRATIONS_DIRECTORY_NAME,
|
|
108
115
|
module_type=ModuleType.CONTRIB,
|
|
109
|
-
module_name=
|
|
116
|
+
module_name=build_migrations_module_name(
|
|
117
|
+
'.'.join(contrib.split('.')[:-2]),
|
|
118
|
+
settings.CONTRIB_MIGRATIONS_DIRECTORY_NAME,
|
|
119
|
+
),
|
|
110
120
|
),
|
|
111
121
|
),
|
|
112
122
|
)
|
|
@@ -114,6 +124,10 @@ def list_migrations(
|
|
|
114
124
|
app_migrations_loader = MigrationsLoader(
|
|
115
125
|
migrations_dir=build_dir / MIGRATIONS_DIR_NAME,
|
|
116
126
|
module_type=ModuleType.USER,
|
|
127
|
+
module_name=build_migrations_module_name(
|
|
128
|
+
None,
|
|
129
|
+
MIGRATIONS_DIR_NAME,
|
|
130
|
+
),
|
|
117
131
|
)
|
|
118
132
|
|
|
119
133
|
rprint(rich_success('Core:'))
|
|
@@ -126,7 +140,11 @@ def list_migrations(
|
|
|
126
140
|
rprint(rich_success('Contrib:'))
|
|
127
141
|
for _contrib, _loader in contrib_loaders:
|
|
128
142
|
_contrib_name = _contrib.rsplit('.', 2)[0]
|
|
129
|
-
|
|
143
|
+
_contrib_module_name = build_migrations_module_name(
|
|
144
|
+
'.'.join(_contrib.split('.')[:-2]),
|
|
145
|
+
settings.CONTRIB_MIGRATIONS_DIRECTORY_NAME,
|
|
146
|
+
)
|
|
147
|
+
_applied_numbers = _contrib_applied_numbers[_contrib_module_name]
|
|
130
148
|
|
|
131
149
|
for _migration in _loader:
|
|
132
150
|
_is_migrated = 'x' if _migration.number in _applied_numbers else ' '
|
{amsdal_cli-0.4.16 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/sub_commands/make.py
RENAMED
|
@@ -36,7 +36,7 @@ def _sync_make_migrations(
|
|
|
36
36
|
if not amsdal_manager._is_setup:
|
|
37
37
|
amsdal_manager.setup()
|
|
38
38
|
amsdal_manager.authenticate()
|
|
39
|
-
amsdal_manager.post_setup()
|
|
39
|
+
amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
40
40
|
|
|
41
41
|
schema_repository = build_schema_repository(cli_config=cli_config)
|
|
42
42
|
migrations_dir: Path = cli_config.app_directory / SOURCES_DIR / MIGRATIONS_DIR_NAME
|
|
@@ -44,7 +44,7 @@ def _sync_make_migrations(
|
|
|
44
44
|
generator = FileMigrationGenerator(
|
|
45
45
|
core_migrations_path=CORE_MIGRATIONS_PATH,
|
|
46
46
|
app_migrations_path=migrations_dir,
|
|
47
|
-
contrib_migrations_directory_name=settings.
|
|
47
|
+
contrib_migrations_directory_name=settings.CONTRIB_MIGRATIONS_DIRECTORY_NAME,
|
|
48
48
|
)
|
|
49
49
|
|
|
50
50
|
try:
|
|
@@ -89,7 +89,7 @@ async def _async_make_migrations(
|
|
|
89
89
|
if not amsdal_manager.is_setup:
|
|
90
90
|
await amsdal_manager.setup()
|
|
91
91
|
amsdal_manager.authenticate()
|
|
92
|
-
await amsdal_manager.post_setup()
|
|
92
|
+
await amsdal_manager.post_setup() # type: ignore[call-arg, misc]
|
|
93
93
|
|
|
94
94
|
schema_repository = build_schema_repository(cli_config=cli_config)
|
|
95
95
|
migrations_dir: Path = cli_config.app_directory / SOURCES_DIR / MIGRATIONS_DIR_NAME
|
|
@@ -11,6 +11,10 @@ async def init_amsdal(config_path: Path, temp_dir: Path) -> None:
|
|
|
11
11
|
USER_MODELS_MODULE_PATH=temp_dir / 'models',
|
|
12
12
|
)
|
|
13
13
|
|
|
14
|
+
if not settings.USER_MODELS_MODULE_PATH:
|
|
15
|
+
msg = 'USER_MODELS_MODULE_PATH must be set in settings.'
|
|
16
|
+
raise ValueError(msg)
|
|
17
|
+
|
|
14
18
|
settings.USER_MODELS_MODULE_PATH.mkdir(parents=True, exist_ok=True)
|
|
15
19
|
(settings.USER_MODELS_MODULE_PATH / '__init__.py').touch(exist_ok=True)
|
|
16
20
|
|
|
@@ -25,7 +29,7 @@ async def init_amsdal(config_path: Path, temp_dir: Path) -> None:
|
|
|
25
29
|
amsdal_manager = AmsdalManager()
|
|
26
30
|
amsdal_manager.setup()
|
|
27
31
|
amsdal_manager.authenticate()
|
|
28
|
-
amsdal_manager.post_setup()
|
|
32
|
+
amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
29
33
|
|
|
30
34
|
|
|
31
35
|
async def _async_init() -> None:
|
|
@@ -34,4 +38,4 @@ async def _async_init() -> None:
|
|
|
34
38
|
amsdal_manager = AsyncAmsdalManager()
|
|
35
39
|
await amsdal_manager.setup()
|
|
36
40
|
amsdal_manager.authenticate()
|
|
37
|
-
await amsdal_manager.post_setup()
|
|
41
|
+
await amsdal_manager.post_setup() # type: ignore[call-arg, misc]
|
|
@@ -50,7 +50,7 @@ async def migrate_models_to_lakehouse(
|
|
|
50
50
|
build_dir=temp_dir,
|
|
51
51
|
)
|
|
52
52
|
|
|
53
|
-
sys.path.insert(0, str(settings.USER_MODELS_MODULE_PATH.absolute()))
|
|
53
|
+
sys.path.insert(0, str(settings.USER_MODELS_MODULE_PATH.absolute())) # type: ignore[union-attr]
|
|
54
54
|
|
|
55
55
|
if config_manager.get_config().async_mode:
|
|
56
56
|
await _async_migrate_models(config_path)
|
|
@@ -72,7 +72,7 @@ def _migrate_models(config_path: Path) -> None:
|
|
|
72
72
|
from amsdal_models.classes.class_loader import ModelClassLoader
|
|
73
73
|
from amsdal_models.migration import migrations
|
|
74
74
|
from amsdal_models.migration.executors.default_executor import DefaultMigrationExecutor
|
|
75
|
-
from amsdal_models.migration.file_migration_generator import
|
|
75
|
+
from amsdal_models.migration.file_migration_generator import BaseFileMigrationGenerator
|
|
76
76
|
from amsdal_models.migration.file_migration_writer import FileMigrationWriter
|
|
77
77
|
from amsdal_models.migration.migrations import MigrationSchemas
|
|
78
78
|
from amsdal_models.schemas.class_schema_loader import ClassSchemaLoader
|
|
@@ -88,7 +88,7 @@ def _migrate_models(config_path: Path) -> None:
|
|
|
88
88
|
new_manager = AmsdalManager()
|
|
89
89
|
if not new_manager.is_setup:
|
|
90
90
|
new_manager.setup()
|
|
91
|
-
new_manager.post_setup()
|
|
91
|
+
new_manager.post_setup() # type: ignore[call-arg]
|
|
92
92
|
|
|
93
93
|
schemas = MigrationSchemas()
|
|
94
94
|
executor = DefaultMigrationExecutor(schemas, use_foreign_keys=True)
|
|
@@ -121,7 +121,7 @@ def _migrate_models(config_path: Path) -> None:
|
|
|
121
121
|
_schemas_map = {_schema.title: _schema for _schema in _schemas}
|
|
122
122
|
|
|
123
123
|
for object_schema in _schemas:
|
|
124
|
-
for _operation_data in
|
|
124
|
+
for _operation_data in BaseFileMigrationGenerator.build_operations(
|
|
125
125
|
ModuleType.USER,
|
|
126
126
|
object_schema,
|
|
127
127
|
None,
|
|
@@ -136,7 +136,7 @@ def _migrate_models(config_path: Path) -> None:
|
|
|
136
136
|
_operation.forward(executor)
|
|
137
137
|
|
|
138
138
|
for object_schema in _cycle_schemas:
|
|
139
|
-
for _operation_data in
|
|
139
|
+
for _operation_data in BaseFileMigrationGenerator.build_operations(
|
|
140
140
|
ModuleType.USER,
|
|
141
141
|
object_schema,
|
|
142
142
|
_schemas_map[object_schema.title],
|
|
@@ -163,7 +163,7 @@ async def _async_migrate_models(config_path: Path) -> None:
|
|
|
163
163
|
from amsdal_models.classes.class_loader import ModelClassLoader
|
|
164
164
|
from amsdal_models.migration import migrations
|
|
165
165
|
from amsdal_models.migration.executors.default_executor import DefaultAsyncMigrationExecutor
|
|
166
|
-
from amsdal_models.migration.file_migration_generator import
|
|
166
|
+
from amsdal_models.migration.file_migration_generator import BaseFileMigrationGenerator
|
|
167
167
|
from amsdal_models.migration.file_migration_writer import FileMigrationWriter
|
|
168
168
|
from amsdal_models.migration.migrations import MigrationSchemas
|
|
169
169
|
from amsdal_models.schemas.class_schema_loader import ClassSchemaLoader
|
|
@@ -178,7 +178,7 @@ async def _async_migrate_models(config_path: Path) -> None:
|
|
|
178
178
|
new_manager = AsyncAmsdalManager()
|
|
179
179
|
if not new_manager.is_setup:
|
|
180
180
|
await new_manager.setup()
|
|
181
|
-
await new_manager.post_setup()
|
|
181
|
+
await new_manager.post_setup() # type: ignore[call-arg, misc]
|
|
182
182
|
|
|
183
183
|
schemas = MigrationSchemas()
|
|
184
184
|
executor = DefaultAsyncMigrationExecutor(schemas, use_foreign_keys=True)
|
|
@@ -211,7 +211,7 @@ async def _async_migrate_models(config_path: Path) -> None:
|
|
|
211
211
|
_schemas_map = {_schema.title: _schema for _schema in _schemas}
|
|
212
212
|
|
|
213
213
|
for object_schema in _schemas:
|
|
214
|
-
for _operation_data in
|
|
214
|
+
for _operation_data in BaseFileMigrationGenerator.build_operations(
|
|
215
215
|
ModuleType.USER,
|
|
216
216
|
object_schema,
|
|
217
217
|
None,
|
|
@@ -226,7 +226,7 @@ async def _async_migrate_models(config_path: Path) -> None:
|
|
|
226
226
|
_operation.forward(executor)
|
|
227
227
|
|
|
228
228
|
for object_schema in _cycle_schemas:
|
|
229
|
-
for _operation_data in
|
|
229
|
+
for _operation_data in BaseFileMigrationGenerator.build_operations(
|
|
230
230
|
ModuleType.USER,
|
|
231
231
|
object_schema,
|
|
232
232
|
_schemas_map[object_schema.title],
|
|
@@ -257,7 +257,7 @@ def _migrate_data(new_connection_name: str) -> None:
|
|
|
257
257
|
origin_manager = AmsdalManager()
|
|
258
258
|
if not origin_manager.is_setup:
|
|
259
259
|
origin_manager.setup()
|
|
260
|
-
origin_manager.post_setup()
|
|
260
|
+
origin_manager.post_setup() # type: ignore[call-arg]
|
|
261
261
|
|
|
262
262
|
model_class_loader = ModelClassLoader(settings.USER_MODELS_MODULE)
|
|
263
263
|
tables_for_connection = _resolve_tables_for_connection(new_connection_name)
|
|
@@ -310,7 +310,7 @@ async def _async_migrate_data(new_connection_name: str) -> None:
|
|
|
310
310
|
origin_manager = AsyncAmsdalManager()
|
|
311
311
|
if not origin_manager.is_setup:
|
|
312
312
|
await origin_manager.setup()
|
|
313
|
-
await origin_manager.post_setup()
|
|
313
|
+
await origin_manager.post_setup() # type: ignore[call-arg, misc]
|
|
314
314
|
|
|
315
315
|
model_class_loader = ModelClassLoader(settings.USER_MODELS_MODULE)
|
|
316
316
|
tables_for_connection = _resolve_tables_for_connection(new_connection_name)
|
|
@@ -346,7 +346,7 @@ async def _async_migrate_data(new_connection_name: str) -> None:
|
|
|
346
346
|
force_insert = True
|
|
347
347
|
lakehouse_item = model_class(**item.model_dump_refs())
|
|
348
348
|
|
|
349
|
-
await lakehouse_item.asave(
|
|
349
|
+
await lakehouse_item.asave( # type: ignore[misc]
|
|
350
350
|
force_insert=force_insert,
|
|
351
351
|
using=LAKEHOUSE_DB_ALIAS,
|
|
352
352
|
)
|
|
@@ -45,7 +45,7 @@ async def _async_serve(
|
|
|
45
45
|
async def on_event_async(self, *args: Any, **kwargs: Any) -> None: # noqa: ARG002
|
|
46
46
|
if not amsdal_manager._is_setup:
|
|
47
47
|
await amsdal_manager.setup()
|
|
48
|
-
await amsdal_manager.post_setup()
|
|
48
|
+
await amsdal_manager.post_setup() # type: ignore[call-arg, misc]
|
|
49
49
|
|
|
50
50
|
if not amsdal_manager.is_authenticated:
|
|
51
51
|
amsdal_manager.authenticate()
|
|
@@ -159,7 +159,7 @@ def serve_command(
|
|
|
159
159
|
def on_event(self, *args: Any, **kwargs: Any) -> None: # noqa: ARG002
|
|
160
160
|
if not amsdal_manager._is_setup:
|
|
161
161
|
amsdal_manager.setup()
|
|
162
|
-
amsdal_manager.post_setup()
|
|
162
|
+
amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
163
163
|
|
|
164
164
|
if not amsdal_manager.is_authenticated:
|
|
165
165
|
amsdal_manager.authenticate()
|