Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 79 for Sall (0.16 sec)

  1. docs/sts/client_grants/__init__.py

                return None
    
        def _create_credentials_fetcher(self):
            method = self.METHOD
    
            def fetch_credentials():
                # HTTP headers are case insensitive filter out
                # all duplicate headers and pick one.
                headers = {}
                headers['content-type'] = 'application/x-www-form-urlencoded'
                headers['authorization'] = urllib3.make_headers(
    Python
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 4.6K bytes
    - Viewed (1)
  2. tests/test_tutorial/test_path_params/test_tutorial005.py

    
    def test_get_enums_lenet():
        response = client.get("/models/lenet")
        assert response.status_code == 200
        assert response.json() == {"model_name": "lenet", "message": "LeCNN all the images"}
    
    
    def test_get_enums_resnet():
        response = client.get("/models/resnet")
        assert response.status_code == 200
        assert response.json() == {"model_name": "resnet", "message": "Have some residuals"}
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 5K bytes
    - Viewed (0)
  3. .github/actions/people/app/main.py

                    authors[review.author.login] = review.author
                    pr_reviewers.add(review.author.login)
                    for label in pr.labels.nodes:
                        if label.name == "lang-all":
                            translation_reviewers[review.author.login] += 1
                            break
            for reviewer in pr_reviewers:
                reviewers[reviewer] += 1
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 17:38:21 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  4. tests/test_schema_extra_examples.py

                    example="cookie_overridden",
                    examples=["cookie1", "cookie2"],
                ),
            ):
                return data
    
        return app
    
    
    def test_call_api():
        app = create_app()
        client = TestClient(app)
        response = client.post("/schema_extra/", json={"data": "Foo"})
        assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 37.7K bytes
    - Viewed (0)
  5. fastapi/dependencies/utils.py

            return True
        dunder_call = getattr(call, "__call__", None)  # noqa: B004
        return inspect.isasyncgenfunction(dunder_call)
    
    
    def is_gen_callable(call: Callable[..., Any]) -> bool:
        if inspect.isgeneratorfunction(call):
            return True
        dunder_call = getattr(call, "__call__", None)  # noqa: B004
        return inspect.isgeneratorfunction(dunder_call)
    
    
    async def solve_generator(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  6. fastapi/openapi/utils.py

                if security_definitions:
                    security_schemes.update(security_definitions)
                all_route_params = get_flat_params(route.dependant)
                operation_parameters = get_openapi_operation_parameters(
                    all_route_params=all_route_params,
                    schema_generator=schema_generator,
                    model_name_map=model_name_map,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 21.8K bytes
    - Viewed (0)
  7. fastapi/security/api_key.py

                name=name,
                description=description,
            )
            self.scheme_name = scheme_name or self.__class__.__name__
            self.auto_error = auto_error
    
        async def __call__(self, request: Request) -> Optional[str]:
            api_key = request.query_params.get(self.model.name)
            if not api_key:
                if self.auto_error:
                    raise HTTPException(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 23 22:29:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  8. scripts/docs.py

        if lang == "en":
            dist_path = site_path
            # Don't remove en dist_path as it might already contain other languages.
            # When running build_all(), that function already removes site_path.
            # All this is only relevant locally, on GitHub Actions all this is done through
            # artifacts and multiple workflows, so it doesn't matter if directories are
            # removed or not.
        else:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  9. docs_src/path_params/tutorial005.py

        if model_name is ModelName.alexnet:
            return {"model_name": model_name, "message": "Deep Learning FTW!"}
    
        if model_name.value == "lenet":
            return {"model_name": model_name, "message": "LeCNN all the images"}
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Aug 26 13:26:03 GMT 2022
    - 546 bytes
    - Viewed (0)
  10. docs_src/extra_models/tutorial003_py310.py

        type: str
    
    
    class CarItem(BaseItem):
        type: str = "car"
    
    
    class PlaneItem(BaseItem):
        type: str = "plane"
        size: int
    
    
    items = {
        "item1": {"description": "All my friends drive a low rider", "type": "car"},
        "item2": {
            "description": "Music is my aeroplane, it's my aeroplane",
            "type": "plane",
            "size": 5,
        },
    }
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 644 bytes
    - Viewed (0)
Back to top