activemodel 0.24.3__tar.gz → 0.25.0__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.
- {activemodel-0.24.3 → activemodel-0.25.0}/PKG-INFO +2 -2
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/patches/get_column_from_field_patch.py +3 -3
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/patches/get_sqlalchemy_type_patch.py +2 -2
- {activemodel-0.24.3 → activemodel-0.25.0}/pyproject.toml +2 -2
- {activemodel-0.24.3 → activemodel-0.25.0}/README.md +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/__init__.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/base_model.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/celery.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/decorators.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/errors.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/jsonb_snapshot.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/logger.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/mixins/__init__.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/mixins/pydantic_json.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/mixins/soft_delete.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/mixins/timestamps.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/mixins/typeid.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/patches/__init__.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/py.typed +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/pytest/__init__.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/pytest/factories.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/pytest/plugin.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/pytest/transaction.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/pytest/truncate.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/query_wrapper.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/session_manager.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/types/__init__.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/types/sqlalchemy_protocol.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/types/sqlalchemy_protocol.pyi +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/types/typeid.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/types/typeid_patch.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/types/whenever/__init__.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/types/whenever/date_type.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/types/whenever/instant_type.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/types/whenever/plain_date_time_type.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/types/whenever/time_type.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/types/whenever/zoned_date_time_type.py +0 -0
- {activemodel-0.24.3 → activemodel-0.25.0}/activemodel/utils.py +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: activemodel
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.25.0
|
|
4
4
|
Summary: SQLModel with developer ergonomics. Make SQLModel act like ActiveRecord.
|
|
5
5
|
Keywords: sqlmodel,orm,activerecord,activemodel,sqlalchemy
|
|
6
6
|
Author: Michael Bianco
|
|
7
7
|
Author-email: Michael Bianco <iloveitaly@gmail.com>
|
|
8
|
-
Requires-Dist: sqlmodel==0.0.
|
|
8
|
+
Requires-Dist: sqlmodel==0.0.46
|
|
9
9
|
Requires-Dist: typeid-python==0.3.10
|
|
10
10
|
Requires-Dist: whenever>=0.10.3
|
|
11
11
|
Requires-Python: >=3.13
|
{activemodel-0.24.3 → activemodel-0.25.0}/activemodel/patches/get_column_from_field_patch.py
RENAMED
|
@@ -40,10 +40,10 @@ if TYPE_CHECKING:
|
|
|
40
40
|
from pydantic_core import PydanticUndefinedType as UndefinedType
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
# https://github.com/fastapi/sqlmodel/blob/0.0.
|
|
43
|
+
# https://github.com/fastapi/sqlmodel/blob/0.0.46/sqlmodel/main.py#L779
|
|
44
44
|
assert (
|
|
45
45
|
hash_function_code(sqlmodel.main.get_column_from_field)
|
|
46
|
-
== "
|
|
46
|
+
== "fa21be4f8a085f8b65d7ac7f48db05b7577ac44b1a9e8f0bf797be7dfb0f0480"
|
|
47
47
|
), (
|
|
48
48
|
f"get_column_from_field has changed, please verify the patch is still valid: {hash_function_code(sqlmodel.main.get_column_from_field)}"
|
|
49
49
|
)
|
|
@@ -122,7 +122,7 @@ def get_column_from_field(field: Any) -> Column:
|
|
|
122
122
|
|
|
123
123
|
if sa_column_kwargs is not Undefined:
|
|
124
124
|
kwargs.update(cast(dict[Any, Any], sa_column_kwargs))
|
|
125
|
-
return Column(
|
|
125
|
+
return Column(*args, type_=sa_type, **kwargs) # type: ignore
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
sqlmodel.main.get_column_from_field = get_column_from_field
|
|
@@ -24,10 +24,10 @@ from activemodel.types.whenever import (
|
|
|
24
24
|
)
|
|
25
25
|
from activemodel.utils import hash_function_code
|
|
26
26
|
|
|
27
|
-
# https://github.com/fastapi/sqlmodel/blob/0.0.
|
|
27
|
+
# https://github.com/fastapi/sqlmodel/blob/0.0.46/sqlmodel/main.py#L723
|
|
28
28
|
assert (
|
|
29
29
|
hash_function_code(sqlmodel.main.get_sqlalchemy_type)
|
|
30
|
-
== "
|
|
30
|
+
== "8c3e0912c0d507ca18b6db65494fb3e85f09b7eddd7fe91da9af95e2e41cfd31"
|
|
31
31
|
), (
|
|
32
32
|
f"get_sqlalchemy_type has changed, please verify the patch is still valid: {hash_function_code(sqlmodel.main.get_sqlalchemy_type)}"
|
|
33
33
|
)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "activemodel"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.25.0"
|
|
4
4
|
description = "SQLModel with developer ergonomics. Make SQLModel act like ActiveRecord."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.13"
|
|
7
7
|
dependencies = [
|
|
8
|
-
"sqlmodel==0.0.
|
|
8
|
+
"sqlmodel==0.0.46",
|
|
9
9
|
"typeid-python==0.3.10",
|
|
10
10
|
"whenever>=0.10.3",
|
|
11
11
|
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{activemodel-0.24.3 → activemodel-0.25.0}/activemodel/types/whenever/plain_date_time_type.py
RENAMED
|
File without changes
|
|
File without changes
|
{activemodel-0.24.3 → activemodel-0.25.0}/activemodel/types/whenever/zoned_date_time_type.py
RENAMED
|
File without changes
|
|
File without changes
|