Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 37 for Slough (0.2 sec)

  1. docs_src/security/tutorial005_py310.py

        for scope in security_scopes.scopes:
            if scope not in token_data.scopes:
                raise HTTPException(
                    status_code=status.HTTP_401_UNAUTHORIZED,
                    detail="Not enough permissions",
                    headers={"WWW-Authenticate": authenticate_value},
                )
        return user
    
    
    async def get_current_active_user(
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  2. docs_src/security/tutorial005_an_py310.py

        for scope in security_scopes.scopes:
            if scope not in token_data.scopes:
                raise HTTPException(
                    status_code=status.HTTP_401_UNAUTHORIZED,
                    detail="Not enough permissions",
                    headers={"WWW-Authenticate": authenticate_value},
                )
        return user
    
    
    async def get_current_active_user(
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/dependencies/sub-dependencies.md

            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="13"
        {!> ../../../docs_src/dependencies/tutorial005.py!}
        ```
    
    Let's focus on the parameters declared:
    
    * Even though this function is a dependency ("dependable") itself, it also declares another dependency (it "depends" on something else).
        * It depends on the `query_extractor`, and assigns the value returned by it to the parameter `q`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/query-params.md

        {!> ../../../docs_src/query_params/tutorial002.py!}
        ```
    
    In this case, the function parameter `q` will be optional, and will be `None` by default.
    
    !!! check
        Also notice that **FastAPI** is smart enough to notice that the path parameter `item_id` is a path parameter and `q` is not, so, it's a query parameter.
    
    ## Query parameter type conversion
    
    You can also declare `bool` types, and they will be converted:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Oct 20 09:08:42 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/body-nested-models.md

        ```
    
    !!! tip
        Keep in mind that JSON only supports `str` as keys.
    
        But Pydantic has automatic data conversion.
    
        This means that, even though your API clients can only send strings as keys, as long as those strings contain pure integers, Pydantic will convert them and validate them.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/query-params-str-validations.md

        The `Union` in `Union[str, None]` will allow your editor to give you better support and detect errors.
    
    ## Additional validation
    
    We are going to enforce that even though `q` is optional, whenever it is provided, **its length doesn't exceed 50 characters**.
    
    ### Import `Query` and `Annotated`
    
    To achieve that, first import:
    
    * `Query` from `fastapi`
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 25.7K bytes
    - Viewed (0)
  7. docs/en/docs/help-fastapi.md

    ### Reproduce the problem
    
    For most of the cases and most of the questions there's something related to the person's **original code**.
    
    In many cases they will only copy a fragment of the code, but that's not enough to **reproduce the problem**.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/index.md

    # Advanced User Guide
    
    ## Additional Features
    
    The main [Tutorial - User Guide](../tutorial/index.md){.internal-link target=_blank} should be enough to give you a tour through all the main features of **FastAPI**.
    
    In the next sections you will see other options, configurations, and additional features.
    
    !!! tip
        The next sections are **not necessarily "advanced"**.
    
        And it's possible that for your use case, the solution is in one of them.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_additional_responses/test_tutorial004.py

                        "responses": {
                            "404": {"description": "Item not found"},
                            "302": {"description": "The item was moved"},
                            "403": {"description": "Not enough privileges"},
                            "200": {
                                "description": "Successful Response",
                                "content": {
                                    "image/png": {},
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  10. docs/en/docs/async.md

    <img src="/img/async/concurrent-burgers/concurrent-burgers-02.png" class="illustration">
    
    The cashier says something to the cook in the kitchen so they know they have to prepare your burgers (even though they are currently preparing the ones for the previous clients).
    
    <img src="/img/async/concurrent-burgers/concurrent-burgers-03.png" class="illustration">
    
    You pay. 💸
    
    The cashier gives you the number of your turn.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
Back to top