sqlalchemy2-datatables 0.6.1__tar.gz → 0.7.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.
Files changed (26) hide show
  1. sqlalchemy2_datatables-0.7.0/.github/workflows/tests.yml +39 -0
  2. sqlalchemy2_datatables-0.7.0/.gitignore +169 -0
  3. sqlalchemy2_datatables-0.7.0/.pre-commit-config.yaml +36 -0
  4. sqlalchemy2_datatables-0.7.0/LICENCE +21 -0
  5. {sqlalchemy2_datatables-0.6.1 → sqlalchemy2_datatables-0.7.0}/PKG-INFO +40 -18
  6. {sqlalchemy2_datatables-0.6.1 → sqlalchemy2_datatables-0.7.0}/README.md +19 -6
  7. {sqlalchemy2_datatables-0.6.1 → sqlalchemy2_datatables-0.7.0}/pyproject.toml +27 -33
  8. sqlalchemy2_datatables-0.7.0/src/datatables/__init__.py +19 -0
  9. {sqlalchemy2_datatables-0.6.1 → sqlalchemy2_datatables-0.7.0}/src/datatables/datatable.py +1 -1
  10. sqlalchemy2_datatables-0.7.0/tests/__init__.py +0 -0
  11. sqlalchemy2_datatables-0.7.0/tests/fixtures.py +178 -0
  12. sqlalchemy2_datatables-0.7.0/tests/models.py +23 -0
  13. sqlalchemy2_datatables-0.7.0/tests/test_datatable_callbacks.py +71 -0
  14. sqlalchemy2_datatables-0.7.0/tests/test_datatable_columns.py +62 -0
  15. sqlalchemy2_datatables-0.7.0/tests/test_datatable_order.py +63 -0
  16. sqlalchemy2_datatables-0.7.0/tests/test_datatable_pagination.py +96 -0
  17. sqlalchemy2_datatables-0.7.0/tests/test_datatable_search.py +76 -0
  18. sqlalchemy2_datatables-0.7.0/tests/test_deprecation.py +10 -0
  19. sqlalchemy2_datatables-0.7.0/tests/test_dt_column.py +34 -0
  20. sqlalchemy2_datatables-0.7.0/tests/test_dt_column_order.py +25 -0
  21. sqlalchemy2_datatables-0.7.0/tests/test_dt_data_callbacks.py +103 -0
  22. sqlalchemy2_datatables-0.7.0/tests/test_dt_params.py +33 -0
  23. sqlalchemy2_datatables-0.6.1/setup.py +0 -34
  24. sqlalchemy2_datatables-0.6.1/src/datatables/__init__.py +0 -8
  25. {sqlalchemy2_datatables-0.6.1 → sqlalchemy2_datatables-0.7.0}/src/datatables/base.py +0 -0
  26. {sqlalchemy2_datatables-0.6.1 → sqlalchemy2_datatables-0.7.0}/src/datatables/py.typed +0 -0
