Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Krause (0.18 sec)

  1. fastapi/security/http.py

            try:
                data = b64decode(param).decode("ascii")
            except (ValueError, UnicodeDecodeError, binascii.Error):
                raise invalid_user_credentials_exc  # noqa: B904
            username, separator, password = data.partition(":")
            if not separator:
                raise invalid_user_credentials_exc
            return HTTPBasicCredentials(username=username, password=password)
    
    
    class HTTPBearer(HTTPBase):
        """
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Apr 19 15:29:38 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  2. tests/test_dependency_contextmanager.py

    
    def test_async_raise_other():
        assert state["/async_raise"] == "asyncgen raise not started"
        with pytest.raises(OtherDependencyError):
            client.get("/async_raise_other")
        assert state["/async_raise"] == "asyncgen raise finalized"
        assert "/async_raise" not in errors
    
    
    def test_sync_raise_other():
        assert state["/sync_raise"] == "generator raise not started"
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  3. fastapi/security/oauth2.py

        async def __call__(self, request: Request) -> Optional[str]:
            authorization = request.headers.get("Authorization")
            if not authorization:
                if self.auto_error:
                    raise HTTPException(
                        status_code=HTTP_403_FORBIDDEN, detail="Not authenticated"
                    )
                else:
                    return None
            return authorization
    
    
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  4. fastapi/encoders.py

        except Exception as e:
            errors: List[Exception] = []
            errors.append(e)
            try:
                data = vars(obj)
            except Exception as e:
                errors.append(e)
                raise ValueError(errors) from e
        return jsonable_encoder(
            data,
            include=include,
            exclude=exclude,
            by_alias=by_alias,
            exclude_unset=exclude_unset,
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  5. ci/official/utilities/extract_resultstore_links.py

                          help='Prints out lines helpful for debugging.')
      parsed_args = parser.parse_args()
      if not parsed_args.print and not parsed_args.xml_out_path:
        raise TypeError('`--print` or `--xml-out-path` must be specified')
    
      return parsed_args
    
    
    def parse_log(file_path: str,
                  verbose: bool = False) -> ResultDictType:
    Python
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Nov 08 17:50:27 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  6. .github/actions/notify-translations/app/main.py

            )
            logging.error(response.text)
            raise RuntimeError(response.text)
        data = response.json()
        if "errors" in data:
            logging.error(f"Errors in response, after: {after}, category_id: {category_id}")
            logging.error(response.text)
            raise RuntimeError(response.text)
        return cast(Dict[str, Any], data)
    
    
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Wed Sep 27 23:01:46 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  7. .github/actions/people/app/main.py

            )
            logging.error(response.text)
            raise RuntimeError(response.text)
        data = response.json()
        if "errors" in data:
            logging.error(f"Errors in response, after: {after}, category_id: {category_id}")
            logging.error(data["errors"])
            logging.error(response.text)
            raise RuntimeError(response.text)
        return data
    
    
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 17:38:21 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  8. scripts/docs.py

        sponsors = mkdocs.utils.yaml_load(sponsors_data_path.read_text(encoding="utf-8"))
        if not (match_start and match_end):
            raise RuntimeError("Couldn't auto-generate sponsors section")
        if not match_pre:
            raise RuntimeError("Couldn't find pre section (<style>) in index.md")
        frontmatter_end = match_pre.end()
        pre_end = match_start.end()
        post_start = match_end.start()
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  9. fastapi/dependencies/utils.py

                except ImportError:
                    logger.error(multipart_incorrect_install_error)
                    raise RuntimeError(multipart_incorrect_install_error) from None
            except ImportError:
                logger.error(multipart_not_installed_error)
                raise RuntimeError(multipart_not_installed_error) from None
    
    
    def get_param_sub_dependant(
        *,
        param_name: str,
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
Back to top