Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for unsafe (0.19 sec)

  1. fastapi/security/http.py

                else:
                    return None
            return HTTPAuthorizationCredentials(scheme=scheme, credentials=credentials)
    
    
    class HTTPBasic(HTTPBase):
        """
        HTTP Basic authentication.
    
        ## Usage
    
        Create an instance object and use that object as the dependency in `Depends()`.
    
        The dependency result will be an `HTTPBasicCredentials` object containing the
        `username` and the `password`.
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Apr 19 15:29:38 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  2. docs_src/path_operation_advanced_configuration/tutorial007.py

                "required": True,
            },
        },
    )
    async def create_item(request: Request):
        raw_body = await request.body()
        try:
            data = yaml.safe_load(raw_body)
        except yaml.YAMLError:
            raise HTTPException(status_code=422, detail="Invalid YAML")
        try:
            item = Item.model_validate(data)
        except ValidationError as e:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 822 bytes
    - Viewed (0)
  3. ci/official/containers/linux_arm64/devel.usertools/squash_testlogs.py

    # limitations under the License.
    # ==============================================================================
    """Merge all JUnit test.xml files in one directory into one.
    
    Usage: squash_testlogs.py START_DIRECTORY OUTPUT_FILE
    
    Example: squash_testlogs.py /tf/pkg/testlogs /tf/pkg/merged.xml
    
    Recursively find all the JUnit test.xml files in one directory, and merge any
    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)
  4. fastapi/openapi/docs.py

                        oauth2.errCb({
                            authId: oauth2.auth.name,
                            source: "auth",
                            level: "warning",
                            message: "Authorization may be unsafe, passed state was changed in server. The passed state wasn't returned from auth server."
                        });
                    }
    
                    if (qp.code) {
                        delete oauth2.state;
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  5. docs_src/path_operation_advanced_configuration/tutorial007_pv1.py

                "required": True,
            },
        },
    )
    async def create_item(request: Request):
        raw_body = await request.body()
        try:
            data = yaml.safe_load(raw_body)
        except yaml.YAMLError:
            raise HTTPException(status_code=422, detail="Invalid YAML")
        try:
            item = Item.parse_obj(data)
        except ValidationError as e:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 789 bytes
    - Viewed (0)
  6. fastapi/security/api_key.py

        the key value sent in the query parameter automatically and provides it as the
        dependency result. But it doesn't define how to send that API key to the client.
    
        ## Usage
    
        Create an instance object and use that object as the dependency in `Depends()`.
    
        The dependency result will be a string containing the key value.
    
        ## Example
    
        ```python
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 23 22:29:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  7. tests/test_jsonable_encoder.py

        }
    
    
    @needs_pydanticv1
    def test_custom_encoders():
        class safe_datetime(datetime):
            pass
    
        class MyModel(BaseModel):
            dt_field: safe_datetime
    
        instance = MyModel(dt_field=safe_datetime.now())
    
        encoded_instance = jsonable_encoder(
            instance, custom_encoder={safe_datetime: lambda o: o.isoformat()}
        )
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  8. fastapi/applications.py

                    Read more about the available configuration options in the
                    [Swagger UI docs](https://swagger.io/docs/open-source-tools/swagger-ui/usage/oauth2/).
                    """
                ),
            ] = None,
            middleware: Annotated[
                Optional[Sequence[Middleware]],
                Doc(
                    """
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  9. fastapi/encoders.py

                        sqlalchemy_safe=sqlalchemy_safe,
                    )
                    encoded_value = jsonable_encoder(
                        value,
                        by_alias=by_alias,
                        exclude_unset=exclude_unset,
                        exclude_none=exclude_none,
                        custom_encoder=custom_encoder,
                        sqlalchemy_safe=sqlalchemy_safe,
                    )
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  10. bin/diff_yaml.py

    def normalize(rl, args):
        for i in range(len(rl)):
            rl[i] = normalize_res(rl[i], args)
    
        return rl
    
    
    def compare(args):
        j0 = normalize(list(yaml.safe_load_all(open(args.orig))), args)
        j1 = normalize(list(yaml.safe_load_all(open(args.new))), args)
    
        q0 = {by_resource_name(res): res for res in j0 if res is not None}
        q1 = {by_resource_name(res): res for res in j1 if res is not None}
    
    Python
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Mar 03 16:14:57 GMT 2021
    - 4.5K bytes
    - Viewed (0)
Back to top