amsdal 0.5.4__cp312-cp312-macosx_10_13_universal2.whl → 0.5.5__cp312-cp312-macosx_10_13_universal2.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. amsdal/__about__.py +1 -1
  2. amsdal/cloud/__init__.cpython-312-darwin.so +0 -0
  3. amsdal/cloud/client.cpython-312-darwin.so +0 -0
  4. amsdal/cloud/constants.cpython-312-darwin.so +0 -0
  5. amsdal/cloud/enums.cpython-312-darwin.so +0 -0
  6. amsdal/cloud/models/__init__.cpython-312-darwin.so +0 -0
  7. amsdal/cloud/models/base.cpython-312-darwin.so +0 -0
  8. amsdal/cloud/services/__init__.cpython-312-darwin.so +0 -0
  9. amsdal/cloud/services/actions/__init__.cpython-312-darwin.so +0 -0
  10. amsdal/cloud/services/actions/add_allowlist_ip.cpython-312-darwin.so +0 -0
  11. amsdal/cloud/services/actions/add_basic_auth.cpython-312-darwin.so +0 -0
  12. amsdal/cloud/services/actions/add_dependency.cpython-312-darwin.so +0 -0
  13. amsdal/cloud/services/actions/add_secret.cpython-312-darwin.so +0 -0
  14. amsdal/cloud/services/actions/base.cpython-312-darwin.so +0 -0
  15. amsdal/cloud/services/actions/create_deploy.cpython-312-darwin.so +0 -0
  16. amsdal/cloud/services/actions/create_env.cpython-312-darwin.so +0 -0
  17. amsdal/cloud/services/actions/create_session.cpython-312-darwin.so +0 -0
  18. amsdal/cloud/services/actions/delete_allowlist_ip.cpython-312-darwin.so +0 -0
  19. amsdal/cloud/services/actions/delete_basic_auth.cpython-312-darwin.so +0 -0
  20. amsdal/cloud/services/actions/delete_dependency.cpython-312-darwin.so +0 -0
  21. amsdal/cloud/services/actions/delete_env.cpython-312-darwin.so +0 -0
  22. amsdal/cloud/services/actions/delete_secret.cpython-312-darwin.so +0 -0
  23. amsdal/cloud/services/actions/destroy_deploy.cpython-312-darwin.so +0 -0
  24. amsdal/cloud/services/actions/expose_db.cpython-312-darwin.so +0 -0
  25. amsdal/cloud/services/actions/get_basic_auth_credentials.cpython-312-darwin.so +0 -0
  26. amsdal/cloud/services/actions/get_monitoring_info.cpython-312-darwin.so +0 -0
  27. amsdal/cloud/services/actions/list_dependencies.cpython-312-darwin.so +0 -0
  28. amsdal/cloud/services/actions/list_deploys.cpython-312-darwin.so +0 -0
  29. amsdal/cloud/services/actions/list_envs.cpython-312-darwin.so +0 -0
  30. amsdal/cloud/services/actions/list_secrets.cpython-312-darwin.so +0 -0
  31. amsdal/cloud/services/actions/manager.cpython-312-darwin.so +0 -0
  32. amsdal/cloud/services/actions/signup_action.cpython-312-darwin.so +0 -0
  33. amsdal/cloud/services/actions/update_deploy.cpython-312-darwin.so +0 -0
  34. amsdal/cloud/services/auth/__init__.cpython-312-darwin.so +0 -0
  35. amsdal/cloud/services/auth/base.cpython-312-darwin.so +0 -0
  36. amsdal/cloud/services/auth/credentials.cpython-312-darwin.so +0 -0
  37. amsdal/cloud/services/auth/manager.cpython-312-darwin.so +0 -0
  38. amsdal/cloud/services/auth/signup_service.cpython-312-darwin.so +0 -0
  39. amsdal/cloud/services/auth/token.cpython-312-darwin.so +0 -0
  40. amsdal/contrib/__init__.cpython-312-darwin.so +0 -0
  41. amsdal/contrib/auth/lifecycle/consumer.pyi +1 -1
  42. amsdal/contrib/auth/models/login_session.pyi +4 -4
  43. amsdal/contrib/auth/models/permission.pyi +3 -3
  44. amsdal/contrib/auth/models/user.pyi +6 -5
  45. amsdal/contrib/frontend_configs/models/frontend_model_config.pyi +3 -3
  46. amsdal/fixtures/__init__.cpython-312-darwin.so +0 -0
  47. amsdal/fixtures/manager.cpython-312-darwin.so +0 -0
  48. amsdal/fixtures/manager.pyi +1 -1
  49. amsdal/fixtures/utils.cpython-312-darwin.so +0 -0
  50. amsdal/manager.cpython-312-darwin.so +0 -0
  51. amsdal/mixins/__init__.cpython-312-darwin.so +0 -0
  52. amsdal/mixins/class_versions_mixin.cpython-312-darwin.so +0 -0
  53. amsdal/models/core/class_object.pyi +8 -8
  54. amsdal/models/core/file.pyi +4 -4
  55. amsdal/models/core/fixture.pyi +6 -6
  56. amsdal/models/types/object.pyi +9 -9
  57. amsdal/schemas/manager.cpython-312-darwin.so +0 -0
  58. amsdal/services/__init__.cpython-312-darwin.so +0 -0
  59. amsdal/services/transaction_execution.cpython-312-darwin.so +0 -0
  60. amsdal/utils/tests/enums.py +0 -2
  61. amsdal/utils/tests/helpers.py +213 -381
  62. amsdal/utils/tests/migrations.py +179 -0
  63. {amsdal-0.5.4.dist-info → amsdal-0.5.5.dist-info}/METADATA +10 -6
  64. {amsdal-0.5.4.dist-info → amsdal-0.5.5.dist-info}/RECORD +67 -66
  65. {amsdal-0.5.4.dist-info → amsdal-0.5.5.dist-info}/WHEEL +0 -0
  66. {amsdal-0.5.4.dist-info → amsdal-0.5.5.dist-info}/licenses/LICENSE.txt +0 -0
  67. {amsdal-0.5.4.dist-info → amsdal-0.5.5.dist-info}/top_level.txt +0 -0
