Loglan-Core 0.2.3__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.
Files changed (34) hide show
  1. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4/Loglan_Core.egg-info}/PKG-INFO +3 -3
  2. {Loglan-Core-0.2.3/Loglan_Core.egg-info → Loglan-Core-0.2.4}/PKG-INFO +3 -3
  3. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/README.md +1 -1
  4. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/addons/exporter.py +9 -4
  5. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/setup.py +1 -1
  6. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/LICENSE +0 -0
  7. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/Loglan_Core.egg-info/SOURCES.txt +0 -0
  8. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/Loglan_Core.egg-info/dependency_links.txt +0 -0
  9. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/Loglan_Core.egg-info/requires.txt +0 -0
  10. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/Loglan_Core.egg-info/top_level.txt +0 -0
  11. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/__init__.py +0 -0
  12. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/addons/__init__.py +0 -0
  13. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/addons/base_selector.py +0 -0
  14. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/addons/definition_selector.py +0 -0
  15. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/addons/export_word_converter.py +0 -0
  16. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/addons/key_selector.py +0 -0
  17. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/addons/word_linker.py +0 -0
  18. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/addons/word_selector.py +0 -0
  19. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/addons/word_sourcer.py +0 -0
  20. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/author.py +0 -0
  21. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/base.py +0 -0
  22. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/connect_tables.py +0 -0
  23. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/definition.py +0 -0
  24. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/event.py +0 -0
  25. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/key.py +0 -0
  26. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/setting.py +0 -0
  27. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/syllable.py +0 -0
  28. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/table_names.py +0 -0
  29. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/type.py +2 -2
  30. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/word.py +0 -0
  31. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/word_source.py +0 -0
  32. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/loglan_core/word_spell.py +0 -0
  33. {Loglan-Core-0.2.3 → Loglan-Core-0.2.4}/pyproject.toml +0 -0
  34. {Loglan-Core-0.2.3 → 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
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.3.tar.gz
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
  ![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability-percentage/torrua/loglan_core?logo=Code%20Climate)
29
29
  [![Pylint](https://github.com/torrua/loglan_core/actions/workflows/pylint.yml/badge.svg)](https://github.com/torrua/loglan_core/actions/workflows/pylint.yml)
30
30
  [![Pytest](https://github.com/torrua/loglan_core/actions/workflows/pytest.yml/badge.svg)](https://github.com/torrua/loglan_core/actions/workflows/pytest.yml)
31
- ![pylint](https://img.shields.io/badge/pylint-9.97-yellow?logo=python&logoColor=white)
31
+ ![pylint](https://img.shields.io/badge/pylint-9.95-yellow?logo=python&logoColor=white)
32
32
  ![PyPI - Downloads](https://img.shields.io/pypi/dm/loglan_core?color=yellow)
33
33
  ![PyPI - Version](https://img.shields.io/pypi/v/loglan-core?logo=PyPi&logoColor=%23FFFFFF)
34
34
  ![GitHub License](https://img.shields.io/github/license/torrua/loglan_core)
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Loglan-Core
3
- Version: 0.2.3
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.3.tar.gz
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
  ![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability-percentage/torrua/loglan_core?logo=Code%20Climate)
29
29
  [![Pylint](https://github.com/torrua/loglan_core/actions/workflows/pylint.yml/badge.svg)](https://github.com/torrua/loglan_core/actions/workflows/pylint.yml)
30
30
  [![Pytest](https://github.com/torrua/loglan_core/actions/workflows/pytest.yml/badge.svg)](https://github.com/torrua/loglan_core/actions/workflows/pytest.yml)
31
- ![pylint](https://img.shields.io/badge/pylint-9.97-yellow?logo=python&logoColor=white)
31
+ ![pylint](https://img.shields.io/badge/pylint-9.95-yellow?logo=python&logoColor=white)
32
32
  ![PyPI - Downloads](https://img.shields.io/pypi/dm/loglan_core?color=yellow)
33
33
  ![PyPI - Version](https://img.shields.io/pypi/v/loglan-core?logo=PyPi&logoColor=%23FFFFFF)
34
34
  ![GitHub License](https://img.shields.io/github/license/torrua/loglan_core)
@@ -5,7 +5,7 @@
5
5
  ![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability-percentage/torrua/loglan_core?logo=Code%20Climate)
6
6
  [![Pylint](https://github.com/torrua/loglan_core/actions/workflows/pylint.yml/badge.svg)](https://github.com/torrua/loglan_core/actions/workflows/pylint.yml)
7
7
  [![Pytest](https://github.com/torrua/loglan_core/actions/workflows/pytest.yml/badge.svg)](https://github.com/torrua/loglan_core/actions/workflows/pytest.yml)
8
- ![pylint](https://img.shields.io/badge/pylint-9.97-yellow?logo=python&logoColor=white)
8
+ ![pylint](https://img.shields.io/badge/pylint-9.95-yellow?logo=python&logoColor=white)
9
9
  ![PyPI - Downloads](https://img.shields.io/pypi/dm/loglan_core?color=yellow)
10
10
  ![PyPI - Version](https://img.shields.io/pypi/v/loglan-core?logo=PyPi&logoColor=%23FFFFFF)
11
11
  ![GitHub License](https://img.shields.io/github/license/torrua/loglan_core)
@@ -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 = exporters.get(obj.__class__)
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,
@@ -5,7 +5,7 @@ from io import open
5
5
 
6
6
  from setuptools import setup
7
7
 
8
- CURRENT_VERSION = "0.2.3"
8
+ CURRENT_VERSION = "0.2.4"
9
9
 
10
10
 
11
11
  def read(filename): # pylint: disable=C0116
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