@@ -0,0 +1,39 @@
1
+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name: tests
5
+
6
+ on:
7
+ push:
8
+ branches: [ "main" ]
9
+ pull_request:
10
+ branches: [ "main" ]
11
+
12
+ jobs:
13
+ build:
14
+
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ python-version: ["3.10", "3.11"]
20
+
21
+ steps:
22
+ - uses: actions/checkout@v3
23
+ - name: Set up Python ${{ matrix.python-version }}
24
+ uses: actions/setup-python@v3
25
+ with:
26
+ python-version: ${{ matrix.python-version }}
27
+
28
+ - name: Install dependencies
29
+ run: |
30
+ pip install -e ".[dev]"
31
+ - name: Lint with ruff
32
+ run: |
33
+ ruff .
34
+ - name: Test with pytest
35
+ run: |
36
+ COVERAGE=$(pytest --cov=src)
37
+ echo "$COVERAGE"
38
+ echo "COVERAGE="$(echo "$COVERAGE" | grep -e "TOTAL" | grep -oE "[0-9]{2,3}%" | grep -oE "[0-9]{2,3}") >> $GITHUB_ENV
39
+
@@ -0,0 +1,169 @@
1
+ # General
2
+ .DS_Store
3
+ .AppleDouble
4
+ .LSOverride
5
+
6
+ # Byte-compiled / optimized / DLL files
7
+ __pycache__/
8
+ *.py[cod]
9
+ *$py.class
10
+
11
+ # C extensions
12
+ *.so
13
+
14
+ # Distribution / packaging
15
+ .Python
16
+ build/
17
+ develop-eggs/
18
+ dist/
19
+ downloads/
20
+ eggs/
21
+ .eggs/
22
+ lib/
23
+ lib64/
24
+ parts/
25
+ sdist/
26
+ var/
27
+ wheels/
28
+ share/python-wheels/
29
+ *.egg-info/
30
+ .installed.cfg
31
+ *.egg
32
+ MANIFEST
33
+
34
+ # PyInstaller
35
+ # Usually these files are written by a python script from a template
36
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
37
+ *.manifest
38
+ *.spec
39
+
40
+ # Installer logs
41
+ pip-log.txt
42
+ pip-delete-this-directory.txt
43
+
44
+ # Unit test / coverage reports
45
+ htmlcov/
46
+ .tox/
47
+ .nox/
48
+ .coverage
49
+ .coverage.*
50
+ .cache
51
+ nosetests.xml
52
+ coverage.xml
53
+ *.cover
54
+ *.py,cover
55
+ .hypothesis/
56
+ .pytest_cache/
57
+ cover/
58
+
59
+ # Translations
60
+ *.mo
61
+ *.pot
62
+
63
+ # Django stuff:
64
+ *.log
65
+ local_settings.py
66
+ db.sqlite3
67
+ db.sqlite3-journal
68
+
69
+ # Flask stuff:
70
+ instance/
71
+ .webassets-cache
72
+
73
+ # Scrapy stuff:
74
+ .scrapy
75
+
76
+ # Sphinx documentation
77
+ docs/_build/
78
+
79
+ # PyBuilder
80
+ .pybuilder/
81
+ target/
82
+
83
+ # Jupyter Notebook
84
+ .ipynb_checkpoints
85
+
86
+ # IPython
87
+ profile_default/
88
+ ipython_config.py
89
+
90
+ # pyenv
91
+ # For a library or package, you might want to ignore these files since the code is
92
+ # intended to run in multiple environments; otherwise, check them in:
93
+ .python-version
94
+
95
+ # pipenv
96
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
97
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
98
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
99
+ # install all needed dependencies.
100
+ #Pipfile.lock
101
+
102
+ # poetry
103
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
104
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
105
+ # commonly ignored for libraries.
106
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
107
+ poetry.lock
108
+
109
+ # pdm
110
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
111
+ #pdm.lock
112
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
113
+ # in version control.
114
+ # https://pdm.fming.dev/#use-with-ide
115
+ .pdm.toml
116
+
117
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
118
+ __pypackages__/
119
+
120
+ # Celery stuff
121
+ celerybeat-schedule
122
+ celerybeat.pid
123
+
124
+ # SageMath parsed files
125
+ *.sage.py
126
+
127
+ # Environments
128
+ ldap.env
129
+ .env
130
+ .venv
131
+ env/
132
+ venv/
133
+ ENV/
134
+ env.bak/
135
+ venv.bak/
136
+
137
+ # Spyder project settings
138
+ .spyderproject
139
+ .spyproject
140
+
141
+ # Rope project settings
142
+ .ropeproject
143
+
144
+ # mkdocs documentation
145
+ /site
146
+
147
+ # mypy
148
+ .mypy_cache/
149
+ .dmypy.json
150
+ dmypy.json
151
+
152
+ # Pyre type checker
153
+ .pyre/
154
+
155
+ # pytype static type analyzer
156
+ .pytype/
157
+
158
+ # Cython debug symbols
159
+ cython_debug/
160
+
161
+ # IntelliJ IDEA / PyCharm
162
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
163
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
164
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
165
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
166
+ .idea/
167
+ /out/
168
+ /.vscode/
169
+ /tests/sqlite_test.db
@@ -0,0 +1,36 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v4.3.0
4
+ hooks:
5
+ - id: check-added-large-files
6
+ - id: check-ast
7
+ - id: check-toml
8
+ - id: check-yaml
9
+ args:
10
+ - --unsafe
11
+ - id: check-json
12
+ - id: pretty-format-json
13
+ - id: end-of-file-fixer
14
+ - id: trailing-whitespace
15
+ - repo: https://github.com/asottile/pyupgrade
16
+ rev: v3.3.1
17
+ hooks:
18
+ - id: pyupgrade
19
+ args:
20
+ - --py3-plus
21
+ - --keep-runtime-typing
22
+ - repo: https://github.com/charliermarsh/ruff-pre-commit
23
+ rev: v0.0.219
24
+ hooks:
25
+ - id: ruff
26
+ args:
27
+ - --fix
28
+ - repo: https://github.com/psf/black
29
+ rev: 22.10.0
30
+ hooks:
31
+ - id: black
32
+ - repo: https://github.com/pycqa/isort
33
+ rev: 5.11.4
34
+ hooks:
35
+ - id: isort
36
+ name: isort (python)
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Sebastián Ramírez
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -1,12 +1,12 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.5
2
2
  Name: sqlalchemy2-datatables
