Loglan-Core 0.4.3__tar.gz → 0.4.4__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.
- {loglan_core-0.4.3 → loglan_core-0.4.4/Loglan_Core.egg-info}/PKG-INFO +2 -2
- {loglan_core-0.4.3/Loglan_Core.egg-info → loglan_core-0.4.4}/PKG-INFO +2 -2
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/addons/base_selector.py +18 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/setup.py +1 -1
- {loglan_core-0.4.3 → loglan_core-0.4.4}/LICENSE +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/Loglan_Core.egg-info/SOURCES.txt +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/Loglan_Core.egg-info/dependency_links.txt +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/Loglan_Core.egg-info/requires.txt +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/Loglan_Core.egg-info/top_level.txt +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/README.md +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/__init__.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/addons/__init__.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/addons/definition_selector.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/addons/export_word_converter.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/addons/exporter.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/addons/key_selector.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/addons/utils.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/addons/word_linker.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/addons/word_selector.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/addons/word_sourcer.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/author.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/base.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/connect_tables.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/definition.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/event.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/key.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/setting.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/syllable.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/table_names.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/type.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/word.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/loglan_core/word_spell.py +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/pyproject.toml +0 -0
- {loglan_core-0.4.3 → loglan_core-0.4.4}/setup.cfg +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: Loglan-Core
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.4
|
|
4
4
|
Summary: Loglan Dictionary Database Model for SQLAlchemy
|
|
5
5
|
Home-page: https://github.com/torrua/loglan_core
|
|
6
|
-
Download-URL: https://github.com/torrua/loglan_core/archive/0.4.
|
|
6
|
+
Download-URL: https://github.com/torrua/loglan_core/archive/0.4.4.tar.gz
|
|
7
7
|
Author: torrua
|
|
8
8
|
Author-email: torrua@gmail.com
|
|
9
9
|
License: MIT
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: Loglan-Core
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.4
|
|
4
4
|
Summary: Loglan Dictionary Database Model for SQLAlchemy
|
|
5
5
|
Home-page: https://github.com/torrua/loglan_core
|
|
6
|
-
Download-URL: https://github.com/torrua/loglan_core/archive/0.4.
|
|
6
|
+
Download-URL: https://github.com/torrua/loglan_core/archive/0.4.4.tar.gz
|
|
7
7
|
Author: torrua
|
|
8
8
|
Author-email: torrua@gmail.com
|
|
9
9
|
License: MIT
|
|
@@ -204,6 +204,24 @@ class BaseSelector: # pylint: disable=too-many-ancestors
|
|
|
204
204
|
self._statement = self._statement.where(*args)
|
|
205
205
|
return self
|
|
206
206
|
|
|
207
|
+
def where_like(self, **kwargs) -> Self:
|
|
208
|
+
"""Filter results based on arbitrary keyword arguments.
|
|
209
|
+
Use internal method `_generate_column_condition` to generate
|
|
210
|
+
the condition based on settings provided by Selector instance
|
|
211
|
+
like (is_sqlite, case_sensitive).
|
|
212
|
+
|
|
213
|
+
Args:
|
|
214
|
+
**kwargs: Column-value pairs to filter by.
|
|
215
|
+
|
|
216
|
+
Returns:
|
|
217
|
+
Self: The current instance for method chaining.
|
|
218
|
+
"""
|
|
219
|
+
for key, value in kwargs.items():
|
|
220
|
+
self._statement = self._statement.where(
|
|
221
|
+
self._generate_column_condition(key, value)
|
|
222
|
+
)
|
|
223
|
+
return self
|
|
224
|
+
|
|
207
225
|
def _generate_column_condition(self, key: str | InstrumentedAttribute, value: Any):
|
|
208
226
|
column = getattr(self.model, key, None) if isinstance(key, str) else key
|
|
209
227
|
if column is None:
|
|
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
|