apexdevkit 1.32.5__tar.gz → 1.32.6__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.
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/PKG-INFO +1 -1
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/core/decorator.py +8 -9
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/core/interface.py +3 -3
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/pyproject.toml +1 -1
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/LICENSE +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/README.md +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/__init__.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/annotation/__init__.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/annotation/deprecate.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/date.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/environment.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/error.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/fastapi/__init__.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/fastapi/builder.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/fastapi/dependable.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/fastapi/docs.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/fastapi/name.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/fastapi/resource.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/fastapi/response.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/fastapi/router.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/fastapi/schema.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/fastapi/service.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/fluent.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/formatter.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/http/__init__.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/http/fake.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/http/fluent.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/http/httpx/__init__.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/http/httpx/client.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/http/httpx/hooks.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/http/json.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/http/url.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/key_fn.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/py.typed +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/query/__init__.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/query/generator.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/query/query.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/__init__.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/core/__init__.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/core/database.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/core/mixin.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/core/multi.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/in_memory/__init__.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/in_memory/mixin.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/in_memory/repository.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/in_memory/store.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/sql/__init__.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/sql/connector.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/sql/field.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/sql/mssql.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/repository/sql/sqlite.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/security/__init__.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/security/core.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/security/hashing.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/server.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/sync/__init__.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/sync/observer.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/sync/source.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/sync/sync.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/sync/target.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/testing/__init__.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/testing/database.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/testing/fake.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/testing/rest.py +0 -0
- {apexdevkit-1.32.5 → apexdevkit-1.32.6}/apexdevkit/value.py +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from collections.abc import
|
|
1
|
+
from collections.abc import Iterable, Iterator
|
|
2
2
|
from contextlib import suppress
|
|
3
3
|
from dataclasses import dataclass, field
|
|
4
4
|
|
|
@@ -58,19 +58,18 @@ class RepositoryDecorator(Repository[ItemT]): # pragma: no cover
|
|
|
58
58
|
|
|
59
59
|
@dataclass(frozen=True, kw_only=True)
|
|
60
60
|
class BruteForceBatch(RepositoryDecorator[ItemT]):
|
|
61
|
-
def load(self, source:
|
|
61
|
+
def load(self, source: Iterable[ItemT]) -> Iterable[ItemT]:
|
|
62
62
|
for item in source:
|
|
63
63
|
with suppress(ExistsError):
|
|
64
64
|
yield self.inner.create(item)
|
|
65
65
|
|
|
66
|
-
def prune(self, source:
|
|
67
|
-
for item in
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
yield item
|
|
66
|
+
def prune(self, source: Iterable[ItemT]) -> Iterable[ItemT]:
|
|
67
|
+
for item in source:
|
|
68
|
+
with suppress(DoesNotExistError):
|
|
69
|
+
self.inner.delete(item.id)
|
|
70
|
+
yield item
|
|
72
71
|
|
|
73
|
-
def renew(self, source:
|
|
72
|
+
def renew(self, source: Iterable[ItemT]) -> Iterable[ItemT]:
|
|
74
73
|
for item in source:
|
|
75
74
|
with suppress(DoesNotExistError):
|
|
76
75
|
self.inner.update(item)
|
|
@@ -35,11 +35,11 @@ class Repository(Collection[ItemT], Protocol[ItemT]): # pragma: no cover
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
class BatchRepository(Repository[ItemT], Protocol[ItemT]): # pragma: no cover
|
|
38
|
-
def load(self, source:
|
|
38
|
+
def load(self, source: Iterable[ItemT]) -> Iterable[ItemT]:
|
|
39
39
|
pass
|
|
40
40
|
|
|
41
|
-
def prune(self, source:
|
|
41
|
+
def prune(self, source: Iterable[ItemT]) -> Iterable[ItemT]:
|
|
42
42
|
pass
|
|
43
43
|
|
|
44
|
-
def renew(self, source:
|
|
44
|
+
def renew(self, source: Iterable[ItemT]) -> Iterable[ItemT]:
|
|
45
45
|
pass
|
|
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
|
|
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
|