amsdal/__about__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2023-present
2
2
  #
3
3
  # SPDX-License-Identifier: AMSDAL End User License Agreement
4
- __version__ = '0.5.4'
4
+ __version__ = '0.5.5'
Binary file
Binary file
Binary file
@@ -1,7 +1,7 @@
1
1
  from _typeshed import Incomplete
2
2
  from amsdal.contrib.auth.errors import AuthenticationError as AuthenticationError
3
3
  from amsdal_data.transactions.decorators import async_transaction, transaction
4
- from amsdal_models.classes.model import Model
4
+ from amsdal_models.classes.model import Model as Model
5
5
  from amsdal_utils.lifecycle.consumer import LifecycleConsumer
6
6
  from typing import Any
7
7
 
@@ -3,10 +3,10 @@ from amsdal_utils.models.enums import ModuleType
3
3
  from typing import Any, ClassVar
4
4
 
5
5
  class LoginSession(Model):
6
- __module_type__: ClassVar[ModuleType] = ...
7
- email: str = ...
8
- password: str = ...
9
- token: str | None = ...
6
+ __module_type__: ClassVar[ModuleType]
7
+ email: str
8
+ password: str
9
+ token: str | None
10
10
  @property
11
11
  def display_name(self) -> str:
12
12
  """
@@ -3,9 +3,9 @@ from amsdal_utils.models.enums import ModuleType
3
3
  from typing import ClassVar
4
4
 
5
5
  class Permission(Model):
6
- __module_type__: ClassVar[ModuleType] = ...
7
- model: str = ...
8
- action: str = ...
6
+ __module_type__: ClassVar[ModuleType]
7
+ model: str
8
+ action: str
9
9
  @property
10
10
  def display_name(self) -> str:
11
11
  """
@@ -1,13 +1,14 @@
1
1
  from amsdal.contrib.auth.models.permission import *
2
+ from _typeshed import Incomplete
2
3
  from amsdal_models.classes.model import Model
3
4
  from amsdal_utils.models.enums import ModuleType
4
5
  from typing import Any, ClassVar
5
6
 
6
7
  class User(Model):
7
- __module_type__: ClassVar[ModuleType] = ...
8
- email: str = ...
9
- password: bytes = ...
10
- permissions: list['Permission'] | None = ...
8
+ __module_type__: ClassVar[ModuleType]
9
+ email: str
10
+ password: bytes
11
+ permissions: list['Permission'] | None
11
12
  def __repr__(self) -> str: ...
12
13
  def __str__(self) -> str: ...
13
14
  async def apre_update(self) -> None: ...
@@ -21,7 +22,7 @@ class User(Model):
21
22
  Returns:
22
23
  str: The email of the user.
23
24
  """
24
- _object_id = ...
25
+ _object_id: Incomplete
25
26
  def post_init(self, *, is_new_object: bool, kwargs: dict[str, Any]) -> None:
26
27
  """
27
28
  Post-initializes a user object by validating email and password, and hashing the password.
