altcodepro-polydb-python 2.2.0__tar.gz → 2.2.2__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 (66) hide show
  1. {altcodepro_polydb_python-2.2.0/src/altcodepro_polydb_python.egg-info → altcodepro_polydb_python-2.2.2}/PKG-INFO +2 -2
  2. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/README.md +1 -1
  3. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/pyproject.toml +1 -1
  4. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2/src/altcodepro_polydb_python.egg-info}/PKG-INFO +2 -2
  5. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/__init__.py +1 -1
  6. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/AzureQueueAdapter.py +1 -1
  7. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/AzureTableStorageAdapter.py +1 -1
  8. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/FirestoreAdapter.py +1 -1
  9. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/PubSubAdapter.py +1 -1
  10. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/SQSAdapter.py +1 -1
  11. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/VercelKVAdapter.py +1 -1
  12. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/audit/models.py +1 -1
  13. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/base/NoSQLKVAdapter.py +1 -1
  14. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/cache.py +1 -1
  15. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/databaseFactory.py +2 -5
  16. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/security.py +1 -1
  17. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/LICENSE +0 -0
  18. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/MANIFEST.in +0 -0
  19. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/example_usage.py +0 -0
  20. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/requirements-aws.txt +0 -0
  21. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/requirements-azure.txt +0 -0
  22. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/requirements-dev.txt +0 -0
  23. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/requirements-gcp.txt +0 -0
  24. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/requirements-generic.txt +0 -0
  25. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/requirements.txt +0 -0
  26. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/setup.cfg +0 -0
  27. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/setup.py +0 -0
  28. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/altcodepro_polydb_python.egg-info/SOURCES.txt +0 -0
  29. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/altcodepro_polydb_python.egg-info/dependency_links.txt +0 -0
  30. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/altcodepro_polydb_python.egg-info/requires.txt +0 -0
  31. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/altcodepro_polydb_python.egg-info/top_level.txt +0 -0
  32. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/AzureBlobStorageAdapter.py +0 -0
  33. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/AzureFileStorageAdapter.py +0 -0
  34. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/DynamoDBAdapter.py +0 -0
  35. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/EFSAdapter.py +0 -0
  36. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/GCPStorageAdapter.py +0 -0
  37. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/MongoDBAdapter.py +0 -0
  38. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/PostgreSQLAdapter.py +0 -0
  39. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/S3Adapter.py +0 -0
  40. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/S3CompatibleAdapter.py +0 -0
  41. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/adapters/__init__.py +0 -0
  42. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/advanced_query.py +0 -0
  43. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/audit/AuditStorage.py +0 -0
  44. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/audit/__init__.py +0 -0
  45. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/audit/context.py +0 -0
  46. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/audit/manager.py +0 -0
  47. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/base/ObjectStorageAdapter.py +0 -0
  48. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/base/QueueAdapter.py +0 -0
  49. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/base/SharedFilesAdapter.py +0 -0
  50. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/base/__init__.py +0 -0
  51. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/batch.py +0 -0
  52. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/decorators.py +0 -0
  53. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/errors.py +0 -0
  54. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/factory.py +0 -0
  55. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/json_safe.py +0 -0
  56. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/models.py +0 -0
  57. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/monitoring.py +0 -0
  58. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/multitenancy.py +0 -0
  59. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/py.typed +0 -0
  60. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/query.py +0 -0
  61. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/registry.py +0 -0
  62. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/retry.py +0 -0
  63. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/schema.py +0 -0
  64. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/types.py +0 -0
  65. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/utils.py +0 -0
  66. {altcodepro_polydb_python-2.2.0 → altcodepro_polydb_python-2.2.2}/src/polydb/validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: altcodepro-polydb-python
3
- Version: 2.2.0
3
+ Version: 2.2.2
4
4
  Summary: Production-ready multi-cloud database abstraction layer with connection pooling, retry logic, and thread safety