3
- Version: 0.6.1
3
+ Version: 0.7.0
4
4
  Summary: Python Sqlalchemy 2.0 based serverside processing for jQuery datatables.
5
- License: MIT
6
- Author: R. Hannes Niedner
7
- Author-email: hniedner@gmail.com
8
- Requires-Python: >=3.10,<4.0
9
- Classifier: Development Status :: 3 - Alpha
5
+ Project-URL: Homepage, https://github.com/coding-doc/sqlalchemy2-datatables
6
+ Author-email: "R. Hannes Niedner" <hniedner@gmail.com>
7
+ License-Expression: MIT
8
+ License-File: LICENCE
9
+ Classifier: Development Status :: 7 - Inactive
10
10
  Classifier: Environment :: Web Environment
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: Intended Audience :: Information Technology
@@ -15,9 +15,6 @@ Classifier: License :: OSI Approved :: MIT License
15
15
  Classifier: Operating System :: OS Independent
16
16
  Classifier: Programming Language :: Python
17
17
  Classifier: Programming Language :: Python :: 3
18
- Classifier: Programming Language :: Python :: 3.10
19
- Classifier: Programming Language :: Python :: 3.11
20
- Classifier: Programming Language :: Python :: 3
21
18
  Classifier: Programming Language :: Python :: 3 :: Only
22
19
  Classifier: Programming Language :: Python :: 3.10
23
20
  Classifier: Programming Language :: Python :: 3.11
@@ -32,21 +29,47 @@ Classifier: Topic :: Software Development :: Libraries
32
29
  Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
33
30
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
34
31
  Classifier: Typing :: Typed
35
- Requires-Dist: sqlalchemy (>=2.0.0rc3,<3.0.0)
32
+ Requires-Python: >=3.10
33
+ Requires-Dist: sqlalchemy~=2.0.0rc3
34
+ Provides-Extra: dev
35
+ Requires-Dist: autoflake~=2.0.0; extra == 'dev'
36
+ Requires-Dist: black[d]~=22.12.0; extra == 'dev'
37
+ Requires-Dist: coverage[toml]~=7.0.5; extra == 'dev'
38
+ Requires-Dist: hatchling~=1.12.2; extra == 'dev'
39
+ Requires-Dist: isort~=5.11.4; extra == 'dev'
40
+ Requires-Dist: mypy~=0.991; extra == 'dev'
41
+ Requires-Dist: pre-commit~=2.21.0; extra == 'dev'
42
+ Requires-Dist: pytest-cov~=4.0.0; extra == 'dev'
43
+ Requires-Dist: pytest~=7.2.0; extra == 'dev'
44
+ Requires-Dist: pyupgrade~=3.3.1; extra == 'dev'
45
+ Requires-Dist: ruff~=0.0.219; extra == 'dev'
36
46
  Description-Content-Type: text/markdown
37
47
 
38
48
  # sqlalchemy2-datatables
39
49
 
