apexdevkit 1.5.14__tar.gz → 1.5.15__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.5.14 → apexdevkit-1.5.15}/PKG-INFO +1 -1
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/fastapi/builder.py +0 -3
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/fastapi/router.py +0 -1
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/fastapi/service.py +2 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/pyproject.toml +1 -1
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/LICENSE +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/README.md +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/__init__.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/annotation/__init__.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/annotation/deprecate.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/error.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/fastapi/__init__.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/fastapi/dependable.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/fastapi/docs.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/fastapi/response.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/fastapi/schema.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/formatter.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/http/__init__.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/http/fake.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/http/fluent.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/http/httpx.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/http/json.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/http/url.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/py.typed +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/repository/__init__.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/repository/base.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/repository/connector.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/repository/database.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/repository/in_memory.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/repository/interface.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/testing/__init__.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/testing/database.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/testing/fake.py +0 -0
- {apexdevkit-1.5.14 → apexdevkit-1.5.15}/apexdevkit/testing/rest.py +0 -0
|
@@ -3,8 +3,6 @@ from typing import Any, Self
|
|
|
3
3
|
|
|
4
4
|
from fastapi import APIRouter, FastAPI
|
|
5
5
|
|
|
6
|
-
from apexdevkit.annotation import deprecated
|
|
7
|
-
|
|
8
6
|
|
|
9
7
|
@dataclass
|
|
10
8
|
class FastApiBuilder:
|
|
@@ -28,7 +26,6 @@ class FastApiBuilder:
|
|
|
28
26
|
|
|
29
27
|
return self
|
|
30
28
|
|
|
31
|
-
@deprecated("Pass dependencies to router via with_infra method instead")
|
|
32
29
|
def with_dependency(self, **values: Any) -> Self: # pragma: no cover
|
|
33
30
|
for key, value in values.items():
|
|
34
31
|
setattr(self.app.state, key, value)
|
|
@@ -2,6 +2,7 @@ from abc import ABC
|
|
|
2
2
|
from dataclasses import dataclass, field
|
|
3
3
|
from typing import Any, Dict, Generic, Iterable, Self, TypeVar
|
|
4
4
|
|
|
5
|
+
from apexdevkit.annotation import deprecated
|
|
5
6
|
from apexdevkit.formatter import DataclassFormatter, Formatter
|
|
6
7
|
from apexdevkit.repository.interface import Repository
|
|
7
8
|
|
|
@@ -49,6 +50,7 @@ class RestfulRepositoryBuilder(Generic[ItemT]):
|
|
|
49
50
|
formatter: Formatter[ItemT] | None = field(init=False, default=None)
|
|
50
51
|
repository: Repository[Any, ItemT] = field(init=False)
|
|
51
52
|
|
|
53
|
+
@deprecated("Pass formatter instead")
|
|
52
54
|
def with_resource(self, resource: type[ItemT]) -> Self:
|
|
53
55
|
self.resource = resource
|
|
54
56
|
|
|
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
|