activemodel 0.25.1__tar.gz → 0.25.3__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.
Files changed (39) hide show
  1. {activemodel-0.25.1 → activemodel-0.25.3}/PKG-INFO +2 -5
  2. {activemodel-0.25.1 → activemodel-0.25.3}/README.md +0 -3
  3. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/patches/get_column_from_field_patch.py +1 -1
  4. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/patches/get_sqlalchemy_type_patch.py +1 -1
  5. activemodel-0.25.3/pyproject.toml +103 -0
  6. activemodel-0.25.1/pyproject.toml → activemodel-0.25.3/pyproject.toml.orig +2 -2
  7. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/__init__.py +0 -0
  8. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/base_model.py +0 -0
  9. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/celery.py +0 -0
  10. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/decorators.py +0 -0
  11. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/errors.py +0 -0
  12. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/jsonb_snapshot.py +0 -0
  13. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/logger.py +0 -0
  14. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/mixins/__init__.py +0 -0
  15. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/mixins/pydantic_json.py +0 -0
  16. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/mixins/soft_delete.py +0 -0
  17. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/mixins/timestamps.py +0 -0
  18. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/mixins/typeid.py +0 -0
  19. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/patches/__init__.py +0 -0
  20. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/py.typed +0 -0
  21. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/pytest/__init__.py +0 -0
  22. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/pytest/factories.py +0 -0
  23. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/pytest/plugin.py +0 -0
  24. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/pytest/transaction.py +0 -0
  25. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/pytest/truncate.py +0 -0
  26. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/query_wrapper.py +0 -0
  27. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/session_manager.py +0 -0
  28. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/types/__init__.py +0 -0
  29. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/types/sqlalchemy_protocol.py +0 -0
  30. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/types/sqlalchemy_protocol.pyi +0 -0
  31. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/types/typeid.py +0 -0
  32. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/types/typeid_patch.py +0 -0
  33. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/types/whenever/__init__.py +0 -0
  34. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/types/whenever/date_type.py +0 -0
  35. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/types/whenever/instant_type.py +0 -0
  36. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/types/whenever/plain_date_time_type.py +0 -0
  37. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/types/whenever/time_type.py +0 -0
  38. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/types/whenever/zoned_date_time_type.py +0 -0
  39. {activemodel-0.25.1 → activemodel-0.25.3}/activemodel/utils.py +0 -0
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: activemodel
3
- Version: 0.25.1
3
+ Version: 0.25.3
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.48
8
+ Requires-Dist: sqlmodel==0.0.50
9
9
  Requires-Dist: typeid-python==0.3.11
10
10
  Requires-Dist: whenever>=0.10.3
11
11
  Requires-Python: >=3.13
@@ -37,9 +37,6 @@ This package provides a thin wrapper around SQLModel that provides a more Active
37
37
  * **Smart Table & Constraint Naming**: Consistent snake_case table names and standardized naming conventions for indexes and constraints.
38
38
  * **Pytest Integration**: Built-in fixtures, database cleanup strategies, and factory integration for robust testing.
39
39
 
40
- > [!TIP]
41
- > This documentation is pretty bad. The tests and docstrs on code are the best way to learn how to use this.
42
-
43
40
  ## Installation
44
41
 
45
42
  ```bash
@@ -22,9 +22,6 @@ This package provides a thin wrapper around SQLModel that provides a more Active
22
22
  * **Smart Table & Constraint Naming**: Consistent snake_case table names and standardized naming conventions for indexes and constraints.
23
23
  * **Pytest Integration**: Built-in fixtures, database cleanup strategies, and factory integration for robust testing.
24
24
 
25
- > [!TIP]
26
- > This documentation is pretty bad. The tests and docstrs on code are the best way to learn how to use this.
27
-
28
25
  ## Installation
29
26
 
30
27
  ```bash