50
+ > [!WARNING]
51
+ > **This project is no longer maintained and will be archived. 0.7.0 is its final release.**
52
+ >
53
+ > Its successor is [`datatables-backend`](https://github.com/hniedner/datatables-backend). There is also SpryMedia's
54
+ > official [`datatables_server`](https://datatables.net/manual/python). Which one to choose:
55
+ >
56
+ > - **`datatables_server`:** SQL through sync SQLAlchemy Core, especially if you need editing (DataTables Editor),
57
+ > SearchPanes or ColumnControl. It is maintained by the makers of DataTables.
58
+ > - **`datatables-backend`:** read-only tables on async (or sync) SQLAlchemy 2, or on OpenSearch. The server declares
59
+ > its columns, and every source gets the same search, SearchBuilder and safety rules. It is pre-alpha as of
60
+ > 2026-11.
61
+ >
62
+ > Known issues that will not be fixed in this package:
63
+ > - `length` defaults to `-1`, so a request without `length` reads the whole table.
64
+ > - `LIKE` wildcards in search values are not escaped.
65
+ > - Client-supplied regular expressions are run.
66
+ > - A column index outside the table raises an error.
67
+ > - Error messages from the database are returned to the client.
68
+
40
69
  [![versions](https://img.shields.io/pypi/pyversions/sqlalchemy2-datatables.svg)](https://github.com/hniedner/sqlalchemy2-datatables)
41
70
  [![license](https://img.shields.io/github/license/pydantic/pydantic.svg)](https://github.com/pydantic/pydantic/blob/main/LICENSE)
42
71
  [![badge](https://github.com/coding-doc/sqlalchemy2-datatables/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/coding-doc/sqlalchemy2-datatables/actions/workflows/tests.yml)
43
- ![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/coding-doc/e13951fb715ab39a15dfb6c504284537/raw/coverage.json)
44
72
 
45
- ---
46
-
47
- **Source Code**: [https://github.com/coding-doc/sqlalchemy2-datatables](https://github.com/coding-doc/sqlalchemy2-datatables)
48
-
49
- ---
50
73
  ### Summary
51
74
  sqlalchemy2-datatables is a framework agnostic library providing an SQLAlchemy integration of
52
75
  jQuery DataTables >= 1.10, and helping you manage server side requests in your application.
@@ -148,4 +171,3 @@ The output dictionary that can be serialized and returned to jQuery datatables.
148
171
  ],
149
172
  }
150
173
  ```
151
-
@@ -1,15 +1,28 @@
1
1
  # sqlalchemy2-datatables
2
2
 
3
+ > [!WARNING]
4
+ > **This project is no longer maintained and will be archived. 0.7.0 is its final release.**
5
+ >
6
+ > Its successor is [`datatables-backend`](https://github.com/hniedner/datatables-backend). There is also SpryMedia's
7
+ > official [`datatables_server`](https://datatables.net/manual/python). Which one to choose:
8
+ >
9
+ > - **`datatables_server`:** SQL through sync SQLAlchemy Core, especially if you need editing (DataTables Editor),
10
+ > SearchPanes or ColumnControl. It is maintained by the makers of DataTables.
11
+ > - **`datatables-backend`:** read-only tables on async (or sync) SQLAlchemy 2, or on OpenSearch. The server declares
12
+ > its columns, and every source gets the same search, SearchBuilder and safety rules. It is pre-alpha as of
13
+ > 2026-11.
14
+ >
15
+ > Known issues that will not be fixed in this package:
16
+ > - `length` defaults to `-1`, so a request without `length` reads the whole table.
17
+ > - `LIKE` wildcards in search values are not escaped.
18
+ > - Client-supplied regular expressions are run.
19
+ > - A column index outside the table raises an error.
20
+ > - Error messages from the database are returned to the client.
21
+
3
22
  [![versions](https://img.shields.io/pypi/pyversions/sqlalchemy2-datatables.svg)](https://github.com/hniedner/sqlalchemy2-datatables)
4
23
  [![license](https://img.shields.io/github/license/pydantic/pydantic.svg)](https://github.com/pydantic/pydantic/blob/main/LICENSE)
5
24
  [![badge](https://github.com/coding-doc/sqlalchemy2-datatables/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/coding-doc/sqlalchemy2-datatables/actions/workflows/tests.yml)
6
- ![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/coding-doc/e13951fb715ab39a15dfb6c504284537/raw/coverage.json)
7
-
8
- ---
9
-
10
- **Source Code**: [https://github.com/coding-doc/sqlalchemy2-datatables](https://github.com/coding-doc/sqlalchemy2-datatables)
11
25
 
12
- ---
13
26
  ### Summary
14
27
  sqlalchemy2-datatables is a framework agnostic library providing an SQLAlchemy integration of
15
28
  jQuery DataTables >= 1.10, and helping you manage server side requests in your application.
@@ -1,11 +1,19 @@
1
- [tool.poetry]
2
- version = "0.6.1"
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
3
6
  name = "sqlalchemy2-datatables"
4
7
  description = "Python Sqlalchemy 2.0 based serverside processing for jQuery datatables."
5
- authors = ["R. Hannes Niedner <hniedner@gmail.com>"]
8
+ authors = [
9
+ {name = "R. Hannes Niedner", email = "hniedner@gmail.com"}
10
+ ]
11
+ requires-python = ">=3.10"
6
12
  license = "MIT"
7
13
  readme = "README.md"
8
- packages = [{include = "datatables", from = "src"}]
14
+ dependencies = [
15
+ "sqlalchemy~=2.0.0rc3"
16
+ ]
9
17
  classifiers = [
10
18
  "Intended Audience :: Information Technology",
11
19
  "Intended Audience :: System Administrators",
@@ -19,7 +27,7 @@ classifiers = [
19
27
  "Topic :: Software Development :: Libraries",
20
28
  "Topic :: Software Development",
21
29
  "Typing :: Typed",
22
- "Development Status :: 3 - Alpha",
30
+ "Development Status :: 7 - Inactive",
23
31
  "Environment :: Web Environment",
24
32
  "Intended Audience :: Developers",
25
33
  "License :: OSI Approved :: MIT License",
@@ -33,37 +41,25 @@ classifiers = [
33
41
  "Topic :: Database :: Front-Ends",
34
42
  "Topic :: Internet :: WWW/HTTP :: Indexing/Search",
35
43
  ]
36
-
37
- #dynamic = ["version"]
38
-
39
- [project]
40
- name = "sqlalchemy2-datatables"
41
- description = "Python Sqlalchemy based serverside processing for jQuery datatables."
42
44
  dynamic = ["version"]
43
45
 
44
46
  [project.urls]
45
47
  Homepage = "https://github.com/coding-doc/sqlalchemy2-datatables"
46
48
 
47
- [tool.poetry.dependencies]
48
- python = "^3.10"
49
- sqlalchemy = "^2.0.0rc3"
50
-
51
- [tool.poetry.group.dev.dependencies]
52
- hatchling = "^1.12.2"
53
- pre-commit = "^2.21.0"
54
- pytest = "^7.2.0"
55
- pytest-cov = "^4.0.0"
56
- black = { extras = ["d"], version = "^22.12.0" }
57
- coverage = {extras = ["toml"], version = "^7.0.5"}
58
- isort = "^5.11.4"
59
- mypy = "^0.991"
60
- pyupgrade = "^3.3.1"
61
- ruff = "^0.0.219"
62
- autoflake = "^2.0.0"
63
-
64
- [build-system]
65
- requires = ["hatchling"]
66
- build-backend = "hatchling.build"
49
+ [project.optional-dependencies]
50
+ dev = [
51
+ "hatchling~=1.12.2",
52
+ "pre-commit~=2.21.0",
53
+ "pytest~=7.2.0",
54
+ "pytest-cov~=4.0.0",
55
+ "black[d]~=22.12.0",
56
+ "coverage[toml]~=7.0.5",
57
+ "isort~=5.11.4",
58
+ "mypy~=0.991",
59
+ "pyupgrade~=3.3.1",
60
+ "ruff~=0.0.219",
61
+ "autoflake~=2.0.0"
62
+ ]
67
63
 
68
64
  [tool.hatch.version]
69
65
  path = "src/datatables/__init__.py"
@@ -82,8 +78,6 @@ force_single_line = true
82
78
  force_grid_wrap = 0
83
79
  combine_as_imports = false
84
80
 
85
- [tool.poetry-version-plugin]
86
- source = "init"
87
81
 
88
82
  [tool.autoflake]
89
83
  # return error code if changes are needed
@@ -0,0 +1,19 @@
1
+ """Sqlalchemy2-datatables library, provides serverside implementation for jQuery Datatables"""
2
+
3
+ import warnings
4
+
5
+ from datatables.base import DTDataCallbacks
6
+ from datatables.datatable import DataTable
7
+
8
+ __version__ = '0.7.0'
9
+
10
+ warnings.warn(
11
+ 'sqlalchemy2-datatables is no longer maintained and will be archived. Use datatables_server '
12
+ '(https://datatables.net/manual/python) or its successor datatables-backend '
13
+ '(https://github.com/hniedner/datatables-backend).',
14
+ DeprecationWarning,
15
+ stacklevel=2,
16
+ )
17
+
18
+
19
+ __all__ = ['DataTable', 'DTDataCallbacks']
@@ -189,7 +189,7 @@ class DataTable:
189
189
  # data: list[dict[str, Any]] = [{k: v for k, v in zip(self.column_names, row)} for row in result.all()]
190
190
  data: list[dict[str, Any]] = []
191
191
  for row in result.all():
192
- result_row: dict[str, Any] = {k: v for k, v in zip(self.column_names, row, strict=True)}
192
+ result_row: dict[str, Any] = dict(zip(self.column_names, row, strict=True))
193
193
  if self.callbacks:
194
194
  self.callbacks.run(result_row)
195
195
  data.append(result_row)
File without changes