- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 601 for OS (0.01 sec)
-
tests/test_tutorial/test_static_files/test_tutorial001.py
import os from pathlib import Path import pytest from fastapi.testclient import TestClient @pytest.fixture(scope="module") def client(): static_dir: Path = Path(os.getcwd()) / "static" static_dir.mkdir(exist_ok=True) sample_file = static_dir / "sample.txt" sample_file.write_text("This is a sample static file.") from docs_src.static_files.tutorial001_py39 import app with TestClient(app) as client:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 1.1K bytes - Viewed (0) -
docs/pt/docs/tutorial/bigger-applications.md
``` </div> E abra os documentos em <a href="http://127.0.0.1:8000/docs" class="external-link" target="_blank">http://127.0.0.1:8000/docs</a>. Você verá a documentação automática da API, incluindo os caminhos de todos os submódulos, usando os caminhos (e prefixos) corretos e as tags corretas: <img src="/img/tutorial/bigger-applications/image01.png">
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 20:32:40 UTC 2025 - 19.7K bytes - Viewed (0) -
cmd/xl-storage_test.go
} if err = os.Chmod(slashpath.Join(permDeniedDir, "mybucket"), 0o400); err != nil { t.Fatalf("Unable to change permission to temporary directory %v. %v", slashpath.Join(permDeniedDir, "mybucket"), err) } t.Cleanup(func() { os.Chmod(slashpath.Join(permDeniedDir, "mybucket"), 0o775) }) if err = os.Chmod(permDeniedDir, 0o400); err != nil {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 66K bytes - Viewed (0) -
docs/pt/docs/tutorial/dependencies/index.md
Você fornece um único parâmetro para `Depends`. Esse parâmetro deve ser algo como uma função. Você **não chama a função** diretamente (não adicione os parênteses no final), apenas a passe como parâmetro de `Depends()`. E essa função vai receber os parâmetros da mesma forma que uma *função de operação de rota*. /// tip | Dica
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 10.7K bytes - Viewed (0) -
cmd/format-erasure_test.go
b, err := json.Marshal(m) if err != nil { t.Fatal(err) } if err = os.MkdirAll(pathJoin(rootPath, minioMetaBucket), os.FileMode(0o755)); err != nil { t.Fatal(err) } if err = os.WriteFile(pathJoin(rootPath, minioMetaBucket, formatConfigFile), b, os.FileMode(0o644)); err != nil { t.Fatal(err) } formatData, _, err := formatErasureMigrate(rootPath) if err != nil {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 12.7K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Nov 08 08:49:11 UTC 2024 - 7.3K bytes - Viewed (0) -
docs/debugging/inspect/decrypt-v2.go
} if strings.Contains(stream.Name, "..") || !utf8.ValidString(stream.Name) { return fmt.Errorf("invalid stream name: %q", stream.Name) } dst := filepath.Join(extractDir, stream.Name) os.Mkdir(extractDir, 0o755) w, err := os.Create(dst) if err != nil { return fmt.Errorf("creating output file: %w", err) } _, err = io.Copy(w, stream) if err != nil { return fmt.Errorf("reading inspect stream: %w", err) }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Feb 17 17:09:42 UTC 2025 - 2.3K bytes - Viewed (0) -
docker-buildx.sh
export release } function _build() { local osarch=$1 IFS=/ read -r -a arr <<<"$osarch" os="${arr[0]}" arch="${arr[1]}" package=$(go list -f '{{.ImportPath}}') printf -- "--> %15s:%s\n" "${osarch}" "${package}" # go build -trimpath to build the binary. export GOOS=$os export GOARCH=$arch export MINIO_RELEASE=RELEASE LDFLAGS=$(go run buildscripts/gen-ldflags.go)
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Oct 19 08:22:05 UTC 2025 - 1.9K bytes - Viewed (0) -
docs/pt/docs/advanced/middleware.md
app = SomeASGIApp() new_app = UnicornMiddleware(app, some_config="rainbow") ``` Mas, o FastAPI (na verdade, o Starlette) fornece uma maneira mais simples de fazer isso que garante que os middlewares internos lidem com erros do servidor e que os manipuladores de exceções personalizados funcionem corretamente. Para isso, você usa `app.add_middleware()` (como no exemplo para CORS). ```Python from fastapi import FastAPI
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4.7K bytes - Viewed (0) -
.teamcity/src/main/kotlin/configurations/BuildLogicTest.kt
package configurations import common.Os import common.buildScanTagParam import common.getBuildScanCustomValueParam import model.CIBuildModel import model.Stage class BuildLogicTest( model: CIBuildModel, stage: Stage, ) : OsAwareBaseGradleBuildType(os = Os.LINUX, stage = stage, init = { id(buildTypeId(model)) name = "Build-logic checks" description = "Run check on all build-logic builds"
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Tue Dec 30 04:30:54 UTC 2025 - 1.1K bytes - Viewed (0)