Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for __name__ (0.04 sec)

  1. fastapi/security/http.py

            auto_error: bool = True,
        ):
            self.model: HTTPBaseModel = HTTPBaseModel(
                scheme=scheme, description=description
            )
            self.scheme_name = scheme_name or self.__class__.__name__
            self.auto_error = auto_error
    
        def make_authenticate_headers(self) -> dict[str, str]:
            return {"WWW-Authenticate": f"{self.model.scheme.title()}"}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  2. fastapi/_compat/v2.py

            ModelField(
                field_info=FieldInfo(annotation=model),
                name=model.__name__,
                mode="validation",
            )
            for model in flat_validation_models
        ]
        flat_serialization_model_fields = [
            ModelField(
                field_info=FieldInfo(annotation=model),
                name=model.__name__,
                mode="serialization",
            )
            for model in flat_serialization_models
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_security/test_tutorial004.py

            "full_name": "Alice Wonderson",
            "email": "******@****.***",
            "hashed_password": mod.get_password_hash("secretalice"),
            "disabled": True,
        }
        with patch.dict(f"{mod.__name__}.fake_users_db", {"alice": alice_user_data}):
            access_token = get_access_token(
                username="alice", password="secretalice", client=client
            )
            response = client.get(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  4. fastapi/dependencies/utils.py

                    and param_details.depends.scope == "function"
                ):
                    assert dependant.call
                    raise DependencyScopeError(
                        f'The dependency "{dependant.call.__name__}" has a scope of '
                        '"request", it cannot depend on dependencies with scope "function".'
                    )
                sub_own_oauth_scopes: list[str] = []
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
  5. fastapi/params.py

            use_kwargs = {k: v for k, v in kwargs.items() if v is not _Unset}
    
            super().__init__(**use_kwargs)
    
        def __repr__(self) -> str:
            return f"{self.__class__.__name__}({self.default})"
    
    
    class Path(Param):  # type: ignore[misc]
        in_ = ParamTypes.path
    
        def __init__(
            self,
            default: Any = ...,
            *,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  6. scripts/people.py

        logging.info("Creating PR")
        pr = repo.create_pull(title=message, body=message, base="master", head=branch_name)
        logging.info(f"Created PR: {pr.number}")
        logging.info("Finished")
    
    
    if __name__ == "__main__":
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. scripts/notify_translations.py

            else:
                logging.info(
                    f"There doesn't seem to be anything to be done about PR #{pr.number}"
                )
        logging.info("Finished")
    
    
    if __name__ == "__main__":
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  8. fastapi/openapi/utils.py

        operation_id = route.operation_id or route.unique_id
        if operation_id in operation_ids:
            message = (
                f"Duplicate Operation ID {operation_id} for function "
                + f"{route.endpoint.__name__}"
            )
            file_name = getattr(route.endpoint, "__globals__", {}).get("__file__")
            if file_name:
                message += f" at {file_name}"
            warnings.warn(message, stacklevel=1)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  9. scripts/docs.py

        """
        Add or update header permalinks in all pages of En docs.
        """
        for md_file in en_docs_path.rglob("*.md"):
            add_permalinks_page(md_file, update_existing=update_existing)
    
    
    if __name__ == "__main__":
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 21 17:40:17 UTC 2025
    - 16.9K bytes
    - Viewed (0)
  10. fastapi/security/oauth2.py

                ),
            ] = True,
        ):
            self.model = OAuth2Model(
                flows=cast(OAuthFlowsModel, flows), description=description
            )
            self.scheme_name = scheme_name or self.__class__.__name__
            self.auto_error = auto_error
    
        def make_not_authenticated_error(self) -> HTTPException:
            """
            The OAuth 2 specification doesn't define the challenge that should be used,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 22K bytes
    - Viewed (0)
Back to top