Loglan-Core 0.2.2__tar.gz → 0.2.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.2.2 → Loglan-Core-0.2.4/Loglan_Core.egg-info}/PKG-INFO +3 -3
- {Loglan-Core-0.2.2/Loglan_Core.egg-info → Loglan-Core-0.2.4}/PKG-INFO +3 -3
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/README.md +1 -1
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/addons/exporter.py +10 -5
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/setup.py +1 -1
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/LICENSE +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/Loglan_Core.egg-info/SOURCES.txt +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/Loglan_Core.egg-info/dependency_links.txt +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/Loglan_Core.egg-info/requires.txt +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/Loglan_Core.egg-info/top_level.txt +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/__init__.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/addons/__init__.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/addons/base_selector.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/addons/definition_selector.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/addons/export_word_converter.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/addons/key_selector.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/addons/word_linker.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/addons/word_selector.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/addons/word_sourcer.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/author.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/base.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/connect_tables.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/definition.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/event.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/key.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/setting.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/syllable.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/table_names.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/type.py +2 -2
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/word.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/word_source.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/loglan_core/word_spell.py +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/pyproject.toml +0 -0
- {Loglan-Core-0.2.2 → Loglan-Core-0.2.4}/setup.cfg +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: Loglan-Core
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.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.2.
|
|
6
|
+
Download-URL: https://github.com/torrua/loglan_core/archive/0.2.4.tar.gz
|
|
7
7
|
Author: torrua
|
|
8
8
|
Author-email: torrua@gmail.com
|
|
9
9
|
License: MIT
|
|
@@ -28,7 +28,7 @@ Requires-Dist: sqlalchemy>=2.0.21
|
|
|
28
28
|

|
|
29
29
|
[](https://github.com/torrua/loglan_core/actions/workflows/pylint.yml)
|
|
30
30
|
[](https://github.com/torrua/loglan_core/actions/workflows/pytest.yml)
|
|
31
|
-

|
|
32
32
|

|
|
33
33
|

|
|
34
34
|

|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: Loglan-Core
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.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.2.
|
|
6
|
+
Download-URL: https://github.com/torrua/loglan_core/archive/0.2.4.tar.gz
|
|
7
7
|
Author: torrua
|
|
8
8
|
Author-email: torrua@gmail.com
|
|
9
9
|
License: MIT
|
|
@@ -28,7 +28,7 @@ Requires-Dist: sqlalchemy>=2.0.21
|
|
|
28
28
|

|
|
29
29
|
[](https://github.com/torrua/loglan_core/actions/workflows/pylint.yml)
|
|
30
30
|
[](https://github.com/torrua/loglan_core/actions/workflows/pytest.yml)
|
|
31
|
-

|
|
32
32
|

|
|
33
33
|

|
|
34
34
|

|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
[](https://github.com/torrua/loglan_core/actions/workflows/pylint.yml)
|
|
7
7
|
[](https://github.com/torrua/loglan_core/actions/workflows/pytest.yml)
|
|
8
|
-

|
|
9
9
|

|
|
10
10
|

|
|
11
11
|

|
|
@@ -59,14 +59,19 @@ class Exporter:
|
|
|
59
59
|
BaseAuthor: cls.export_author,
|
|
60
60
|
BaseEvent: cls.export_event,
|
|
61
61
|
BaseType: cls.export_type,
|
|
62
|
-
BaseWord: cls.export_word,
|
|
63
62
|
BaseWordSpell: cls.export_word_spell,
|
|
63
|
+
BaseWord: cls.export_word,
|
|
64
64
|
BaseDefinition: cls.export_definition,
|
|
65
65
|
BaseSetting: cls.export_setting,
|
|
66
66
|
BaseSyllable: cls.export_syllable,
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
exporter_func =
|
|
69
|
+
exporter_func = None
|
|
70
|
+
for base_class, func in exporters.items():
|
|
71
|
+
if isinstance(obj, base_class):
|
|
72
|
+
exporter_func = func
|
|
73
|
+
break
|
|
74
|
+
|
|
70
75
|
if not exporter_func:
|
|
71
76
|
raise ValueError(f"Unsupported object type: {obj.__class__}")
|
|
72
77
|
|
|
@@ -108,7 +113,7 @@ class Exporter:
|
|
|
108
113
|
return (
|
|
109
114
|
obj.event_id,
|
|
110
115
|
obj.name,
|
|
111
|
-
obj.date.strftime("%m/%d/%Y"),
|
|
116
|
+
obj.date.strftime("%m/%d/%Y"), # TODO Add format as class constant
|
|
112
117
|
obj.definition,
|
|
113
118
|
obj.annotation,
|
|
114
119
|
obj.suffix,
|
|
@@ -133,7 +138,7 @@ class Exporter:
|
|
|
133
138
|
tuple: elements for export
|
|
134
139
|
"""
|
|
135
140
|
return (
|
|
136
|
-
obj.date.strftime("%d.%m.%Y %H:%M:%S"),
|
|
141
|
+
obj.date.strftime("%d.%m.%Y %H:%M:%S"), # TODO Add format as class constant
|
|
137
142
|
obj.db_version,
|
|
138
143
|
obj.last_word_id,
|
|
139
144
|
obj.db_release,
|
|
@@ -151,7 +156,7 @@ class Exporter:
|
|
|
151
156
|
obj.type,
|
|
152
157
|
obj.type_x,
|
|
153
158
|
obj.group,
|
|
154
|
-
obj.parentable,
|
|
159
|
+
str(obj.parentable),
|
|
155
160
|
obj.description,
|
|
156
161
|
)
|
|
157
162
|
|
|
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
|
|
@@ -32,8 +32,8 @@ class BaseType(BaseModel):
|
|
|
32
32
|
self,
|
|
33
33
|
type: Mapped[str_016], # pylint: disable=W0622
|
|
34
34
|
type_x: Mapped[str_016],
|
|
35
|
-
parentable: Mapped[bool],
|
|
36
35
|
group: Mapped[str_016],
|
|
36
|
+
parentable: Mapped[bool],
|
|
37
37
|
description: Mapped[str_255] | None = None,
|
|
38
38
|
):
|
|
39
39
|
"""
|
|
@@ -42,8 +42,8 @@ class BaseType(BaseModel):
|
|
|
42
42
|
super().__init__()
|
|
43
43
|
self.type = type
|
|
44
44
|
self.type_x = type_x
|
|
45
|
-
self.parentable = parentable
|
|
46
45
|
self.group = group
|
|
46
|
+
self.parentable = parentable
|
|
47
47
|
self.description = description
|
|
48
48
|
|
|
49
49
|
def __str__(self):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|