Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for Newson (0.17 sec)

  1. tests/test_ws_router.py

        myapp = make_app(middleware=[Middleware(errorhandler)])
        client = TestClient(myapp)
        with pytest.raises(WebSocketDisconnect) as e:
            with client.websocket_connect("/depends-err/"):
                pass  # pragma: no cover
        assert e.value.code == status.WS_1006_ABNORMAL_CLOSURE
        assert "NotImplementedError" in e.value.reason
    
    
    def test_depend_err_handler():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 19:08:14 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  2. LICENSE

    The MIT License (MIT)
    
    Copyright (c) 2018 Sebastián Ramírez
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Dec 08 07:57:18 GMT 2018
    - 1.1K bytes
    - Viewed (0)
  3. docs/en/docs/python-types.md

    <img src="/img/python-types/image06.png">
    
    Notice that this means "`one_person` is an **instance** of the class `Person`".
    
    It doesn't mean "`one_person` is the **class** called `Person`".
    
    ## Pydantic models
    
    <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> is a Python library to perform data validation.
    
    You declare the "shape" of the data as classes with attributes.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/metadata.md

    | `license_info`...
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. docs/en/docs/deployment/concepts.md

    ## Running on Startup
    
    In most cases, when you create a web API, you want it to be **always running**, uninterrupted, so that your clients can always access it. This is of course, unless you have a specific reason why you want it to run only in certain situations, but most of the time you want it constantly running and **available**.
    
    ### In a Remote Server
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18K bytes
    - Viewed (0)
  6. tests/utils.py

    from fastapi._compat import PYDANTIC_V2
    
    needs_py39 = pytest.mark.skipif(sys.version_info < (3, 9), reason="requires python3.9+")
    needs_py310 = pytest.mark.skipif(
        sys.version_info < (3, 10), reason="requires python3.10+"
    )
    needs_pydanticv2 = pytest.mark.skipif(not PYDANTIC_V2, reason="requires Pydantic v2")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 422 bytes
    - Viewed (0)
  7. tests/test_jsonable_encoder.py

    from .utils import needs_pydanticv1, needs_pydanticv2
    
    
    class Person:
        def __init__(self, name: str):
            self.name = name
    
    
    class Pet:
        def __init__(self, owner: Person, name: str):
            self.owner = owner
            self.name = name
    
    
    @dataclass
    class Item:
        name: str
        count: int
    
    
    class DictablePerson(Person):
        def __iter__(self):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  8. docs/de/docs/python-types.md

    <img src="/img/python-types/image06.png">
    
    Beachten Sie, das bedeutet: „`one_person` ist eine **Instanz** der Klasse `Person`“.
    
    Es bedeutet nicht: „`one_person` ist die **Klasse** genannt `Person`“.
    
    ## Pydantic Modelle
    
    <a href="https://pydantic-docs.helpmanual.io/" class="external-link" target="_blank">Pydantic</a> ist eine Python-Bibliothek für die Validierung von Daten.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:29:25 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  9. fastapi/exception_handlers.py

        )
    
    
    async def websocket_request_validation_exception_handler(
        websocket: WebSocket, exc: WebSocketRequestValidationError
    ) -> None:
        await websocket.close(
            code=WS_1008_POLICY_VIOLATION, reason=jsonable_encoder(exc.errors())
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 19:08:14 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  10. docs/bn/docs/python-types.md

    <img src="/img/python-types/image06.png">
    
    লক্ষ্য করুন যে এর মানে হল "`one_person` হল ক্লাস `Person`-এর একটি **ইন্সট্যান্স**।"
    
    এর মানে এটি নয় যে "`one_person` হল **ক্লাস** যাকে বলা হয় `Person`।"
    
    ## Pydantic মডেল
    
    [Pydantic](https://docs.pydantic.dev/) হল একটি Python লাইব্রেরি যা ডাটা ভ্যালিডেশন সম্পাদন করে।
    
    আপনি ডাটার "আকার" এট্রিবিউট সহ ক্লাস হিসেবে ঘোষণা করেন।
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Apr 03 15:34:37 GMT 2024
    - 36K bytes
    - Viewed (0)
Back to top