- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 55 for dependsOn (0.17 sec)
-
.teamcity/src/main/kotlin/configurations/GradleBuildConfigurationDefaults.kt
import common.applyDefaultSettings import common.buildToolGradleParameters import common.checkCleanM2AndAndroidUserHome import common.cleanUpGitUntrackedFilesAndDirectories import common.compileAllDependency import common.dependsOn import common.functionalTestParameters import common.gradleWrapper import common.killProcessStep import common.onlyRunOnGitHubMergeQueueBranch import jetbrains.buildServer.configs.kotlin.BuildFeatures
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Wed Apr 24 08:17:56 GMT 2024 - 7.9K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleBuildDocumentationPlugin.java
task.getPort().convention(webserverPort); task.dependsOn(extension.getRenderedDocumentation()); }); tasks.register("docs", task -> { task.setDescription("Generates all documentation"); task.setGroup("documentation"); task.dependsOn(extension.getRenderedDocumentation()); }); }
Java - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Wed Apr 17 20:04:00 GMT 2024 - 7.4K bytes - Viewed (0) -
.teamcity/src/main/kotlin/common/extensions.kt
"--no-configuration-cache", "%additional.gradle.parameters%", if (daemon) "--daemon" else "--no-daemon", if (isContinue) "--continue" else "" ) fun Dependencies.dependsOn(buildTypeId: RelativeId) { dependency(buildTypeId) { snapshot { onDependencyFailure = FailureAction.FAIL_TO_START onDependencyCancel = FailureAction.FAIL_TO_START } }
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 10:49:15 GMT 2024 - 13K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild.binary-compatibility.gradle
rootProject.layout.projectDirectory, currentUpgradedPropertiesFile.get().asFile, baselineUpgradedPropertiesFile.get().asFile ) } tasks.named("check").configure { dependsOn(checkBinaryCompatibility) } tasks.register("cleanAcceptedApiChanges", CleanAcceptedApiChanges) { description = 'Cleans up all existing accepted API changes.' jsonFile = apiChangesJsonFile.asFile }
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Thu Apr 11 12:20:44 GMT 2024 - 8.6K bytes - Viewed (0) -
tests/test_dependency_overrides.py
@app.get("/decorator-depends/", dependencies=[Depends(common_parameters)]) async def decorator_depends(): return {"in": "decorator-depends"} @router.get("/router-depends/") async def router_depends(commons: dict = Depends(common_parameters)): return {"in": "router-depends", "params": commons} @router.get("/router-decorator-depends/", dependencies=[Depends(common_parameters)]) async def router_decorator_depends():
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 15.4K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
``` === "Python 3.8 non-Annotated" !!! tip Prefer to use the `Annotated` version if possible. ```Python commons: CommonQueryParams = Depends() ``` You declare the dependency as the type of the parameter, and you use `Depends()` without any parameter, instead of having to write the full class *again* inside of `Depends(CommonQueryParams)`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.4K bytes - Viewed (0) -
fastapi/security/api_key.py
## Usage Create an instance object and use that object as the dependency in `Depends()`. The dependency result will be a string containing the key value. ## Example ```python from fastapi import Depends, FastAPI from fastapi.security import APIKeyQuery app = FastAPI() query_scheme = APIKeyQuery(name="api_key")
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 23 22:29:18 GMT 2024 - 9.1K bytes - Viewed (0) -
docs/en/docs/reference/dependencies.md
# Dependencies - `Depends()` and `Security()` ## `Depends()` Dependencies are handled mainly with the special function `Depends()` that takes a callable. Here is the reference for it and its parameters. You can import it directly from `fastapi`: ```python from fastapi import Depends ``` ::: fastapi.Depends ## `Security()`
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 671 bytes - Viewed (0) -
tests/test_dependency_duplicates.py
): return [item, sub_item] @app.post("/with-duplicates") async def with_duplicates(item: Item, item2: Item = Depends(duplicate_dependency)): return [item, item2] @app.post("/no-duplicates") async def no_duplicates(item: Item, item2: Item = Depends(dependency)): return [item, item2] @app.post("/with-duplicates-sub") async def no_duplicates_sub(
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 8.4K bytes - Viewed (0) -
fastapi/security/http.py
```python from typing import Annotated from fastapi import Depends, FastAPI from fastapi.security import HTTPBasic, HTTPBasicCredentials app = FastAPI() security = HTTPBasic() @app.get("/users/me") def read_current_user(credentials: Annotated[HTTPBasicCredentials, Depends(security)]): return {"username": credentials.username, "password": credentials.password}
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Apr 19 15:29:38 GMT 2024 - 13.2K bytes - Viewed (0)