amsdal_cli 0.5.8__tar.gz → 0.5.10__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.5.8 → amsdal_cli-0.5.10}/.gitignore +2 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/PKG-INFO +5 -4
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/change-logs.md +12 -0
- amsdal_cli-0.5.10/latest-changelogs.md +5 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/pyproject.toml +6 -5
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/__about__.py +1 -1
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/command.py +1 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/deploy/sub_commands/deploy_list.py +4 -4
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/deploy/sub_commands/deploy_new.py +1 -1
- amsdal_cli-0.5.10/src/amsdal_cli/commands/cloud/external_connections/__init__.py +3 -0
- amsdal_cli-0.5.10/src/amsdal_cli/commands/cloud/external_connections/app.py +11 -0
- amsdal_cli-0.5.10/src/amsdal_cli/commands/cloud/external_connections/command.py +5 -0
- amsdal_cli-0.5.10/src/amsdal_cli/commands/cloud/external_connections/sub_commands/__init__.py +11 -0
- amsdal_cli-0.5.10/src/amsdal_cli/commands/cloud/external_connections/sub_commands/connection_add.py +123 -0
- amsdal_cli-0.5.10/src/amsdal_cli/commands/cloud/external_connections/sub_commands/connection_list.py +146 -0
- amsdal_cli-0.5.10/src/amsdal_cli/commands/cloud/external_connections/sub_commands/connection_remove.py +82 -0
- amsdal_cli-0.5.10/src/amsdal_cli/commands/cloud/external_connections/sub_commands/connection_update.py +104 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/utils/tests/type_utils.py +3 -3
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/migrations/sub_commands/apply.py +1 -1
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/migrations/sub_commands/list.py +1 -1
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/migrations/sub_commands/make.py +1 -1
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/migrations/sub_commands/make_contrib.py +1 -1
- amsdal_cli-0.5.10/src/amsdal_cli/commands/new/templates/requirements.txt +2 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/register_connection/utils/initialize.py +1 -1
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/register_connection/utils/migrate_models.py +3 -3
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/serve/command.py +1 -1
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/serve/utils.py +3 -3
- amsdal_cli-0.5.10/uv.lock +1904 -0
- amsdal_cli-0.5.8/latest-changelogs.md +0 -5
- amsdal_cli-0.5.8/src/amsdal_cli/commands/new/templates/requirements.txt +0 -2
- amsdal_cli-0.5.8/uv.lock +0 -2016
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/.editorconfig +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/.junie/guidelines.md +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/CONTRIBUTING.md +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/LICENSE.txt +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/README.md +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/license_check.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/release_notes/.gitkeep +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/scripts/release.sh +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/scripts/tag_check.sh +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/Third-Party Materials - AMSDAL Dependencies - License Notices.md +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/app.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/api_check/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/api_check/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/api_check/config.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/api_check/data_classes.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/api_check/operation_log.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/api_check/services/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/api_check/services/comparison.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/api_check/services/data_factory.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/api_check/services/loader.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/api_check/services/runner.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/api_check/services/storage.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/constants.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/data_models/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/data_models/custom_code.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/data_models/options.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/data_models/schemas_directory.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/extenders/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/extenders/custom_code_extender.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/extenders/options_extender.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/loaders/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/loaders/base.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/loaders/cli_custom_code_loader.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/loaders/cli_loader.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/loaders/cli_options_loader.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/loaders/cli_statics_loader.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/loaders/cli_transactions_loader.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/loaders/utils.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/mixins/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/mixins/enrich_schemas_mixin.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/schema_json_loader.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/utils/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/schemas/utils/merger.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/services/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/services/builder.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/services/mixin.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/utils/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/build/utils/build_config_file.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/callbacks.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/ci_cd/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/ci_cd/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/ci_cd/constants.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/ci_cd/templates/github.yml +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/clean/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/clean/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/app.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/dependency/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/dependency/app.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/dependency/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/dependency/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/dependency/sub_commands/dependency_delete.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/dependency/sub_commands/dependency_list.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/dependency/sub_commands/dependency_new.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/deploy/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/deploy/app.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/deploy/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/deploy/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/deploy/sub_commands/deploy_delete.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/enums.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/environments/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/environments/app.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/environments/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/environments/constants.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/environments/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_checkout.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_delete.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_list.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_new.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/environments/utils.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/secret/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/secret/app.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/secret/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/secret/constants.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/secret/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/secret/sub_commands/secret_delete.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/secret/sub_commands/secret_list.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/secret/sub_commands/secret_new.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/allowlist/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/allowlist/app.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/allowlist/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/allowlist/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/allowlist/sub_commands/allowlist_delete.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/allowlist/sub_commands/allowlist_new.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/app.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/basic_auth/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/basic_auth/app.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/basic_auth/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/basic_auth_delete.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/basic_auth_new.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/basic_auth_retrieve.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/security/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/sub_commands/expose_db.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/sub_commands/get_monitoring_info.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/cloud/sub_commands/sync_db.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/app.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/enums.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/sub_commands/generate_external_models.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/sub_commands/generate_frontend_config.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/sub_commands/generate_hook.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/sub_commands/generate_model.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/sub_commands/generate_modifier.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/sub_commands/generate_permission.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/sub_commands/generate_property.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/sub_commands/generate_tests.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/sub_commands/generate_transaction.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/templates/async_transaction.pyt +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/templates/hook.pyt +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/templates/modifier/constructor.pyt +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/templates/modifier/display_name.pyt +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/templates/modifier/version_name.pyt +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/templates/property.pyt +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/templates/transaction.pyt +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/utils/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/utils/build_base_path.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/utils/cast_to_attribute_type.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/utils/model_attributes.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/utils/tests/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/utils/tests/async_mode_utils.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/utils/tests/conftest_utils.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/utils/tests/function_utils.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/utils/tests/model_utils.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/utils/tests/templates/async/conftest.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/utils/tests/templates/sync/conftest.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/utils/tests/unit.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/migrations/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/migrations/app.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/migrations/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/migrations/constants.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/migrations/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/migrations/utils.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/new/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/new/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/new/templates/.amsdal/.dependencies +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/new/templates/.amsdal/.environment +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/new/templates/.amsdal/.secrets +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/new/templates/.amsdal-cli +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/new/templates/.gitignore +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/new/templates/README.md +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/new/templates/config.yml +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/plugin/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/plugin/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/plugin/templates/.amsdal-cli +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/plugin/templates/README.md +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/plugin/templates/config.yml +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/plugin/templates/pyproject.toml +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/plugin/templates/src/__about__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/plugin/templates/src/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/plugin/templates/src/models/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/plugin/templates/src/transactions/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/plugin/templates/src/transactions/example_transaction.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/register_connection/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/register_connection/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/register_connection/utils/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/register_connection/utils/build.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/register_connection/utils/config_updater.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/register_connection/utils/credentials.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/register_connection/utils/meta.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/register_connection/utils/model_generator.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/register_connection/utils/tables.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/restore/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/restore/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/restore/enums.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/serve/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/serve/filters/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/serve/filters/models_watch_filter.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/serve/filters/static_files_watch_filter.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/serve/services/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/serve/services/supervisor.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/tests/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/tests/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/verify/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/verify/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/verify/models.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/verify/utils/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/verify/utils/verify_json_model.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/verify/utils/verify_python_file.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/worker/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/worker/app.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/worker/command.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/worker/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/worker/sub_commands/run.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/config/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/config/main.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/main.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/py.typed +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/utils/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/utils/alias_group.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/utils/check_versions.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/utils/cli_config.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/utils/copier.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/utils/markdown_patch.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/utils/render_template.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/utils/schema_repository.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/utils/text.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/utils/vcs/__init__.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/utils/vcs/base.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/utils/vcs/dummy.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/utils/vcs/enums.py +0 -0
- {amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/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.5.
|
|
3
|
+
Version: 0.5.10
|
|
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/
|
|
@@ -118,17 +118,18 @@ Classifier: Development Status :: 4 - Beta
|
|
|
118
118
|
Classifier: Programming Language :: Python
|
|
119
119
|
Classifier: Programming Language :: Python :: 3.11
|
|
120
120
|
Classifier: Programming Language :: Python :: 3.12
|
|
121
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
121
122
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
122
123
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
123
|
-
Requires-Python:
|
|
124
|
+
Requires-Python: <3.14,>=3.11
|
|
124
125
|
Requires-Dist: amsdal-server==0.5.*
|
|
125
126
|
Requires-Dist: click<8.2.0
|
|
126
127
|
Requires-Dist: faker==27.*
|
|
127
128
|
Requires-Dist: gitpython~=3.1
|
|
128
129
|
Requires-Dist: httpx==0.28.*
|
|
129
130
|
Requires-Dist: jinja2~=3.1
|
|
130
|
-
Requires-Dist: pydantic-settings~=2.
|
|
131
|
-
Requires-Dist: pydantic~=2.
|
|
131
|
+
Requires-Dist: pydantic-settings~=2.12
|
|
132
|
+
Requires-Dist: pydantic~=2.12
|
|
132
133
|
Requires-Dist: rich~=14.0
|
|
133
134
|
Requires-Dist: typer~=0.15.3
|
|
134
135
|
Requires-Dist: watchfiles~=0.21
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [v0.5.10](https://pypi.org/project/amsdal_cli/0.5.10/) - 2025-12-27
|
|
2
|
+
|
|
3
|
+
### Added
|
|
4
|
+
|
|
5
|
+
- Added support for cloud external connection commands
|
|
6
|
+
|
|
7
|
+
## [v0.5.9](https://pypi.org/project/amsdal_cli/0.5.9/) - 2025-12-23
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- Added support for python 3.13
|
|
12
|
+
|
|
1
13
|
## [v0.5.8](https://pypi.org/project/amsdal_cli/0.5.8/) - 2025-10-21
|
|
2
14
|
|
|
3
15
|
### Added
|
|
@@ -16,7 +16,7 @@ name = "amsdal_cli"
|
|
|
16
16
|
dynamic = ["version"]
|
|
17
17
|
description = 'CLI for AMSDAL framework'
|
|
18
18
|
readme = "README.md"
|
|
19
|
-
requires-python = ">=3.11"
|
|
19
|
+
requires-python = ">=3.11,<3.14"
|
|
20
20
|
license = { file = "LICENSE.txt" }
|
|
21
21
|
keywords = []
|
|
22
22
|
authors = [
|
|
@@ -27,12 +27,13 @@ classifiers = [
|
|
|
27
27
|
"Programming Language :: Python",
|
|
28
28
|
"Programming Language :: Python :: 3.11",
|
|
29
29
|
"Programming Language :: Python :: 3.12",
|
|
30
|
+
"Programming Language :: Python :: 3.13",
|
|
30
31
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
31
32
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
32
33
|
]
|
|
33
34
|
dependencies = [
|
|
34
|
-
"pydantic~=2.
|
|
35
|
-
"pydantic-settings~=2.
|
|
35
|
+
"pydantic~=2.12",
|
|
36
|
+
"pydantic-settings~=2.12",
|
|
36
37
|
"typer~=0.15.3",
|
|
37
38
|
"click<8.2.0",
|
|
38
39
|
"rich~=14.0",
|
|
@@ -87,7 +88,7 @@ allow-direct-references = true
|
|
|
87
88
|
path = "src/amsdal_cli/__about__.py"
|
|
88
89
|
|
|
89
90
|
[[tool.hatch.envs.all.matrix]]
|
|
90
|
-
python = ["3.11", "3.12"]
|
|
91
|
+
python = ["3.11", "3.12", "3.13"]
|
|
91
92
|
|
|
92
93
|
[tool.hatch.envs.default]
|
|
93
94
|
installer = "uv"
|
|
@@ -197,7 +198,7 @@ init_typed = true
|
|
|
197
198
|
warn_required_dynamic_aliases = true
|
|
198
199
|
|
|
199
200
|
[tool.ruff]
|
|
200
|
-
target-version = "
|
|
201
|
+
target-version = "py311"
|
|
201
202
|
line-length = 120
|
|
202
203
|
exclude = ["tests/fixtures/", "src/amsdal_cli/commands/plugin/templates/"]
|
|
203
204
|
|
|
@@ -3,6 +3,7 @@ from amsdal_cli.commands.cloud.app import cloud_sub_app
|
|
|
3
3
|
from amsdal_cli.commands.cloud.dependency.command import * # noqa
|
|
4
4
|
from amsdal_cli.commands.cloud.deploy.command import * # noqa
|
|
5
5
|
from amsdal_cli.commands.cloud.environments.command import * # noqa
|
|
6
|
+
from amsdal_cli.commands.cloud.external_connections.command import * # noqa
|
|
6
7
|
from amsdal_cli.commands.cloud.secret.command import * # noqa
|
|
7
8
|
from amsdal_cli.commands.cloud.security.command import * # noqa
|
|
8
9
|
from amsdal_cli.commands.cloud.sub_commands import * # noqa
|
|
@@ -92,11 +92,11 @@ async def list_command(
|
|
|
92
92
|
deployment.application_name or '-',
|
|
93
93
|
datetime.datetime.fromtimestamp(
|
|
94
94
|
deployment.created_at / 1000,
|
|
95
|
-
tz=datetime.
|
|
95
|
+
tz=datetime.UTC,
|
|
96
96
|
).strftime('%Y-%m-%d %H:%M:%S %Z'),
|
|
97
97
|
datetime.datetime.fromtimestamp(
|
|
98
98
|
deployment.last_update_at / 1000,
|
|
99
|
-
tz=datetime.
|
|
99
|
+
tz=datetime.UTC,
|
|
100
100
|
).strftime('%Y-%m-%d %H:%M:%S %Z'),
|
|
101
101
|
deployment.application_uuid or '-',
|
|
102
102
|
deployment.domain_url or '-',
|
|
@@ -109,11 +109,11 @@ async def list_command(
|
|
|
109
109
|
deployment.application_name or '-',
|
|
110
110
|
datetime.datetime.fromtimestamp(
|
|
111
111
|
deployment.created_at / 1000,
|
|
112
|
-
tz=datetime.
|
|
112
|
+
tz=datetime.UTC,
|
|
113
113
|
).strftime('%Y-%m-%d %H:%M:%S %Z'),
|
|
114
114
|
datetime.datetime.fromtimestamp(
|
|
115
115
|
deployment.last_update_at / 1000,
|
|
116
|
-
tz=datetime.
|
|
116
|
+
tz=datetime.UTC,
|
|
117
117
|
).strftime('%Y-%m-%d %H:%M:%S %Z'),
|
|
118
118
|
)
|
|
119
119
|
|
|
@@ -308,7 +308,7 @@ async def _async_check_missing_generated_migrations(
|
|
|
308
308
|
if not amsdal_manager.is_authenticated:
|
|
309
309
|
amsdal_manager.authenticate()
|
|
310
310
|
|
|
311
|
-
await amsdal_manager.post_setup() # type: ignore[call-arg
|
|
311
|
+
await amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
312
312
|
|
|
313
313
|
migrations_dir = app_source_path / MIGRATIONS_DIR_NAME
|
|
314
314
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import typer
|
|
2
|
+
|
|
3
|
+
from amsdal_cli.utils.alias_group import AliasGroup
|
|
4
|
+
|
|
5
|
+
external_connections_sub_app = typer.Typer(
|
|
6
|
+
help=(
|
|
7
|
+
'Manage external connections for your Cloud Server app. '
|
|
8
|
+
'Without any sub-command, it will list all external connections.'
|
|
9
|
+
),
|
|
10
|
+
cls=AliasGroup,
|
|
11
|
+
)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
from amsdal_cli.commands.cloud.app import cloud_sub_app
|
|
2
|
+
from amsdal_cli.commands.cloud.external_connections.app import external_connections_sub_app
|
|
3
|
+
from amsdal_cli.commands.cloud.external_connections.sub_commands import * # noqa
|
|
4
|
+
|
|
5
|
+
cloud_sub_app.add_typer(external_connections_sub_app, name='external-connections, ext-conn, ec')
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from amsdal_cli.commands.cloud.external_connections.sub_commands.connection_add import connection_add_command
|
|
2
|
+
from amsdal_cli.commands.cloud.external_connections.sub_commands.connection_list import connection_list_callback
|
|
3
|
+
from amsdal_cli.commands.cloud.external_connections.sub_commands.connection_remove import connection_remove_command
|
|
4
|
+
from amsdal_cli.commands.cloud.external_connections.sub_commands.connection_update import connection_update_command
|
|
5
|
+
|
|
6
|
+
__all__ = [
|
|
7
|
+
'connection_add_command',
|
|
8
|
+
'connection_list_callback',
|
|
9
|
+
'connection_remove_command',
|
|
10
|
+
'connection_update_command',
|
|
11
|
+
]
|
amsdal_cli-0.5.10/src/amsdal_cli/commands/cloud/external_connections/sub_commands/connection_add.py
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import tempfile
|
|
2
|
+
import typing
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
import typer
|
|
6
|
+
from rich import print as rprint
|
|
7
|
+
from typer import Option
|
|
8
|
+
|
|
9
|
+
from amsdal_cli.commands.cloud.external_connections.app import external_connections_sub_app
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def parse_credentials(credential_options: list[str]) -> dict[str, str]:
|
|
13
|
+
"""
|
|
14
|
+
Parse credential key=value pairs into a dictionary.
|
|
15
|
+
|
|
16
|
+
Args:
|
|
17
|
+
credential_options: Tuple of strings in format "key=value"
|
|
18
|
+
|
|
19
|
+
Returns:
|
|
20
|
+
Dictionary mapping credential keys to values
|
|
21
|
+
|
|
22
|
+
Raises:
|
|
23
|
+
typer.BadParameter: If credential format is invalid
|
|
24
|
+
"""
|
|
25
|
+
credentials = {}
|
|
26
|
+
for cred in credential_options:
|
|
27
|
+
if '=' not in cred:
|
|
28
|
+
msg = f"Invalid credential format: '{cred}'. Expected 'key=value'"
|
|
29
|
+
raise typer.BadParameter(msg)
|
|
30
|
+
key, value = cred.split('=', 1)
|
|
31
|
+
credentials[key.strip()] = value.strip()
|
|
32
|
+
return credentials
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@external_connections_sub_app.command(name='add, a')
|
|
36
|
+
def connection_add_command(
|
|
37
|
+
ctx: typer.Context,
|
|
38
|
+
connection_name: str,
|
|
39
|
+
backend: str,
|
|
40
|
+
credentials: typing.Annotated[
|
|
41
|
+
typing.Optional[list[str]], # noqa: UP007
|
|
42
|
+
Option('--credential', '-c', help='Credential in key=value format. Can be specified multiple times.'),
|
|
43
|
+
] = None,
|
|
44
|
+
env_name: typing.Annotated[
|
|
45
|
+
typing.Optional[str], # noqa: UP007
|
|
46
|
+
Option('--env', help='Environment name. Default is the current environment from configuration.'),
|
|
47
|
+
] = None,
|
|
48
|
+
) -> None:
|
|
49
|
+
"""
|
|
50
|
+
Adds a new external connection to your Cloud Server app.
|
|
51
|
+
"""
|
|
52
|
+
from amsdal.errors import AmsdalCloudError
|
|
53
|
+
from amsdal.manager import AmsdalManager
|
|
54
|
+
from amsdal.manager import AsyncAmsdalManager
|
|
55
|
+
from amsdal_utils.config.manager import AmsdalConfigManager
|
|
56
|
+
|
|
57
|
+
from amsdal_cli.commands.build.services.builder import AppBuilder
|
|
58
|
+
from amsdal_cli.commands.cloud.environments.utils import get_current_env
|
|
59
|
+
from amsdal_cli.utils.cli_config import CliConfig
|
|
60
|
+
from amsdal_cli.utils.text import rich_error
|
|
61
|
+
from amsdal_cli.utils.text import rich_highlight
|
|
62
|
+
from amsdal_cli.utils.text import rich_info
|
|
63
|
+
from amsdal_cli.utils.text import rich_success
|
|
64
|
+
|
|
65
|
+
cli_config: CliConfig = ctx.meta['config']
|
|
66
|
+
env_name = env_name or get_current_env(cli_config)
|
|
67
|
+
|
|
68
|
+
# Parse credentials
|
|
69
|
+
if not credentials or len(credentials) == 0:
|
|
70
|
+
rprint(rich_error('At least one credential must be provided using --credential/-c'))
|
|
71
|
+
raise typer.Exit(1)
|
|
72
|
+
|
|
73
|
+
try:
|
|
74
|
+
credentials_dict = parse_credentials(credentials)
|
|
75
|
+
except typer.BadParameter as e:
|
|
76
|
+
rprint(rich_error(str(e)))
|
|
77
|
+
raise typer.Exit(1) from e
|
|
78
|
+
|
|
79
|
+
if cli_config.verbose:
|
|
80
|
+
rprint(
|
|
81
|
+
rich_info(
|
|
82
|
+
f'Adding external connection {rich_highlight(connection_name)} '
|
|
83
|
+
f'with backend {rich_highlight(backend)} '
|
|
84
|
+
f'to environment: {rich_highlight(env_name)}'
|
|
85
|
+
)
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
with tempfile.TemporaryDirectory() as _temp_dir:
|
|
89
|
+
output_path: Path = Path(_temp_dir)
|
|
90
|
+
|
|
91
|
+
app_builder = AppBuilder(
|
|
92
|
+
cli_config=cli_config,
|
|
93
|
+
config_path=cli_config.config_path,
|
|
94
|
+
)
|
|
95
|
+
app_builder.build(output_path, is_silent=True)
|
|
96
|
+
manager: AsyncAmsdalManager | AmsdalManager
|
|
97
|
+
|
|
98
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
99
|
+
|
|
100
|
+
manager.authenticate()
|
|
101
|
+
|
|
102
|
+
try:
|
|
103
|
+
manager.cloud_actions_manager.add_external_connection(
|
|
104
|
+
connection_name=connection_name,
|
|
105
|
+
backend=backend,
|
|
106
|
+
credentials=credentials_dict,
|
|
107
|
+
env_name=env_name,
|
|
108
|
+
application_uuid=cli_config.application_uuid,
|
|
109
|
+
application_name=cli_config.application_name,
|
|
110
|
+
)
|
|
111
|
+
except AmsdalCloudError as e:
|
|
112
|
+
rprint(rich_error(str(e)))
|
|
113
|
+
raise typer.Exit(1) from e
|
|
114
|
+
else:
|
|
115
|
+
config_dir: Path = cli_config.app_directory / '.amsdal'
|
|
116
|
+
config_dir.mkdir(exist_ok=True, parents=True)
|
|
117
|
+
_connections_path: Path = config_dir / '.external_connections'
|
|
118
|
+
_connections_path.touch(exist_ok=True)
|
|
119
|
+
_connections = set(_connections_path.read_text().split('\n'))
|
|
120
|
+
_connections.add(connection_name)
|
|
121
|
+
_connections_path.write_text('\n'.join(_connections))
|
|
122
|
+
|
|
123
|
+
rprint(rich_success(f'External connection {rich_highlight(connection_name)} added successfully.'))
|
amsdal_cli-0.5.10/src/amsdal_cli/commands/cloud/external_connections/sub_commands/connection_list.py
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import json
|
|
2
|
+
import tempfile
|
|
3
|
+
import typing
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
from typing import Annotated
|
|
6
|
+
|
|
7
|
+
import typer
|
|
8
|
+
from rich import print as rprint
|
|
9
|
+
from rich.table import Table
|
|
10
|
+
from typer import Option
|
|
11
|
+
|
|
12
|
+
from amsdal_cli.commands.cloud.enums import OutputFormat
|
|
13
|
+
from amsdal_cli.commands.cloud.external_connections.app import external_connections_sub_app
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def connection_list_command(
|
|
17
|
+
ctx: typer.Context,
|
|
18
|
+
output: Annotated[OutputFormat, typer.Option('--output', '-o')] = OutputFormat.default,
|
|
19
|
+
env_name: typing.Annotated[
|
|
20
|
+
typing.Optional[str], # noqa: UP007
|
|
21
|
+
Option('--env', help='Environment name. Default is the current environment from configuration.'),
|
|
22
|
+
] = None,
|
|
23
|
+
*,
|
|
24
|
+
sync: bool = Option(
|
|
25
|
+
False,
|
|
26
|
+
'--sync',
|
|
27
|
+
help='Sync the external connections from the Cloud Server to ".external_connections".',
|
|
28
|
+
),
|
|
29
|
+
) -> None:
|
|
30
|
+
"""
|
|
31
|
+
List the app external connections on the Cloud Server.
|
|
32
|
+
|
|
33
|
+
Args:
|
|
34
|
+
ctx (typer.Context): The Typer context object.
|
|
35
|
+
output (Annotated[OutputFormat, typer.Option]): The output format for the list.
|
|
36
|
+
Defaults to OutputFormat.default.
|
|
37
|
+
env_name (typing.Annotated[typing.Optional[str], Option]): The name of the environment. Defaults to the current
|
|
38
|
+
environment from configuration.
|
|
39
|
+
sync (bool): Whether to sync the external connections from the Cloud Server to ".external_connections".
|
|
40
|
+
Defaults to False.
|
|
41
|
+
|
|
42
|
+
Returns:
|
|
43
|
+
None
|
|
44
|
+
"""
|
|
45
|
+
from amsdal.errors import AmsdalCloudError
|
|
46
|
+
from amsdal.manager import AmsdalManager
|
|
47
|
+
from amsdal.manager import AsyncAmsdalManager
|
|
48
|
+
from amsdal_utils.config.manager import AmsdalConfigManager
|
|
49
|
+
|
|
50
|
+
from amsdal_cli.commands.build.services.builder import AppBuilder
|
|
51
|
+
from amsdal_cli.commands.cloud.environments.utils import get_current_env
|
|
52
|
+
from amsdal_cli.utils.cli_config import CliConfig
|
|
53
|
+
from amsdal_cli.utils.text import rich_error
|
|
54
|
+
from amsdal_cli.utils.text import rich_highlight
|
|
55
|
+
from amsdal_cli.utils.text import rich_info
|
|
56
|
+
|
|
57
|
+
cli_config: CliConfig = ctx.meta['config']
|
|
58
|
+
env_name = env_name or get_current_env(cli_config)
|
|
59
|
+
|
|
60
|
+
if cli_config.verbose:
|
|
61
|
+
rprint(rich_info(f'Listing external connections for environment: {rich_highlight(env_name)}'))
|
|
62
|
+
|
|
63
|
+
with tempfile.TemporaryDirectory() as _temp_dir:
|
|
64
|
+
output_path: Path = Path(_temp_dir)
|
|
65
|
+
app_builder = AppBuilder(
|
|
66
|
+
cli_config=cli_config,
|
|
67
|
+
config_path=cli_config.config_path,
|
|
68
|
+
)
|
|
69
|
+
app_builder.build(output_path, is_silent=True)
|
|
70
|
+
manager: AsyncAmsdalManager | AmsdalManager
|
|
71
|
+
|
|
72
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
73
|
+
|
|
74
|
+
manager.authenticate()
|
|
75
|
+
|
|
76
|
+
try:
|
|
77
|
+
list_response = manager.cloud_actions_manager.list_external_connections(
|
|
78
|
+
env_name=env_name,
|
|
79
|
+
application_uuid=cli_config.application_uuid,
|
|
80
|
+
application_name=cli_config.application_name,
|
|
81
|
+
)
|
|
82
|
+
except AmsdalCloudError as e:
|
|
83
|
+
rprint(rich_error(str(e)))
|
|
84
|
+
raise typer.Exit(1) from e
|
|
85
|
+
|
|
86
|
+
if not list_response or not list_response.details:
|
|
87
|
+
return
|
|
88
|
+
|
|
89
|
+
if sync and list_response.details.connections:
|
|
90
|
+
config_dir: Path = cli_config.app_directory / '.amsdal'
|
|
91
|
+
config_dir.mkdir(exist_ok=True, parents=True)
|
|
92
|
+
_connections_path: Path = config_dir / '.external_connections'
|
|
93
|
+
_connections_path.touch(exist_ok=True)
|
|
94
|
+
_connections_path.write_text(
|
|
95
|
+
'\n'.join([connection.name for connection in list_response.details.connections]),
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
if output == OutputFormat.json:
|
|
99
|
+
rprint(json.dumps(list_response.model_dump(), indent=4))
|
|
100
|
+
return
|
|
101
|
+
|
|
102
|
+
if not list_response.details.connections:
|
|
103
|
+
rprint('No external connections found.')
|
|
104
|
+
return
|
|
105
|
+
|
|
106
|
+
data_table = Table()
|
|
107
|
+
data_table.add_column('Connection Name', justify='center')
|
|
108
|
+
data_table.add_column('Backend', justify='center')
|
|
109
|
+
data_table.add_column('Credentials', justify='center')
|
|
110
|
+
|
|
111
|
+
for connection in list_response.details.connections:
|
|
112
|
+
# Show only credential keys, not values for security
|
|
113
|
+
credential_keys = ', '.join(connection.credentials.keys()) if connection.credentials else ''
|
|
114
|
+
data_table.add_row(connection.name, connection.backend, credential_keys)
|
|
115
|
+
|
|
116
|
+
rprint(data_table)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
@external_connections_sub_app.callback(invoke_without_command=True)
|
|
120
|
+
def connection_list_callback(
|
|
121
|
+
ctx: typer.Context,
|
|
122
|
+
output: Annotated[OutputFormat, typer.Option('--output', '-o')] = OutputFormat.default,
|
|
123
|
+
env_name: typing.Annotated[
|
|
124
|
+
typing.Optional[str], # noqa: UP007
|
|
125
|
+
Option('--env', help='Environment name. Default is the current environment from configuration.'),
|
|
126
|
+
] = None,
|
|
127
|
+
*,
|
|
128
|
+
sync: bool = Option(
|
|
129
|
+
False,
|
|
130
|
+
'--sync',
|
|
131
|
+
help='Sync the external connections from the Cloud Server to ".external_connections".',
|
|
132
|
+
),
|
|
133
|
+
) -> None:
|
|
134
|
+
"""
|
|
135
|
+
Lists the app external connections on the Cloud Server.
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
if ctx.invoked_subcommand is not None:
|
|
139
|
+
return
|
|
140
|
+
|
|
141
|
+
connection_list_command(
|
|
142
|
+
ctx=ctx,
|
|
143
|
+
output=output,
|
|
144
|
+
env_name=env_name,
|
|
145
|
+
sync=sync,
|
|
146
|
+
)
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import tempfile
|
|
2
|
+
import typing
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
import typer
|
|
6
|
+
from rich import print as rprint
|
|
7
|
+
from typer import Option
|
|
8
|
+
|
|
9
|
+
from amsdal_cli.commands.cloud.external_connections.app import external_connections_sub_app
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@external_connections_sub_app.command(name='remove, rm, r')
|
|
13
|
+
def connection_remove_command(
|
|
14
|
+
ctx: typer.Context,
|
|
15
|
+
connection_name: str,
|
|
16
|
+
env_name: typing.Annotated[
|
|
17
|
+
typing.Optional[str], # noqa: UP007
|
|
18
|
+
Option('--env', help='Environment name. Default is the current environment from configuration.'),
|
|
19
|
+
] = None,
|
|
20
|
+
) -> None:
|
|
21
|
+
"""
|
|
22
|
+
Removes an external connection from the Cloud Server app.
|
|
23
|
+
"""
|
|
24
|
+
from amsdal.errors import AmsdalCloudError
|
|
25
|
+
from amsdal.manager import AmsdalManager
|
|
26
|
+
from amsdal.manager import AsyncAmsdalManager
|
|
27
|
+
from amsdal_utils.config.manager import AmsdalConfigManager
|
|
28
|
+
|
|
29
|
+
from amsdal_cli.commands.build.services.builder import AppBuilder
|
|
30
|
+
from amsdal_cli.commands.cloud.environments.utils import get_current_env
|
|
31
|
+
from amsdal_cli.utils.cli_config import CliConfig
|
|
32
|
+
from amsdal_cli.utils.text import rich_error
|
|
33
|
+
from amsdal_cli.utils.text import rich_highlight
|
|
34
|
+
from amsdal_cli.utils.text import rich_info
|
|
35
|
+
from amsdal_cli.utils.text import rich_success
|
|
36
|
+
|
|
37
|
+
cli_config: CliConfig = ctx.meta['config']
|
|
38
|
+
env_name = env_name or get_current_env(cli_config)
|
|
39
|
+
|
|
40
|
+
if cli_config.verbose:
|
|
41
|
+
rprint(
|
|
42
|
+
rich_info(
|
|
43
|
+
f'Removing external connection {rich_highlight(connection_name)} '
|
|
44
|
+
f'from environment: {rich_highlight(env_name)}'
|
|
45
|
+
)
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
with tempfile.TemporaryDirectory() as _temp_dir:
|
|
49
|
+
output_path: Path = Path(_temp_dir)
|
|
50
|
+
app_builder = AppBuilder(
|
|
51
|
+
cli_config=cli_config,
|
|
52
|
+
config_path=cli_config.config_path,
|
|
53
|
+
)
|
|
54
|
+
app_builder.build(output_path, is_silent=True)
|
|
55
|
+
manager: AsyncAmsdalManager | AmsdalManager
|
|
56
|
+
|
|
57
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
58
|
+
|
|
59
|
+
manager.authenticate()
|
|
60
|
+
|
|
61
|
+
try:
|
|
62
|
+
manager.cloud_actions_manager.remove_external_connection(
|
|
63
|
+
connection_name=connection_name,
|
|
64
|
+
env_name=env_name,
|
|
65
|
+
application_uuid=cli_config.application_uuid,
|
|
66
|
+
application_name=cli_config.application_name,
|
|
67
|
+
)
|
|
68
|
+
except AmsdalCloudError as e:
|
|
69
|
+
rprint(rich_error(str(e)))
|
|
70
|
+
raise typer.Exit(1) from e
|
|
71
|
+
else:
|
|
72
|
+
config_dir: Path = cli_config.app_directory / '.amsdal'
|
|
73
|
+
config_dir.mkdir(exist_ok=True, parents=True)
|
|
74
|
+
_connections_path: Path = config_dir / '.external_connections'
|
|
75
|
+
_connections_path.touch(exist_ok=True)
|
|
76
|
+
_connections = set(_connections_path.read_text().split('\n'))
|
|
77
|
+
|
|
78
|
+
if connection_name in _connections:
|
|
79
|
+
_connections.remove(connection_name)
|
|
80
|
+
_connections_path.write_text('\n'.join(_connections))
|
|
81
|
+
|
|
82
|
+
rprint(rich_success(f'External connection {rich_highlight(connection_name)} removed successfully.'))
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import tempfile
|
|
2
|
+
import typing
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
import typer
|
|
6
|
+
from rich import print as rprint
|
|
7
|
+
from typer import Option
|
|
8
|
+
|
|
9
|
+
from amsdal_cli.commands.cloud.external_connections.app import external_connections_sub_app
|
|
10
|
+
from amsdal_cli.commands.cloud.external_connections.sub_commands.connection_add import parse_credentials
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@external_connections_sub_app.command(name='update, u')
|
|
14
|
+
def connection_update_command(
|
|
15
|
+
ctx: typer.Context,
|
|
16
|
+
connection_name: str,
|
|
17
|
+
backend: typing.Annotated[
|
|
18
|
+
typing.Optional[str], # noqa: UP007
|
|
19
|
+
Option('--backend', '-b', help='New backend type for the connection.'),
|
|
20
|
+
] = None,
|
|
21
|
+
credentials: typing.Annotated[
|
|
22
|
+
typing.Optional[list[str]], # noqa: UP007
|
|
23
|
+
Option('--credential', '-c', help='Credential in key=value format. Can be specified multiple times.'),
|
|
24
|
+
] = None,
|
|
25
|
+
env_name: typing.Annotated[
|
|
26
|
+
typing.Optional[str], # noqa: UP007
|
|
27
|
+
Option('--env', help='Environment name. Default is the current environment from configuration.'),
|
|
28
|
+
] = None,
|
|
29
|
+
) -> None:
|
|
30
|
+
"""
|
|
31
|
+
Updates an existing external connection in your Cloud Server app.
|
|
32
|
+
"""
|
|
33
|
+
from amsdal.errors import AmsdalCloudError
|
|
34
|
+
from amsdal.manager import AmsdalManager
|
|
35
|
+
from amsdal.manager import AsyncAmsdalManager
|
|
36
|
+
from amsdal_utils.config.manager import AmsdalConfigManager
|
|
37
|
+
|
|
38
|
+
from amsdal_cli.commands.build.services.builder import AppBuilder
|
|
39
|
+
from amsdal_cli.commands.cloud.environments.utils import get_current_env
|
|
40
|
+
from amsdal_cli.utils.cli_config import CliConfig
|
|
41
|
+
from amsdal_cli.utils.text import rich_error
|
|
42
|
+
from amsdal_cli.utils.text import rich_highlight
|
|
43
|
+
from amsdal_cli.utils.text import rich_info
|
|
44
|
+
from amsdal_cli.utils.text import rich_success
|
|
45
|
+
|
|
46
|
+
cli_config: CliConfig = ctx.meta['config']
|
|
47
|
+
env_name = env_name or get_current_env(cli_config)
|
|
48
|
+
|
|
49
|
+
# Validate that at least one update parameter is provided
|
|
50
|
+
if not backend and (not credentials or len(credentials) == 0):
|
|
51
|
+
rprint(rich_error('No updates specified. Provide --backend or --credential.'))
|
|
52
|
+
raise typer.Exit(1)
|
|
53
|
+
|
|
54
|
+
# Parse credentials if provided
|
|
55
|
+
credentials_dict = None
|
|
56
|
+
if credentials:
|
|
57
|
+
try:
|
|
58
|
+
credentials_dict = parse_credentials(credentials)
|
|
59
|
+
except typer.BadParameter as e:
|
|
60
|
+
rprint(rich_error(str(e)))
|
|
61
|
+
raise typer.Exit(1) from e
|
|
62
|
+
|
|
63
|
+
if cli_config.verbose:
|
|
64
|
+
update_info = []
|
|
65
|
+
if backend:
|
|
66
|
+
update_info.append(f'backend to {rich_highlight(backend)}')
|
|
67
|
+
if credentials_dict:
|
|
68
|
+
update_info.append('credentials')
|
|
69
|
+
rprint(
|
|
70
|
+
rich_info(
|
|
71
|
+
f'Updating external connection {rich_highlight(connection_name)} '
|
|
72
|
+
f'({", ".join(update_info)}) '
|
|
73
|
+
f'in environment: {rich_highlight(env_name)}'
|
|
74
|
+
)
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
with tempfile.TemporaryDirectory() as _temp_dir:
|
|
78
|
+
output_path: Path = Path(_temp_dir)
|
|
79
|
+
|
|
80
|
+
app_builder = AppBuilder(
|
|
81
|
+
cli_config=cli_config,
|
|
82
|
+
config_path=cli_config.config_path,
|
|
83
|
+
)
|
|
84
|
+
app_builder.build(output_path, is_silent=True)
|
|
85
|
+
manager: AsyncAmsdalManager | AmsdalManager
|
|
86
|
+
|
|
87
|
+
manager = AsyncAmsdalManager() if AmsdalConfigManager().get_config().async_mode else AmsdalManager()
|
|
88
|
+
|
|
89
|
+
manager.authenticate()
|
|
90
|
+
|
|
91
|
+
try:
|
|
92
|
+
manager.cloud_actions_manager.update_external_connection(
|
|
93
|
+
connection_name=connection_name,
|
|
94
|
+
env_name=env_name,
|
|
95
|
+
backend=backend,
|
|
96
|
+
credentials=credentials_dict,
|
|
97
|
+
application_uuid=cli_config.application_uuid,
|
|
98
|
+
application_name=cli_config.application_name,
|
|
99
|
+
)
|
|
100
|
+
except AmsdalCloudError as e:
|
|
101
|
+
rprint(rich_error(str(e)))
|
|
102
|
+
raise typer.Exit(1) from e
|
|
103
|
+
|
|
104
|
+
rprint(rich_success(f'External connection {rich_highlight(connection_name)} updated successfully.'))
|
{amsdal_cli-0.5.8 → amsdal_cli-0.5.10}/src/amsdal_cli/commands/generate/utils/tests/type_utils.py
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ast
|
|
2
|
+
from datetime import UTC
|
|
2
3
|
from datetime import date
|
|
3
|
-
from datetime import timezone
|
|
4
4
|
from pathlib import Path
|
|
5
5
|
|
|
6
6
|
import faker
|
|
@@ -122,7 +122,7 @@ def _generate_values_for_type(
|
|
|
122
122
|
return ast.Constant(value='2023-01-01T00:00:00Z')
|
|
123
123
|
|
|
124
124
|
if test_data_type == TestDataType.RANDOM:
|
|
125
|
-
dt = FAKER.date_time(tzinfo=
|
|
125
|
+
dt = FAKER.date_time(tzinfo=UTC).replace(hour=0, minute=0, second=0, microsecond=0)
|
|
126
126
|
return ast.Constant(value=dt) # type: ignore[arg-type]
|
|
127
127
|
if test_data_type == TestDataType.DYNAMIC:
|
|
128
128
|
return _faker_call('date_time')
|
|
@@ -132,7 +132,7 @@ def _generate_values_for_type(
|
|
|
132
132
|
return ast.Constant(value=date(2023, 1, 1)) # type: ignore[arg-type]
|
|
133
133
|
|
|
134
134
|
if test_data_type == TestDataType.RANDOM:
|
|
135
|
-
dt = FAKER.date_time(tzinfo=
|
|
135
|
+
dt = FAKER.date_time(tzinfo=UTC).replace(hour=0, minute=0, second=0, microsecond=0)
|
|
136
136
|
return ast.Constant(value=dt.date()) # type: ignore[arg-type]
|
|
137
137
|
|
|
138
138
|
if test_data_type == TestDataType.DYNAMIC:
|