Search Options

Results per page
Sort
Preferred Languages
Advance

Results 801 - 810 of 1,080 for Str (0.03 sec)

  1. docs/em/docs/tutorial/body-multiple-params.md

    ## ๐Ÿ’— ๐Ÿ’ช = & ๐Ÿ”ข
    
    โ†—๏ธ, ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“ฃ ๐ŸŒ– ๐Ÿ”ข ๐Ÿ”ข ๐Ÿ•โ” ๐Ÿ‘† ๐Ÿ’ช, ๐ŸŒ– ๐Ÿ™† ๐Ÿ’ช ๐Ÿ”ข.
    
    , ๐Ÿ”ข, โญ ๐Ÿ’ฒ ๐Ÿ”ฌ ๐Ÿ”ข ๐Ÿ”ข, ๐Ÿ‘† ๐Ÿšซ โœ”๏ธ ๐ŸŽฏ ๐Ÿšฎ `Query`, ๐Ÿ‘† ๐Ÿ’ช:
    
    ```Python
    q: Union[str, None] = None
    ```
    
    โš–๏ธ ๐Ÿ 3๏ธโƒฃ.1๏ธโƒฃ0๏ธโƒฃ & ๐Ÿ”›:
    
    ```Python
    q: str | None = None
    ```
    
    ๐Ÿ–ผ:
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ & ๐Ÿ”›
    
    ```Python hl_lines="27"
    {!> ../../docs_src/body_multiple_params/tutorial004.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. docs/ko/docs/tutorial/path-operation-configuration.md

    /// note | "๊ธฐ์ˆ ์  ์„ธ๋ถ€์‚ฌํ•ญ"
    
    ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ž„ํฌํŠธํ•˜์…”๋„ ์ข‹์Šต๋‹ˆ๋‹ค. `from starlette import status`.
    
    **FastAPI**๋Š” ๊ฐœ๋ฐœ์ž ์—ฌ๋Ÿฌ๋ถ„์˜ ํŽธ์˜๋ฅผ ์œ„ํ•ด์„œ `starlette.status`์™€ ๋™์ผํ•œ `fastapi.status`๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ Starlette์—์„œ ์ง์ ‘ ์˜จ ๊ฒƒ์ž…๋‹ˆ๋‹ค.
    
    ///
    
    ## ํƒœ๊ทธ
    
    (๋ณดํ†ต ๋‹จ์ผ `str`์ธ) `str`๋กœ ๊ตฌ์„ฑ๋œ `list`์™€ ํ•จ๊ป˜ ๋งค๊ฐœ๋ณ€์ˆ˜ `tags`๋ฅผ ์ „๋‹ฌํ•˜์—ฌ, `๊ฒฝ๋กœ ์ž‘๋™`์— ํƒœ๊ทธ๋ฅผ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:
    
    ```Python hl_lines="17  22  27"
    {!../../docs_src/path_operation_configuration/tutorial002.py!}
    ```
    
    ์ „๋‹ฌ๋œ ํƒœ๊ทธ๋“ค์€ OpenAPI์˜ ์Šคํ‚ค๋งˆ์— ์ถ”๊ฐ€๋˜๋ฉฐ, ์ž๋™ ๋ฌธ์„œ ์ธํ„ฐํŽ˜์ด์Šค์—์„œ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. tests/test_computed_fields.py

            return Rectangle(width=3, length=4)
    
        client = TestClient(app)
        return client
    
    
    @pytest.mark.parametrize("path", ["/", "/responses"])
    @needs_pydanticv2
    def test_get(client: TestClient, path: str):
        response = client.get(path)
        assert response.status_code == 200, response.text
        assert response.json() == {"width": 3, "length": 4, "area": 12}
    
    
    @needs_pydanticv2
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/LittleEndianDataOutputStream.java

      @Override
      public void writeShort(int v) throws IOException {
        out.write(0xFF & v);
        out.write(0xFF & (v >> 8));
      }
    
      @Override
      public void writeUTF(String str) throws IOException {
        ((DataOutputStream) out).writeUTF(str);
      }
    
      // Overriding close() because FilterOutputStream's close() method pre-JDK8 has bad behavior:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 12:34:49 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/body-updates.md

    โ„น ๐Ÿฌ ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT" class="external-link" target="_blank">๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” `PUT`</a> ๐Ÿ› ๏ธ.
    
    ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ `jsonable_encoder` ๐Ÿ—œ ๐Ÿ”ข ๐Ÿ’ฝ ๐Ÿ“Š ๐Ÿ‘ˆ ๐Ÿ’ช ๐Ÿช ๐ŸŽป (โœ… โฎ๏ธ โ˜ ๐Ÿ’ฝ). ๐Ÿ–ผ, ๐Ÿญ `datetime` `str`.
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ &amp; ๐Ÿ”›
    
    ```Python hl_lines="30-35"
    {!> ../../docs_src/body_updates/tutorial001.py!}
    ```
    
    ////
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.9๏ธโƒฃ &amp; ๐Ÿ”›
    
    ```Python hl_lines="30-35"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. docs_src/python_types/tutorial009c.py

    from typing import Optional
    
    
    def say_hi(name: Optional[str]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 89 bytes
    - Viewed (0)
  7. tests/test_serialize_response.py

    from typing import List, Optional
    
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: Optional[float] = None
        owner_ids: Optional[List[int]] = None
    
    
    @app.get("/items/valid", response_model=Item)
    def get_valid():
        return {"name": "valid", "price": 1.0}
    
    
    @app.get("/items/coerce", response_model=Item)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 03 12:29:07 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  8. docs/em/docs/index.md

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    
    
    @app.put("/items/{item_id}")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. docs/em/docs/features.md

    ๐Ÿ‘† โœ ๐Ÿฉ ๐Ÿ โฎ๏ธ ๐Ÿ†Ž:
    
    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # Declare a variable as a str
    # and get editor support inside the function
    def main(user_id: str):
        return user_id
    
    
    # A Pydantic model
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    ๐Ÿ‘ˆ ๐Ÿ’ช โคด๏ธ โš™๏ธ ๐Ÿ’–:
    
    ```Python
    my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. docs_src/python_types/tutorial008_py39.py

    def process_items(prices: dict[str, float]):
        for item_name, item_price in prices.items():
            print(item_name)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jan 16 14:44:08 UTC 2022
    - 145 bytes
    - Viewed (0)
Back to top