5
5
  Author: AltCodePro
6
6
  Project-URL: Homepage, https://github.com/altcodepro/polydb-python
@@ -79,7 +79,7 @@ Requires-Dist: pytest-mock>=3.15.1; extra == "test"
79
79
  Requires-Dist: moto>=5.1.21; extra == "test"
80
80
  Dynamic: license-file
81
81
 
82
- # PolyDB v2.2.0 - Enterprise Database Abstraction Layer
82
+ # PolyDB v2.2.2 - Enterprise Database Abstraction Layer
83
83
 
84
84
  **Production-ready, cloud-independent database abstraction with full LINQ support, field-level audit, cache, and overflow storage**
85
85
 
@@ -1,4 +1,4 @@
1
- # PolyDB v2.2.0 - Enterprise Database Abstraction Layer
1
+ # PolyDB v2.2.2 - Enterprise Database Abstraction Layer
2
2
 
3
3
  **Production-ready, cloud-independent database abstraction with full LINQ support, field-level audit, cache, and overflow storage**
4
4
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "altcodepro-polydb-python"
7
- version = "2.2.0"
7
+ version = "2.2.2"
8
8
  description = "Production-ready multi-cloud database abstraction layer with connection pooling, retry logic, and thread safety"
9
9
  readme = { file = "README.md", content-type = "text/markdown" }
10
10
  requires-python = ">=3.8"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: altcodepro-polydb-python
3
- Version: 2.2.0
3
+ Version: 2.2.2
4
4
  Summary: Production-ready multi-cloud database abstraction layer with connection pooling, retry logic, and thread safety
5
5
  Author: AltCodePro
6
6
  Project-URL: Homepage, https://github.com/altcodepro/polydb-python
@@ -79,7 +79,7 @@ Requires-Dist: pytest-mock>=3.15.1; extra == "test"
79
79
  Requires-Dist: moto>=5.1.21; extra == "test"
80
80
  Dynamic: license-file
81
81
 
82
- # PolyDB v2.2.0 - Enterprise Database Abstraction Layer
82
+ # PolyDB v2.2.2 - Enterprise Database Abstraction Layer
83
83
 
84
84
  **Production-ready, cloud-independent database abstraction with full LINQ support, field-level audit, cache, and overflow storage**
85
85
 
@@ -4,7 +4,7 @@ PolyDB - Enterprise Cloud-Independent Database Abstraction
4
4
  Full LINQ support, field-level audit, cache, soft delete, overflow storage
