Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for Less (0.16 sec)

  1. docs/en/docs/tutorial/path-params-numeric-validations.md

        ```
    
    ## Number validations: floats, greater than and less than
    
    Number validations also work for `float` values.
    
    Here's where it becomes important to be able to declare <abbr title="greater than"><code>gt</code></abbr> and not just <abbr title="greater than or equal"><code>ge</code></abbr>. As with it you can require, for example, that a value must be greater than `0`, even if it is less than `1`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  2. fastapi/param_functions.py

        lt: Annotated[
            Optional[float],
            Doc(
                """
                Less than. If set, value must be less than this. Only applicable to numbers.
                """
            ),
        ] = None,
        le: Annotated[
            Optional[float],
            Doc(
                """
                Less than or equal. If set, value must be less than or equal to this.
                Only applicable to numbers.
                """
            ),
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 62.5K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/testing-database.md

    # Testing a Database
    
    !!! info
        These docs are about to be updated. 🎉
    
        The current version assumes Pydantic v1, and SQLAlchemy versions less than 2.0.
    
        The new docs will include Pydantic v2 and will use <a href="https://sqlmodel.tiangolo.com/" class="external-link" target="_blank">SQLModel</a> (which is also based on SQLAlchemy) once it is updated to use Pydantic v2 as well.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  4. docs/en/docs/how-to/index.md

    # How To - Recipes
    
    Here you will see different recipes or "how to" guides for **several topics**.
    
    Most of these ideas would be more or less **independent**, and in most cases you should only need to study them if they apply directly to **your project**.
    
    If something seems interesting and useful to your project, go ahead and check it, but otherwise, you might probably just skip them.
    
    !!! tip
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 591 bytes
    - Viewed (0)
  5. docs/en/docs/how-to/async-sql-encode-databases.md

    So we create a new `dict`, that contains the key-value pairs from `note.dict()` with:
    
    ```Python
    {**note.dict()}
    ```
    
    `**note.dict()` "unpacks" the key value pairs directly, so, `{**note.dict()}` would be, more or less, a copy of `note.dict()`.
    
    And then, we extend that copy `dict`, adding another key-value pair: `"id": last_record_id`:
    
    ```Python
    {**note.dict(), "id": last_record_id}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  6. docs/en/docs/benchmarks.md

    * **Uvicorn**:
        * Will have the best performance, as it doesn't have much extra code apart from the server itself.
        * You wouldn't write an application in Uvicorn directly. That would mean that your code would have to include more or less, at least, all the code provided by Starlette (or **FastAPI**). And if you did that, your final application would have the same overhead as having used a framework and minimizing your app code and bugs.
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    Now the client will get the same *HTTP 500 Internal Server Error* response, but the server will have our custom `InternalError` in the logs. 😎
    
    ## Execution of dependencies with `yield`
    
    The sequence of execution is more or less like this diagram. Time flows from top to bottom. And each column is one of the parts interacting or executing code.
    
    ```mermaid
    sequenceDiagram
    
    participant client as Client
    participant handler as Exception handler
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/path-params-numeric-validations.md

    Und Sie können auch Validierungen für Zahlen deklarieren:
    
    * `gt`: `g`reater `t`han – größer als
    * `ge`: `g`reater than or `e`qual – größer oder gleich
    * `lt`: `l`ess `t`han – kleiner als
    * `le`: `l`ess than or `e`qual – kleiner oder gleich
    
    !!! info
        `Query`, `Path`, und andere Klassen, die Sie später kennenlernen, sind Unterklassen einer allgemeinen `Param`-Klasse.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 17:59:29 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  9. docs/en/docs/fastapi-people.md

    {% endfor %}
    {% endif %}
    
    ## About the data - technical details
    
    The main intention of this page is to highlight the effort of the community to help others.
    
    Especially including efforts that are normally less visible, and in many cases more arduous, like helping others with questions and reviewing Pull Requests with translations.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 16 23:54:24 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/security/first-steps.md

        * Normally, a token is set to expire after some time.
            * So, the user will have to log in again at some point later.
            * And if the token is stolen, the risk is less. It is not like a permanent key that will work forever (in most of the cases).
    * The frontend stores that token temporarily somewhere.
    * The user clicks in the frontend to go to another section of the frontend web app.
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 8.9K bytes
    - Viewed (0)
Back to top