Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 480 for unifon (0.07 sec)

  1. scripts/docs.py

    from functools import lru_cache
    from http.server import HTTPServer, SimpleHTTPRequestHandler
    from importlib import metadata
    from multiprocessing import Pool
    from pathlib import Path
    from typing import Any, Dict, List, Optional, Union
    
    import mkdocs.utils
    import typer
    import yaml
    from jinja2 import Template
    from ruff.__main__ import find_ruff_bin
    
    logging.basicConfig(level=logging.INFO)
    
    app = typer.Typer()
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 08 11:01:17 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/middleware.md

    因此,有些第三方 ASGI 中间件的文档推荐以如下方式使用中间件:
    
    ```Python
    from unicorn import UnicornMiddleware
    
    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    但 FastAPI(实际上是 Starlette)提供了一种更简单的方式,能让内部中间件在处理服务器错误的同时,还能让自定义异常处理器正常运作。
    
    为此,要使用 `app.add_middleware()` (与 CORS 中的示例一样)。
    
    ```Python
    from fastapi import FastAPI
    from unicorn import UnicornMiddleware
    
    app = FastAPI()
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. internal/config/lambda/event/targetidset_test.go

    		{NewTargetIDSet(TargetID{"1", "webhook"}), NewTargetIDSet(TargetID{"1", "webhook"}), NewTargetIDSet(TargetID{"1", "webhook"})},
    	}
    
    	for i, testCase := range testCases {
    		result := testCase.set.Union(testCase.setToAdd)
    
    		if !reflect.DeepEqual(testCase.expectedResult, result) {
    			t.Fatalf("test %v: result: expected: %v, got: %v", i+1, testCase.expectedResult, result)
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  4. docs/es/docs/advanced/path-operation-advanced-configuration.md

    ///
    
    Puedes asignar el `operationId` de OpenAPI para ser usado en tu *operación de path* con el parámetro `operation_id`.
    
    En este caso tendrías que asegurarte de que sea único para cada operación.
    
    ```Python hl_lines="6"
    {!../../docs_src/path_operation_advanced_configuration/tutorial001.py!}
    ```
    
    ### Usando el nombre de la *función de la operación de path* en el operationId
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. misc/cgo/gmp/gmp.go

    a Go translation.  C arithmetic types translate to precisely-sized Go
    arithmetic types.  A C struct translates to a Go struct, field by
    field; unrepresentable fields are replaced with opaque byte arrays.  A
    C union translates into a struct containing the first union member and
    perhaps additional padding.  C arrays become Go arrays.  C pointers
    become Go pointers.  C function pointers become Go's uintptr.
    C void pointers become Go's unsafe.Pointer.
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/sql-databases.md

    <div class="termy">
    
    ```console
    $ pip install sqlmodel
    ---> 100%
    ```
    
    </div>
    
    ## Criar o App com um Único Modelo
    
    Vamos criar a primeira versão mais simples do app com um único modelo **SQLModel**.
    
    Depois, vamos melhorá-lo aumentando a segurança e versatilidade com **múltiplos modelos** abaixo. 🤓
    
    ### Criar Modelos
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:25:29 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Multisets.java

          return ((Multiset<?>) elements).elementSet().size();
        }
        return 11; // initial capacity will be rounded up to 16
      }
    
      /**
       * Returns an unmodifiable view of the union of two multisets. In the returned multiset, the count
       * of each element is the <i>maximum</i> of its counts in the two backing multisets. The iteration
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Multisets.java

          return ((Multiset<?>) elements).elementSet().size();
        }
        return 11; // initial capacity will be rounded up to 16
      }
    
      /**
       * Returns an unmodifiable view of the union of two multisets. In the returned multiset, the count
       * of each element is the <i>maximum</i> of its counts in the two backing multisets. The iteration
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  9. docs/pt/docs/deployment/server-workers.md

    * Etapas anteriores antes de iniciar
    
    Até este ponto, com todos os tutoriais nos documentos, você provavelmente estava executando um **programa de servidor**, por exemplo, usando o comando `fastapi`, que executa o Uvicorn, executando um **único processo**.
    
    Ao implantar aplicativos, você provavelmente desejará ter alguma **replicação de processos** para aproveitar **vários núcleos** e poder lidar com mais solicitações.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 20 11:01:03 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. docs/fa/docs/index.md

    ### ایجاد کنید
    * فایلی به نام `main.py` با محتوای زیر ایجاد کنید:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    <details markdown="1">
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 25.9K bytes
    - Viewed (0)
Back to top