thoth-dbmanager 0.4.6__tar.gz → 0.4.8__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.
- {thoth_dbmanager-0.4.6/thoth_dbmanager.egg-info → thoth_dbmanager-0.4.8}/PKG-INFO +1 -1
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/pyproject.toml +1 -1
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/lsh/manager.py +6 -1
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/lsh/storage.py +16 -2
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/plugins/mariadb.py +1 -24
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/plugins/mysql.py +1 -24
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/plugins/postgresql.py +1 -24
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/plugins/sqlite.py +1 -24
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8/thoth_dbmanager.egg-info}/PKG-INFO +1 -1
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/LICENSE +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/MANIFEST.in +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/README.md +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/setup.cfg +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/tests/test_integration_new_architecture.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/tests/test_lsh_query.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/tests/test_new_architecture.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/tests/test_parameter_validation.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/tests/test_thoth_db_manager_base.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/tests/test_thoth_informix_manager.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/tests/test_thoth_mariadb_manager.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/tests/test_thoth_mysql_manager.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/tests/test_thoth_oracle_manager.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/tests/test_thoth_pg_manager.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/tests/test_thoth_sqlite_manager.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/tests/test_thoth_sqlserver_manager.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/tests/test_thoth_supabase_manager.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/ThothDbManager.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/__init__.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/adapters/__init__.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/adapters/mariadb.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/adapters/mysql.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/adapters/oracle.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/adapters/postgresql.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/adapters/sqlite.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/adapters/sqlserver.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/adapters/supabase.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/core/__init__.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/core/factory.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/core/interfaces.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/core/registry.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/documents.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/dynamic_imports.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/helpers/__init__.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/helpers/multi_db_generator.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/helpers/preprocess_values.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/helpers/schema.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/helpers/search.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/lsh/__init__.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/lsh/core.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/lsh/factory.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/plugins/__init__.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/plugins/oracle.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/plugins/sqlserver.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/plugins/supabase.py +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager.egg-info/SOURCES.txt +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager.egg-info/dependency_links.txt +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager.egg-info/requires.txt +0 -0
- {thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: thoth_dbmanager
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.8
|
4
4
|
Summary: A Python library for managing SQL databases with support for multiple database types, LSH-based similarity search, and a modern plugin architecture.
|
5
5
|
Author-email: Marco Pancotti <mp@tylconsulting.it>
|
6
6
|
Project-URL: Homepage, https://github.com/mptyl/thoth_dbmanager
|
@@ -98,7 +98,12 @@ class LshManager:
|
|
98
98
|
"""
|
99
99
|
try:
|
100
100
|
if not self.storage_strategy.exists(self.lsh_base_path):
|
101
|
-
|
101
|
+
# Show the actual file paths being checked for better debugging
|
102
|
+
lsh_file = self.lsh_base_path.with_suffix('.pkl')
|
103
|
+
minhashes_file = self.lsh_base_path.parent / f"{self.lsh_base_path.stem}_minhashes.pkl"
|
104
|
+
logging.warning(f"LSH files not found. Expected files:")
|
105
|
+
logging.warning(f" LSH file: {lsh_file}")
|
106
|
+
logging.warning(f" Minhashes file: {minhashes_file}")
|
102
107
|
return False
|
103
108
|
|
104
109
|
lsh_data, minhashes_data = self.storage_strategy.load(self.lsh_base_path)
|
@@ -92,5 +92,19 @@ class PickleStorage(LshStorageStrategy):
|
|
92
92
|
"""Check if both LSH and minhashes pickle files exist."""
|
93
93
|
lsh_path = base_path.with_suffix('.pkl')
|
94
94
|
minhashes_path = base_path.parent / f"{base_path.stem}_minhashes.pkl"
|
95
|
-
|
96
|
-
|
95
|
+
|
96
|
+
# Add debug logging to help diagnose path issues
|
97
|
+
import logging
|
98
|
+
logger = logging.getLogger(__name__)
|
99
|
+
logger.debug(f"Checking LSH files existence:")
|
100
|
+
logger.debug(f" Base path: {base_path}")
|
101
|
+
logger.debug(f" LSH path: {lsh_path} (exists: {lsh_path.exists()})")
|
102
|
+
logger.debug(f" Minhashes path: {minhashes_path} (exists: {minhashes_path.exists()})")
|
103
|
+
|
104
|
+
lsh_exists = lsh_path.exists()
|
105
|
+
minhashes_exists = minhashes_path.exists()
|
106
|
+
|
107
|
+
if not lsh_exists or not minhashes_exists:
|
108
|
+
logger.warning(f"LSH files missing - LSH: {lsh_path} (exists: {lsh_exists}), Minhashes: {minhashes_path} (exists: {minhashes_exists})")
|
109
|
+
|
110
|
+
return lsh_exists and minhashes_exists
|
@@ -377,30 +377,7 @@ class MariaDBPlugin(DbPlugin):
|
|
377
377
|
"""Lazy load LSH manager for backward compatibility."""
|
378
378
|
if self._lsh_manager is None and self.db_directory_path:
|
379
379
|
from ..lsh.manager import LshManager
|
380
|
-
|
381
|
-
possible_paths = [
|
382
|
-
self.db_directory_path, # Original path
|
383
|
-
Path(self.db_root_path) / "data" / f"{self.db_mode}_databases" / self.db_id, # Data subdirectory
|
384
|
-
]
|
385
|
-
|
386
|
-
lsh_manager = None
|
387
|
-
for path in possible_paths:
|
388
|
-
try:
|
389
|
-
temp_manager = LshManager(path)
|
390
|
-
if temp_manager.is_available():
|
391
|
-
lsh_manager = temp_manager
|
392
|
-
logger.info(f"Found LSH data at: {path}")
|
393
|
-
break
|
394
|
-
except Exception as e:
|
395
|
-
logger.debug(f"LSH not found at {path}: {e}")
|
396
|
-
continue
|
397
|
-
|
398
|
-
if lsh_manager is None:
|
399
|
-
# Create manager with original path as fallback
|
400
|
-
lsh_manager = LshManager(self.db_directory_path)
|
401
|
-
logger.warning(f"No LSH data found, using default path: {self.db_directory_path}")
|
402
|
-
|
403
|
-
self._lsh_manager = lsh_manager
|
380
|
+
self._lsh_manager = LshManager(self.db_directory_path)
|
404
381
|
return self._lsh_manager
|
405
382
|
|
406
383
|
# LSH integration methods for backward compatibility
|
@@ -349,30 +349,7 @@ class MySQLPlugin(DbPlugin):
|
|
349
349
|
"""Lazy load LSH manager for backward compatibility."""
|
350
350
|
if self._lsh_manager is None and self.db_directory_path:
|
351
351
|
from ..lsh.manager import LshManager
|
352
|
-
|
353
|
-
possible_paths = [
|
354
|
-
self.db_directory_path, # Original path
|
355
|
-
Path(self.db_root_path) / "data" / f"{self.db_mode}_databases" / self.db_id, # Data subdirectory
|
356
|
-
]
|
357
|
-
|
358
|
-
lsh_manager = None
|
359
|
-
for path in possible_paths:
|
360
|
-
try:
|
361
|
-
temp_manager = LshManager(path)
|
362
|
-
if temp_manager.is_available():
|
363
|
-
lsh_manager = temp_manager
|
364
|
-
logger.info(f"Found LSH data at: {path}")
|
365
|
-
break
|
366
|
-
except Exception as e:
|
367
|
-
logger.debug(f"LSH not found at {path}: {e}")
|
368
|
-
continue
|
369
|
-
|
370
|
-
if lsh_manager is None:
|
371
|
-
# Create manager with original path as fallback
|
372
|
-
lsh_manager = LshManager(self.db_directory_path)
|
373
|
-
logger.warning(f"No LSH data found, using default path: {self.db_directory_path}")
|
374
|
-
|
375
|
-
self._lsh_manager = lsh_manager
|
352
|
+
self._lsh_manager = LshManager(self.db_directory_path)
|
376
353
|
return self._lsh_manager
|
377
354
|
|
378
355
|
# LSH integration methods for backward compatibility
|
@@ -93,30 +93,7 @@ class PostgreSQLPlugin(DbPlugin):
|
|
93
93
|
"""Lazy load LSH manager for backward compatibility"""
|
94
94
|
if self._lsh_manager is None and self.db_directory_path:
|
95
95
|
from ..lsh.manager import LshManager
|
96
|
-
|
97
|
-
possible_paths = [
|
98
|
-
self.db_directory_path, # Original path
|
99
|
-
Path(self.db_root_path) / "data" / f"{self.db_mode}_databases" / self.db_id, # Data subdirectory
|
100
|
-
]
|
101
|
-
|
102
|
-
lsh_manager = None
|
103
|
-
for path in possible_paths:
|
104
|
-
try:
|
105
|
-
temp_manager = LshManager(path)
|
106
|
-
if temp_manager.is_available():
|
107
|
-
lsh_manager = temp_manager
|
108
|
-
logger.info(f"Found LSH data at: {path}")
|
109
|
-
break
|
110
|
-
except Exception as e:
|
111
|
-
logger.debug(f"LSH not found at {path}: {e}")
|
112
|
-
continue
|
113
|
-
|
114
|
-
if lsh_manager is None:
|
115
|
-
# Create manager with original path as fallback
|
116
|
-
lsh_manager = LshManager(self.db_directory_path)
|
117
|
-
logger.warning(f"No LSH data found, using default path: {self.db_directory_path}")
|
118
|
-
|
119
|
-
self._lsh_manager = lsh_manager
|
96
|
+
self._lsh_manager = LshManager(self.db_directory_path)
|
120
97
|
return self._lsh_manager
|
121
98
|
|
122
99
|
# LSH integration methods for backward compatibility
|
@@ -117,30 +117,7 @@ class SQLitePlugin(DbPlugin):
|
|
117
117
|
"""Lazy load LSH manager for backward compatibility"""
|
118
118
|
if self._lsh_manager is None and self.db_directory_path:
|
119
119
|
from ..lsh.manager import LshManager
|
120
|
-
|
121
|
-
possible_paths = [
|
122
|
-
self.db_directory_path, # Original path
|
123
|
-
Path(self.db_root_path) / "data" / f"{self.db_mode}_databases" / self.db_id, # Data subdirectory
|
124
|
-
]
|
125
|
-
|
126
|
-
lsh_manager = None
|
127
|
-
for path in possible_paths:
|
128
|
-
try:
|
129
|
-
temp_manager = LshManager(path)
|
130
|
-
if temp_manager.is_available():
|
131
|
-
lsh_manager = temp_manager
|
132
|
-
logger.info(f"Found LSH data at: {path}")
|
133
|
-
break
|
134
|
-
except Exception as e:
|
135
|
-
logger.debug(f"LSH not found at {path}: {e}")
|
136
|
-
continue
|
137
|
-
|
138
|
-
if lsh_manager is None:
|
139
|
-
# Create manager with original path as fallback
|
140
|
-
lsh_manager = LshManager(self.db_directory_path)
|
141
|
-
logger.warning(f"No LSH data found, using default path: {self.db_directory_path}")
|
142
|
-
|
143
|
-
self._lsh_manager = lsh_manager
|
120
|
+
self._lsh_manager = LshManager(self.db_directory_path)
|
144
121
|
return self._lsh_manager
|
145
122
|
|
146
123
|
# LSH integration methods for backward compatibility
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: thoth_dbmanager
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.8
|
4
4
|
Summary: A Python library for managing SQL databases with support for multiple database types, LSH-based similarity search, and a modern plugin architecture.
|
5
5
|
Author-email: Marco Pancotti <mp@tylconsulting.it>
|
6
6
|
Project-URL: Homepage, https://github.com/mptyl/thoth_dbmanager
|
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
|
{thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/helpers/multi_db_generator.py
RENAMED
File without changes
|
{thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager/helpers/preprocess_values.py
RENAMED
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
|
{thoth_dbmanager-0.4.6 → thoth_dbmanager-0.4.8}/thoth_dbmanager.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|