Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for single (0.22 sec)

  1. fastapi/security/oauth2.py

            ],
            scope: Annotated[
                str,
                Form(),
                Doc(
                    """
                    A single string with actually several scopes separated by spaces. Each
                    scope is also a string.
    
                    For example, a single string with:
    
                    ```python
                    "items:read items:write users:read profile openid"
                    ````
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  2. fastapi/param_functions.py

                'Whitelist' validation step. The parameter field will be the single one
                allowed by the alias or set of aliases defined.
                """
            ),
        ] = None,
        serialization_alias: Annotated[
            Union[str, None],
            Doc(
                """
                'Blacklist' validation step. The vanilla parameter field will be the
                single one of the alias' or set of aliases' fields and all the other
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 62.5K bytes
    - Viewed (0)
  3. tensorflow/api_template.__init__.py

    `tf` instead of `tensorflow`, following the common practice of importing
    TensorFlow via the command `import tensorflow as tf`.
    
    The primary function of this module is to import all of the public TensorFlow
    interfaces into a single place. The interfaces themselves are located in
    sub-modules, as described below.
    
    Note that the file `__init__.py` in the TensorFlow source code tree is actually
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 05 06:27:59 GMT 2024
    - 6.7K bytes
    - Viewed (3)
  4. ci/official/containers/linux_arm64/devel.usertools/squash_testlogs.py

    Recursively find all the JUnit test.xml files in one directory, and merge any
    of them that contain failures into one file. The TensorFlow DevInfra team
    uses this to generate a simple overview of an entire pip and nonpip test
    invocation, since the normal logs that Bazel creates are too large for the
    internal invocation viewer.
    """
    import collections
    import os
    import re
    import subprocess
    import sys
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 19:00:37 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  5. tests/test_security_http_basic_realm_description.py

        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
    
    
    def test_security_http_basic_invalid_credentials():
        response = client.get(
            "/users/me", headers={"Authorization": "Basic notabase64token"}
        )
        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
        assert response.json() == {"detail": "Invalid authentication credentials"}
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  6. tests/test_dependency_overrides.py

            ),
            ("/router-decorator-depends/", 200, {"in": "router-decorator-depends"}),
        ],
    )
    def test_override_simple(url, status_code, expected):
        app.dependency_overrides[common_parameters] = overrider_dependency_simple
        response = client.get(url)
        assert response.status_code == status_code
        assert response.json() == expected
        app.dependency_overrides = {}
    
    
    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)
  7. tests/test_response_model_include_exclude.py

            baz="simple_exclude model2 baz",
        )
    
    
    @app.get(
        "/simple_exclude_dict",
        response_model=Model2,
        response_model_exclude={"ref": {"bar"}},
    )
    def simple_exclude_dict():
        return {
            "ref": {
                "foo": "simple_exclude_dict model foo",
                "bar": "simple_exclude_dict model bar",
            },
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jul 19 19:14:58 GMT 2021
    - 4K bytes
    - Viewed (0)
  8. tests/test_invalid_path_param.py

            def read_items(id: Dict[str, Item]):
                pass  # pragma: no cover
    
    
    def test_invalid_simple_list():
        with pytest.raises(AssertionError):
            app = FastAPI()
    
            @app.get("/items/{id}")
            def read_items(id: list):
                pass  # pragma: no cover
    
    
    def test_invalid_simple_tuple():
        with pytest.raises(AssertionError):
            app = FastAPI()
    
            @app.get("/items/{id}")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jun 03 17:59:40 GMT 2019
    - 1.7K bytes
    - Viewed (0)
  9. tests/test_invalid_sequence_param.py

            class Item(BaseModel):
                title: str
    
            @app.get("/items/")
            def read_items(q: Dict[str, Item] = Query(default=None)):
                pass  # pragma: no cover
    
    
    def test_invalid_simple_dict():
        with pytest.raises(AssertionError):
            app = FastAPI()
    
            class Item(BaseModel):
                title: str
    
            @app.get("/items/")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  10. fastapi/dependencies/utils.py

            check_file_field(first_param)
            return first_param
        # If one field requires to embed, all have to be embedded
        # in case a sub-dependency is evaluated with a single unique body field
        # That is combined (embedded) with other body fields
        for param in flat_dependant.body_params:
            setattr(param.field_info, "embed", True)  # noqa: B010
        model_name = "Body_" + name
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
Back to top