TypeDAL 3.15.3__tar.gz → 3.15.5__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.
Potentially problematic release.
This version of TypeDAL might be problematic. Click here for more details.
- {typedal-3.15.3 → typedal-3.15.5}/CHANGELOG.md +12 -0
- {typedal-3.15.3 → typedal-3.15.5}/PKG-INFO +1 -1
- {typedal-3.15.3 → typedal-3.15.5}/src/typedal/__about__.py +1 -1
- {typedal-3.15.3 → typedal-3.15.5}/src/typedal/core.py +4 -1
- {typedal-3.15.3 → typedal-3.15.5}/src/typedal/web2py_py4web_shared.py +2 -2
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_row.py +2 -0
- {typedal-3.15.3 → typedal-3.15.5}/.github/workflows/su6.yml +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/.gitignore +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/.readthedocs.yml +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/README.md +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/coverage.svg +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/docs/1_getting_started.md +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/docs/2_defining_tables.md +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/docs/3_building_queries.md +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/docs/4_relationships.md +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/docs/5_py4web.md +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/docs/6_migrations.md +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/docs/7_mixins.md +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/docs/css/code_blocks.css +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/docs/index.md +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/docs/requirements.txt +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/example_new.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/example_old.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/mkdocs.yml +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/pyproject.toml +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/src/typedal/__init__.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/src/typedal/caching.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/src/typedal/cli.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/src/typedal/config.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/src/typedal/fields.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/src/typedal/for_py4web.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/src/typedal/for_web2py.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/src/typedal/helpers.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/src/typedal/mixins.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/src/typedal/py.typed +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/src/typedal/serializers/as_json.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/src/typedal/types.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/__init__.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/configs/simple.toml +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/configs/valid.env +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/configs/valid.toml +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_cli.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_config.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_docs_examples.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_helpers.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_json.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_main.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_mixins.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_mypy.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_orm.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_py4web.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_query_builder.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_relationships.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_stats.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_table.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_web2py.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/test_xx_others.py +0 -0
- {typedal-3.15.3 → typedal-3.15.5}/tests/timings.py +0 -0
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
<!--next-version-placeholder-->
|
|
4
4
|
|
|
5
|
+
## v3.15.5 (2025-08-29)
|
|
6
|
+
|
|
7
|
+
### Fix
|
|
8
|
+
|
|
9
|
+
* Make `auth_user.email.requires` a list so users can append to it ([`716d511`](https://github.com/trialandsuccess/TypeDAL/commit/716d5115687049c897b2ad5878166a88065027b3))
|
|
10
|
+
|
|
11
|
+
## v3.15.4 (2025-08-01)
|
|
12
|
+
|
|
13
|
+
### Fix
|
|
14
|
+
|
|
15
|
+
* Support `.as_dict(Field)` in addtion to just `.as_dict('field')` ([`3951cba`](https://github.com/trialandsuccess/TypeDAL/commit/3951cba06cbaba25137301571490a7149232e385))
|
|
16
|
+
|
|
5
17
|
## v3.15.3 (2025-07-25)
|
|
6
18
|
|
|
7
19
|
### Fix
|
|
@@ -2153,7 +2153,7 @@ class TypedRows(typing.Collection[T_MetaInstance], Rows):
|
|
|
2153
2153
|
|
|
2154
2154
|
def as_dict(
|
|
2155
2155
|
self,
|
|
2156
|
-
key: str = None,
|
|
2156
|
+
key: str | Field = None,
|
|
2157
2157
|
compact: bool = False,
|
|
2158
2158
|
storage_to_dict: bool = False,
|
|
2159
2159
|
datetime_to_str: bool = False,
|
|
@@ -2164,6 +2164,9 @@ class TypedRows(typing.Collection[T_MetaInstance], Rows):
|
|
|
2164
2164
|
"""
|
|
2165
2165
|
if any([key, compact, storage_to_dict, datetime_to_str, custom_types]):
|
|
2166
2166
|
# functionality not guaranteed
|
|
2167
|
+
if isinstance(key, Field):
|
|
2168
|
+
key = key.name
|
|
2169
|
+
|
|
2167
2170
|
return typing.cast(
|
|
2168
2171
|
dict[int, AnyDict],
|
|
2169
2172
|
super().as_dict(
|
|
@@ -137,6 +137,8 @@ def test_rows():
|
|
|
137
137
|
|
|
138
138
|
assert new_rows.as_dict(storage_to_dict=True)
|
|
139
139
|
|
|
140
|
+
assert new_rows.as_dict("int_field")[1] == new_rows.as_dict(NewStyleClass.int_field)[1]
|
|
141
|
+
|
|
140
142
|
assert old_rows.as_json() == new_rows.as_json() == new_rows.json() == old_rows.json()
|
|
141
143
|
|
|
142
144
|
assert old_rows.as_list()[0]["string_field"] == new_rows.as_list()[0]["string_field"]
|
|
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
|
|
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
|