@@ -40,7 +40,7 @@ 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.46/sqlmodel/main.py#L779
43
+ # https://github.com/fastapi/sqlmodel/blob/0.0.50/sqlmodel/main.py#L780
44
44
  assert (
45
45
  hash_function_code(sqlmodel.main.get_column_from_field)
46
46
  == "fa21be4f8a085f8b65d7ac7f48db05b7577ac44b1a9e8f0bf797be7dfb0f0480"
@@ -24,7 +24,7 @@ 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.46/sqlmodel/main.py#L723
27
+ # https://github.com/fastapi/sqlmodel/blob/0.0.50/sqlmodel/main.py#L724
28
28
  assert (
29
29
  hash_function_code(sqlmodel.main.get_sqlalchemy_type)
30
30
  == "8c3e0912c0d507ca18b6db65494fb3e85f09b7eddd7fe91da9af95e2e41cfd31"
@@ -0,0 +1,103 @@
1
+ [project]
2
+ name = "activemodel"
3
+ version = "0.25.3"
4
+ description = "SQLModel with developer ergonomics. Make SQLModel act like ActiveRecord."
5
+ readme = "README.md"
6
+ requires-python = ">=3.13"
7
+ dependencies = [
8
+ "sqlmodel==0.0.50",
9
+ "typeid-python==0.3.11",
10
+ "whenever>=0.10.3",
11
+ ]
12
+ keywords = [
13
+ "sqlmodel",
14
+ "orm",
15
+ "activerecord",
16
+ "activemodel",
17
+ "sqlalchemy",
18
+ ]
19
+
20
+ [[project.authors]]
21
+ name = "Michael Bianco"
22
+ email = "iloveitaly@gmail.com"
23
+
24
+ [project.urls]
25
+ Repository = "https://github.com/iloveitaly/activemodel"
26
+ Documentation = "https://iloveitaly.github.io/activemodel/"
27
+
28
+ [project.entry-points.pytest11]
29
+ activemodel = "activemodel.pytest.plugin"
30
+
31
+ [build-system]
32
+ requires = ["uv_build>=0.11.0,<0.14"]
33
+ build-backend = "uv_build"
34
+
35
+ [tool.uv]
36
+ package = true
37
+
38
+ [tool.uv.build-backend]
39
+ module-root = ""
40
+ source-exclude = ["scripts/"]
41
+ wheel-exclude = ["scripts/"]
42
+
43
+ [tool.pyright]
44
+ exclude = [
45
+ "examples/",
46
+ "playground/",
47
+ "tmp/",
48
+ ".venv/",
49
+ "tests/migrations/",
50
+ "scripts/",
51
+ "build/",
52
+ "dist/",
53
+ ]
54
+
55
+ [tool.pytest.ini_options]
56
+ addopts = "--cov --cov-report=term-missing --cov-report=html:tmp/htmlcov"
57
+ norecursedirs = ["scripts"]
58
+
59
+ [tool.coverage.run]
60
+ plugins = ["covdefaults"]
61
+ source = ["activemodel"]
62
+
63
+ [tool.coverage.report]
64
+ fail_under = 50
65
+
66
+ [tool.ruff]
67
+ extend-exclude = [
68
+ "playground.py",
69
+ "playground/",
70
+ "tests/migrations/",
71
+ "scripts/",
72
+ "build/",
73
+ "dist/",
74
+ ]
75
+
76
+ [dependency-groups]
77
+ debugging-extras = ["pytest-watcher>=0.4.3"]
78
+ dev = [
79
+ "ipdb>=0.13.13",
80
+ "pdbr>=0.8.9",
81
+ "psycopg[binary]>=3.2.3",
82
+ "pytest>=8.3.4",
83
+ "pydantic>=2.10.0",
84
+ "fastapi[standard]>=0.115.6",
85
+ "alembic>=1.14.1",
86
+ "pyright[nodejs]>=1.1.408",
87
+ "polyfactory>=2.22.1",
88
+ "ruff>=0.15.0",
89
+ "coverage>=7.13.4",
90
+ "pytest-cov>=7.0.0",
91
+ "covdefaults>=2.3.0",
92
+ "factory-boy>=3.3.3",
93
+ ]
94
+ docs = [
95
+ "sphinx>=7.1.2",
96
+ "shibuya",
97
+ "myst-parser>=2.0.0",
98
+ "sphinx-design>=0.5.0",
99
+ "sphinx-copybutton>=0.5.2",
100
+ "sphinx-autobuild",
101
+ "sphinx-autoapi",
102
+ "sphinx-llm",
103
+ ]
@@ -1,11 +1,11 @@
1
1
  [project]
2
2
  name = "activemodel"
3
- version = "0.25.1"
3
+ version = "0.25.3"
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.48",
8
+ "sqlmodel==0.0.50",
9
9
  "typeid-python==0.3.11",
10
10
  "whenever>=0.10.3",
11
11
  ]