@@ -4,6 +4,6 @@ from amsdal_utils.models.enums import ModuleType
4
4
  from typing import ClassVar
5
5
 
6
6
  class FrontendModelConfig(Model):
7
- __module_type__: ClassVar[ModuleType] = ...
8
- class_name: str = ...
9
- control: FrontendControlConfig | None = ...
7
+ __module_type__: ClassVar[ModuleType]
8
+ class_name: str
9
+ control: FrontendControlConfig | None
@@ -1,6 +1,6 @@
1
1
  from _typeshed import Incomplete
2
2
  from amsdal.fixtures.utils import process_fixture_value as process_fixture_value
3
- from amsdal_models.classes.model import Model
3
+ from amsdal_models.classes.model import Model as Model
4
4
  from collections.abc import Generator
5
5
  from pathlib import Path
6
6
  from pydantic import BaseModel
Binary file
Binary file
@@ -5,14 +5,14 @@ from amsdal_utils.models.enums import ModuleType
5
5
  from typing import Any, ClassVar
6
6
 
7
7
  class ClassObject(Model):
8
- __module_type__: ClassVar[ModuleType] = ...
9
- title: str = ...
10
- type: str = ...
11
- module_type: str = ...
12
- properties: dict[str, ClassProperty | None] | None = ...
13
- required: list[str] | None = ...
14
- custom_code: str | None = ...
15
- storage_metadata: StorageMetadata | None = ...
8
+ __module_type__: ClassVar[ModuleType]
9
+ title: str
10
+ type: str
11
+ module_type: str
12
+ properties: dict[str, ClassProperty | None] | None
13
+ required: list[str] | None
14
+ custom_code: str | None
15
+ storage_metadata: StorageMetadata | None
16
16
  @classmethod
17
17
  def _non_empty_keys_properties(cls, value: Any) -> Any: ...
18
18
  @property
@@ -4,10 +4,10 @@ from pathlib import Path
4
4
  from typing import BinaryIO, ClassVar
5
5
 
6
6
  class File(Model):
7
- __module_type__: ClassVar[ModuleType] = ...
8
- filename: str = ...
9
- data: bytes = ...
10
- size: float | None = ...
7
+ __module_type__: ClassVar[ModuleType]
8
+ filename: str
9
+ data: bytes
10
+ size: float | None
11
11
  def __repr__(self) -> str: ...
12
12
  def __str__(self) -> str: ...
13
13
  async def apre_create(self) -> None:
@@ -4,11 +4,11 @@ from amsdal_utils.models.enums import ModuleType
4
4
  from typing import Any, ClassVar
5
5
 
6
6
  class Fixture(Model):
7
- __module_type__: ClassVar[ModuleType] = ...
8
- __constraints__: ClassVar[list[UniqueConstraint]] = ...
9
- class_name: str | None = ...
10
- order: float | None = ...
11
- external_id: str = ...
12
- data: dict[str, Any | None] = ...
7
+ __module_type__: ClassVar[ModuleType]
8
+ __constraints__: ClassVar[list[UniqueConstraint]]
9
+ class_name: str | None
10
+ order: float | None
11
+ external_id: str
12
+ data: dict[str, Any | None]
13
13
  @classmethod
14
14
  def _non_empty_keys_data(cls, value: Any) -> Any: ...
@@ -3,14 +3,14 @@ from amsdal_utils.models.enums import ModuleType
3
3
  from typing import Any, ClassVar
4
4
 
5
5
  class Object(Model):
6
- __module_type__: ClassVar[ModuleType] = ...
7
- title: str = ...
8
- type: str = ...
9
- module_type: str = ...
10
- default: Any | None = ...
11
- properties: dict[str, Any | None] | None = ...
12
- required: list[str] | None = ...
13
- custom_code: str | None = ...
14
- meta_class: str | None = ...
6
+ __module_type__: ClassVar[ModuleType]
7
+ title: str
8
+ type: str
9
+ module_type: str
10
+ default: Any | None
11
+ properties: dict[str, Any | None] | None
12
+ required: list[str] | None
13
+ custom_code: str | None
14
+ meta_class: str | None
15
15
  @classmethod
16
16
  def _non_empty_keys_properties(cls, value: Any) -> Any: ...
@@ -13,6 +13,4 @@ class StateOption(str, Enum):
13
13
 
14
14
  class LakehouseOption(str, Enum):
15
15
  postgres = 'postgres'
16
- postgres_immutable = 'postgres-immutable'
17
16
  sqlite = 'sqlite'
18
- sqlite_immutable = 'sqlite-immutable'