Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for James (0.17 sec)

  1. fastapi/encoders.py

            bool,
            Doc(
                """
                Pydantic's `by_alias` parameter, passed to Pydantic models to define if
                the output should use the alias names (when provided) or the Python
                attribute names. In an API, if you set an alias, it's probably because you
                want to use it in the result, so you probably want to leave this set to
                `True`.
                """
            ),
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  2. docs_src/path_operation_advanced_configuration/tutorial002.py

    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items():
        return [{"item_id": "Foo"}]
    
    
    def use_route_names_as_operation_ids(app: FastAPI) -> None:
        """
        Simplify operation IDs so that generated API clients have simpler function
        names.
    
        Should be called only after all routes have been added.
        """
        for route in app.routes:
            if isinstance(route, APIRoute):
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 572 bytes
    - Viewed (0)
  3. tests/test_response_by_alias.py

                    )
                }
            )
        else:
    
            class Config:
                schema_extra = {
                    "description": (
                        "response_model_by_alias=False is basically a quick hack, to support "
                        "proper OpenAPI use another model with the correct field names"
                    )
                }
    
    
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 11.1K bytes
    - Viewed (0)
  4. configure.py

            False,
            bazel_config_name='tensorrt')
    
        environ_save = dict(environ_cp)
        for _ in range(_DEFAULT_PROMPT_ASK_ATTEMPTS):
    
          if validate_cuda_config(environ_cp):
            cuda_env_names = [
                'TF_CUDA_VERSION',
                'TF_CUBLAS_VERSION',
                'TF_CUDNN_VERSION',
                'TF_TENSORRT_VERSION',
                'TF_NCCL_VERSION',
                'TF_CUDA_PATHS',
    Python
    - Registered: Tue Apr 16 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  5. ci/official/containers/linux_arm64/devel.usertools/squash_testlogs.py

          p.getparent().remove(p)
        # Remove duplicate results of the same exact test (e.g. due to retry
        # attempts)
        for p in testsuite._elem.xpath(".//error | .//failure"):
          # Sharded tests have target names like this:
          # WindowOpsTest.test_tflite_convert0 (<function hann_window at
          #     0x7fc61728dd40>, 10, False, tf.float32)
          # Where 0x... is a thread ID (or something) that is not important for
    Python
    - Registered: Tue Apr 16 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 19:00:37 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  6. fastapi/utils.py

            "4XX",
            "5XX",
        }:
            return True
        current_status_code = int(status_code)
        return not (current_status_code < 200 or current_status_code in {204, 205, 304})
    
    
    def get_path_param_names(path: str) -> Set[str]:
        return set(re.findall("{(.*?)}", path))
    
    
    def create_response_field(
        name: str,
        type_: Type[Any],
        class_validators: Optional[Dict[str, Validator]] = None,
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Mon Jan 15 10:32:16 GMT 2024
    - 8K bytes
    - Viewed (0)
  7. tests/test_operations_signatures.py

    import inspect
    
    from fastapi import APIRouter, FastAPI
    
    method_names = ["get", "put", "post", "delete", "options", "head", "patch", "trace"]
    
    
    def test_signatures_consistency():
        base_sig = inspect.signature(APIRouter.get)
        for method_name in method_names:
            router_method = getattr(APIRouter, method_name)
            app_method = getattr(FastAPI, method_name)
            router_sig = inspect.signature(router_method)
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Mon May 27 12:08:13 GMT 2019
    - 934 bytes
    - Viewed (0)
  8. .github/actions/people/app/main.py

        contributors_results = get_contributors(pr_nodes=pr_nodes)
        authors = {**experts_results.authors, **contributors_results.authors}
        maintainers_logins = {"tiangolo"}
        bot_names = {"codecov", "github-actions", "pre-commit-ci", "dependabot"}
        maintainers = []
        for login in maintainers_logins:
            user = authors[login]
            maintainers.append(
                {
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Tue Mar 26 17:38:21 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  9. scripts/docs.py

        new_alternate: List[Dict[str, str]] = []
        # Language names sourced from https://quickref.me/iso-639-1
        # Contributors may wish to update or change these, e.g. to fix capitalization.
        language_names_path = Path(__file__).parent / "../docs/language_names.yml"
        local_language_names: Dict[str, str] = mkdocs.utils.yaml_load(
            language_names_path.read_text(encoding="utf-8")
        )
        for lang_path in get_lang_paths():
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  10. fastapi/dependencies/utils.py

        *,
        path: str,
        call: Callable[..., Any],
        name: Optional[str] = None,
        security_scopes: Optional[List[str]] = None,
        use_cache: bool = True,
    ) -> Dependant:
        path_param_names = get_path_param_names(path)
        endpoint_signature = get_typed_signature(call)
        signature_params = endpoint_signature.parameters
        dependant = Dependant(
            call=call,
            name=name,
            path=path,
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
Back to top