Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 771 - 780 of 1,005 for trip (0.02 seconds)

  1. docs/zh-hant/docs/deployment/docker.md

    # 在容器中使用 FastAPI - Docker { #fastapi-in-containers-docker }
    
    部署 FastAPI 應用時,一個常見做法是建置一個「Linux 容器映像(container image)」。通常使用 [Docker](https://www.docker.com/) 來完成。之後你可以用多種方式部署該容器映像。
    
    使用 Linux 容器有多種優點,包括安全性、可重現性、簡單性等。
    
    /// tip | 提示
    
    趕時間而且已經懂這些?直接跳到下面的 [`Dockerfile` 👇](#build-a-docker-image-for-fastapi)。
    
    ///
    
    <details>
    <summary>Dockerfile 預覽 👀</summary>
    
    ```Dockerfile
    FROM python:3.14
    
    WORKDIR /code
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 24.9K bytes
    - Click Count (0)
  2. internal/logger/console.go

    type Logger interface {
    	json(msg string, args ...any)
    	quiet(msg string, args ...any)
    	pretty(msg string, args ...any)
    }
    
    func consoleLog(console Logger, msg string, args ...any) {
    	switch {
    	case jsonFlag:
    		// Strip escape control characters from json message
    		msg = ansiRE.ReplaceAllLiteralString(msg, "")
    		console.json(msg, args...)
    	case quietFlag:
    		if len(msg) != 0 && len(args) == 0 {
    			args = append(args, msg)
    			msg = "%s"
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  3. internal/config/dns/etcd_dns.go

    	}
    
    	for _, setter := range setters {
    		setter(args)
    	}
    
    	if len(args.domainNames) == 0 || args.domainIPs.IsEmpty() {
    		return nil, errors.New("invalid argument")
    	}
    
    	// strip ports off of domainIPs
    	domainIPsWithoutPorts := args.domainIPs.ApplyFunc(func(ip string) string {
    		host, _, err := net.SplitHostPort(ip)
    		if err != nil {
    			if strings.Contains(err.Error(), "missing port in address") {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 8K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/test/AntFixture.groovy

            return new File(baseDir, 'pid')
        }
    
        /** Reads the pid file and returns the process' pid */
        @Internal
        int getPid() {
            return Integer.parseInt(pidFile.getText('UTF-8').trim())
        }
    
        /** Returns the file the process writes its bound ports to. Defaults to "ports" inside baseDir. */
        @Internal
        protected File getPortsFile() {
            return new File(baseDir, 'ports')
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 10.1K bytes
    - Click Count (0)
  5. docs/ko/docs/advanced/strict-content-type.md

    로컬 AI 에이전트를 실행하는 방법을 만들었다고 가정해 봅시다.
    
    이 에이전트는 다음 위치에 API를 제공합니다:
    
    ```
    http://localhost:8000/v1/agents/multivac
    ```
    
    또한 다음 위치에 프론트엔드가 있습니다:
    
    ```
    http://localhost:8000
    ```
    
    /// tip | 팁
    
    두 주소 모두 같은 호스트를 사용합니다.
    
    ///
    
    그런 다음 프론트엔드를 통해 AI 에이전트가 여러분을 대신해 작업을 수행하도록 할 수 있습니다.
    
    이는 공개 인터넷이 아니라 로컬에서 실행되므로, 여러분은 로컬 네트워크 접근만을 신뢰하고 별도의 인증을 설정하지 않기로 합니다.
    
    그 후 사용자는 이를 설치해 로컬에서 실행할 수 있습니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:56:39 GMT 2026
    - 4K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/tutorial/body-updates.md

        * 這與再次使用模型的 `.model_dump()` 類似,但它會確保(並轉換)所有值為可轉為 JSON 的資料型別,例如把 `datetime` 轉為 `str`。
    * 將資料儲存到資料庫。
    * 回傳更新後的模型。
    
    {* ../../docs_src/body_updates/tutorial002_py310.py hl[28:35] *}
    
    /// tip | 提示
    
    其實你也可以在 HTTP `PUT` 操作中使用同一套技巧。
    
    但此處示例使用 `PATCH`,因為它正是為這類情境設計的。
    
    ///
    
    /// note | 注意
    
    請注意,輸入的模型依然會被驗證。
    
    因此,如果你希望接收可以省略所有屬性的部分更新,你需要一個所有屬性皆為可選(具預設值或為 `None`)的模型。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  7. docs/fr/docs/tutorial/query-params.md

    Dans ce cas, il y a 3 paramètres de requête :
    
    * `needy`, un `str` requis.
    * `skip`, un `int` avec une valeur par défaut de `0`.
    * `limit`, un `int` optionnel.
    
    /// tip | Astuce
    
    Vous pourriez aussi utiliser des `Enum`s de la même façon qu'avec les [Paramètres de chemin](path-params.md#predefined-values).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  8. docs/tr/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    {* ../../docs_src/pydantic_v1_in_v2/tutorial004_an_py310.py hl[4,18] *}
    
    ### Adım Adım Geçiş { #migrate-in-steps }
    
    /// tip | İpucu
    
    Önce `bump-pydantic` ile deneyin; testleriniz geçerse ve bu yol çalışırsa tek komutla işi bitirmiş olursunuz. ✨
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 6K bytes
    - Click Count (0)
  9. docs/uk/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    {* ../../docs_src/pydantic_v1_in_v2/tutorial004_an_py310.py hl[4,18] *}
    
    ### Покрокова міграція { #migrate-in-steps }
    
    /// tip | Порада
    
    Спершу спробуйте `bump-pydantic`: якщо ваші тести проходять і все працює - ви впоралися однією командою. ✨
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  10. docs/uk/docs/advanced/stream-data.md

    {* ../../docs_src/stream_data/tutorial002_py310.py ln[30:34] hl[31] *}
    
    /// tip | Порада
    
    Якщо вам потрібно викликати блокувальний код усередині async-функції або async-функцію зсередини блокувальної функції, ви можете скористатися [Asyncer](https://asyncer.tiangolo.com) - спорідненою бібліотекою до FastAPI.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:25:54 GMT 2026
    - 8.5K bytes
    - Click Count (0)
Back to Top