- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 14 for Dependency (0.06 seconds)
-
.teamcity/pom.xml
<dependency> <groupId>io.mockk</groupId> <artifactId>mockk-jvm</artifactId> <version>${mockk.version}</version> </dependency> <dependency> <groupId>net.bytebuddy</groupId> <artifactId>byte-buddy</artifactId> <version>${bytebuddy.version}</version> </dependency> <dependency>Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Dec 29 22:04:16 GMT 2025 - 7.4K bytes - Click Count (2) -
fastapi/param_functions.py
] = None, *, use_cache: Annotated[ bool, Doc( """ By default, after a dependency is called the first time in a request, if the dependency is declared again for the rest of the request (for example if the dependency is needed by several dependencies), the value will be re-used for the rest of the request.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 63K bytes - Click Count (0) -
fastapi/dependencies/utils.py
assert callable(depends.dependency), ( "A parameter-less dependency must have a callable dependency" ) own_oauth_scopes: list[str] = [] if isinstance(depends, params.Security) and depends.scopes: own_oauth_scopes.extend(depends.scopes) return get_dependant( path=path, call=depends.dependency, scope=depends.scope,
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 37.6K bytes - Click Count (3) -
tests/test_dependency_duplicates.py
from pydantic import BaseModel app = FastAPI() client = TestClient(app) class Item(BaseModel): data: str def duplicate_dependency(item: Item): return item def dependency(item2: Item): return item2 def sub_duplicate_dependency( item: Item, sub_item: Item = Depends(duplicate_dependency) ): return [item, sub_item] @app.post("/with-duplicates")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 8K bytes - Click Count (0) -
.github/workflows/translate.yml
- name: Set up Python uses: actions/setup-python@v6 with: python-version: "3.11" - name: Setup uv uses: astral-sh/setup-uv@v7 with: cache-dependency-glob: | requirements**.txt pyproject.toml - name: Install Dependencies run: uv pip install -r requirements-github-actions.txt -r requirements-translations.txtCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:48:45 GMT 2025 - 3.6K bytes - Click Count (0) -
.github/workflows/test.yml
with: python-version: ${{ matrix.python-version }} - name: Setup uv uses: astral-sh/setup-uv@v7 with: version: "0.4.15" enable-cache: true cache-dependency-glob: | requirements**.txt pyproject.toml - name: Install Dependencies run: uv pip install -r requirements-tests.txt - run: mkdir coverage - name: TestCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 08:53:59 GMT 2025 - 4.4K bytes - Click Count (0) -
.teamcity/src/main/kotlin/configurations/StageTriggers.kt
model: CIBuildModel, prevStage: Stage, os: Os? = null, ) { if (os == null || stageWithOsTriggers.getOrDefault(prevStage.stageName, emptyList()).contains(os)) { dependency(RelativeId(stageTriggerId(model, prevStage, os))) { snapshot { onDependencyFailure = FailureAction.FAIL_TO_START onDependencyCancel = FailureAction.FAIL_TO_START }Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Dec 30 12:17:39 GMT 2025 - 7.2K bytes - Click Count (0) -
fastapi/exceptions.py
class FastAPIError(RuntimeError): """ A generic, FastAPI-specific error. """ class DependencyScopeError(FastAPIError): """ A dependency declared that it depends on another dependency with an invalid (narrower) scope. """ class ValidationException(Exception): def __init__( self, errors: Sequence[Any], *,
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 6.8K bytes - Click Count (0) -
fastapi/datastructures.py
from starlette.datastructures import UploadFile as StarletteUploadFile class UploadFile(StarletteUploadFile): """ A file uploaded in a request. Define it as a *path operation function* (or dependency) parameter. If you are using a regular `def` function, you can use the `upload_file.file` attribute to access the raw standard Python file (blocking, not async), useful and needed for non-async code.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 5.1K bytes - Click Count (0) -
docs/en/docs/release-notes.md
* The cache can be disabled per dependency declaration, using `use_cache=False` as in `Depends(your_dependency, use_cache=False)`. * Updated docs at: [Using the same dependency multiple times](https://fastapi.tiangolo.com/tutorial/dependencies/sub-dependencies/#using-the-same-dependency-multiple-times). * PR [#292](https://github.com/tiangolo/fastapi/pull/292).Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 19:06:15 GMT 2025 - 586.7K bytes - Click Count (0)