5
5
  """
6
6
 
7
- __version__ = "2.2.0"
7
+ __version__ = "2.2.2"
8
8
 
9
9
  from .factory import CloudDatabaseFactory
10
10
  from .databaseFactory import DatabaseFactory
@@ -6,7 +6,7 @@ import os
6
6
  import threading
7
7
  from typing import Any, Dict, List
8
8
 
9
- from src.polydb.json_safe import json_safe
9
+ from ..json_safe import json_safe
10
10
 
11
11
  class AzureQueueAdapter(QueueAdapter):
12
12
  """Azure Queue Storage with client reuse"""
@@ -3,7 +3,7 @@ import os
3
3
  import threading
4
4
  from typing import Any, Dict, List, Optional
5
5
  from polydb.base.NoSQLKVAdapter import NoSQLKVAdapter
6
- from src.polydb.json_safe import json_safe
6
+ from ..json_safe import json_safe
7
7
  from ..errors import NoSQLError, ConnectionError
8
8
  from ..retry import retry
9
9
  from ..types import JsonDict
@@ -6,7 +6,7 @@ from google.cloud import firestore
6
6
  from google.cloud import storage
7
7
  from google.cloud.firestore import Client
8
8
  from polydb.base.NoSQLKVAdapter import NoSQLKVAdapter
9
- from src.polydb.json_safe import json_safe
9
+ from ..json_safe import json_safe
10
10
 
11
11
  from ..errors import NoSQLError, ConnectionError
12
12
  from ..retry import retry
@@ -7,7 +7,7 @@ import os
7
7
  import threading
8
8
  from typing import Any, Dict, List
9
9
 
10
- from src.polydb.json_safe import json_safe
10
+ from ..json_safe import json_safe
11
11
 
12
12
  class PubSubAdapter(QueueAdapter):
13
13
  """GCP Pub/Sub with client reuse"""
@@ -12,7 +12,7 @@ import os
12
12
  import threading
13
13
  from typing import Any, Dict, List
14
14
 
15
- from src.polydb.json_safe import json_safe
15
+ from ..json_safe import json_safe
16
16
 
17
17
 
18
18
  class SQSAdapter(QueueAdapter):
@@ -3,7 +3,7 @@ import os
3
3
  import threading
4
4
  from typing import Any, Dict, List, Optional
5
5
  from polydb.base.NoSQLKVAdapter import NoSQLKVAdapter
6
- from src.polydb.json_safe import json_safe
6
+ from ..json_safe import json_safe
7
7
  from ..errors import NoSQLError, StorageError
8
8
  from ..retry import retry
9
9
  from ..types import JsonDict
@@ -7,7 +7,7 @@ import uuid
7
7
  import hashlib
8
8
  import json
9
9
 
10
- from src.polydb.json_safe import json_safe
10
+ from ..json_safe import json_safe
11
11
 
12
12
 
13
13
  @dataclass
@@ -6,7 +6,7 @@ import json
6
6
  import threading
7
7
  from typing import Any, Dict, List, Optional, Tuple, Union, TYPE_CHECKING
8
8
 
9
- from src.polydb.json_safe import json_safe
9
+ from ..json_safe import json_safe
10
10
 
11
11
  from ..errors import NoSQLError, StorageError
12
12
  from ..retry import retry
@@ -8,7 +8,7 @@ import hashlib
8
8
  import threading
9
9
  from enum import Enum
10
10
  import redis
11
- from src.polydb.json_safe import json_safe
11
+ from .json_safe import json_safe
12
12
 
13
13
  class CacheStrategy(Enum):
14
14
  """Cache invalidation strategies"""
@@ -157,9 +157,6 @@ class DatabaseFactory:
157
157
  return data
158
158
 
159
159
  def _apply_soft_delete_filter(self, query: Optional[Lookup]) -> Lookup:
160
- if not self._soft_delete:
161
- return query or {}
162
-
163
160
  result = dict(query or {})
164
161
  result.setdefault("deleted_at", None)
165
162
  return result
@@ -310,7 +307,7 @@ class DatabaseFactory:
310
307
  meta = self._meta(model)
311
308
  tenant_id = self._current_tenant_id()
312
309
  actor_id = self._current_actor_id()
313
- query = self._apply_soft_delete_filter(query if not include_deleted else None)
310
+ query = self._apply_soft_delete_filter(query) if include_deleted else query
314
311
  # Multi-tenancy & RLS filters
315
312
  if self.tenant_enforcer:
316
313
  query = self.tenant_enforcer.enforce_read(model_name, query or {})
@@ -421,7 +418,7 @@ class DatabaseFactory:
421
418
  tenant_id = self._current_tenant_id()
422
419
  actor_id = self._current_actor_id()
423
420
 
424
- query = self._apply_soft_delete_filter(query if not include_deleted else None)
421
+ query = self._apply_soft_delete_filter(query) if include_deleted else query
425
422
 
426
423
  if self.tenant_enforcer:
427
424
  query = self.tenant_enforcer.enforce_read(model_name, query or {})
@@ -11,7 +11,7 @@ import json
11
11
  from functools import wraps
12
12
  import logging
13
13
 
14
- from src.polydb.json_safe import json_safe
14
+ from .json_safe import json_safe
15
15
 
16
16
  logger = logging.getLogger(__name__)
17
17