Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 506 for Dict (0.03 sec)

  1. docs_src/dependencies/tutorial001_02_an.py

    1. app = FastAPI()
    2.  
    3.  
    4. async def common_parameters(
    5. q: Union[str, None] = None, skip: int = 0, limit: int = 100
    6. ):
    7. return {"q": q, "skip": skip, "limit": limit}
    8.  
    9.  
    10. CommonsDep = Annotated[dict, Depends(common_parameters)]
    11.  
    12.  
    13. @app.get("/items/")
    14. async def read_items(commons: CommonsDep):
    15. return commons
    16.  
    17.  
    18. @app.get("/users/")
    19. async def read_users(commons: CommonsDep):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 495 bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/it/admin/dict/DictCrudTestBase.java

    1. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
    2. * either express or implied. See the License for the specific language
    3. * governing permissions and limitations under the License.
    4. */
    5. package org.codelibs.fess.it.admin.dict;
    6.  
    7. import static org.junit.jupiter.api.Assertions.assertEquals;
    8. import static org.junit.jupiter.api.Assertions.assertTrue;
    9. import static org.junit.jupiter.api.Assertions.fail;
    10.  
    11. import java.util.ArrayList;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. docs_src/extra_models/tutorial002.py

    1. def fake_password_hasher(raw_password: str):
    2. return "supersecret" + raw_password
    3.  
    4.  
    5. def fake_save_user(user_in: UserIn):
    6. hashed_password = fake_password_hasher(user_in.password)
    7. user_in_db = UserInDB(**user_in.dict(), hashed_password=hashed_password)
    8. print("User saved! ..not really")
    9. return user_in_db
    10.  
    11.  
    12. @app.post("/user/", response_model=UserOut)
    13. async def create_user(user_in: UserIn):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 824 bytes
    - Viewed (0)
  4. src/main/webapp/WEB-INF/view/common/admin/sidebar.jsp

    1. <p><la:message key="labels.menu_design" /></p>
    2. </a></li></c:if>
    3. <c:if test="${fe:permission('admin-dict-view') and fesenType!='cloud' and fesenType!='aws'}">
    4. <li class="nav-item">
    5. <a href="${fe:url('/admin/dict/')}" class="nav-link <c:if test="${param.menuType=='dict'}">active</c:if>">
    6. <em class='fa fa-genderless nav-icon'>
    7. <p><la:message key="labels.menu_dict" /></p>
    8. </a>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Apr 15 20:55:28 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  5. fastapi/openapi/docs.py

    1. import json
    2. from typing import Any, Dict, Optional
    3.  
    4. from fastapi.encoders import jsonable_encoder
    5. from starlette.responses import HTMLResponse
    6. from typing_extensions import Annotated, Doc
    7.  
    8. swagger_ui_default_parameters: Annotated[
    9. Dict[str, Any],
    10. Doc(
    11. """
    12. Default configurations for Swagger UI.
    13.  
    14. You can use it as a template to add any other configurations needed.
    15. """
    16. ),
    17. ] = {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu May 23 22:59:02 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/dependencies/classes-as-dependencies.md

    1. # Classes como Dependências
    2.  
    3. Antes de nos aprofundarmos no sistema de **Injeção de Dependência**, vamos melhorar o exemplo anterior.
    4.  
    5. ## `dict` do exemplo anterior
    6.  
    7. No exemplo anterior, nós retornávamos um `dict` da nossa dependência ("injetável"):
    8.  
    9. //// tab | Python 3.10+
    10.  
    11. ```Python hl_lines="9"
    12. {!> ../../docs_src/dependencies/tutorial001_an_py310.py!}
    13. ```
    14.  
    15. ////
    16.  
    17. //// tab | Python 3.9+
    18.  
    19. ```Python hl_lines="11"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    1. # Classes as Dependencies
    2.  
    3. Before diving deeper into the **Dependency Injection** system, let's upgrade the previous example.
    4.  
    5. ## A `dict` from the previous example
    6.  
    7. In the previous example, we were returning a `dict` from our dependency ("dependable"):
    8.  
    9. //// tab | Python 3.10+
    10.  
    11. ```Python hl_lines="9"
    12. {!> ../../docs_src/dependencies/tutorial001_an_py310.py!}
    13. ```
    14.  
    15. ////
    16.  
    17. //// tab | Python 3.9+
    18.  
    19. ```Python hl_lines="11"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/testing.md

    1. ⤴️ 👆 🎏 👆 💯.
    2.  
    3. 🤶 Ⓜ.:
    4.  
    5. * 🚶‍♀️ *➡* ⚖️ *🔢* 🔢, 🚮 ⚫️ 📛 ⚫️.
    6. * 🚶‍♀️ 🎻 💪, 🚶‍♀️ 🐍 🎚 (✅ `dict`) 🔢 `json`.
    7. * 🚥 👆 💪 📨 *📨 💽* ↩️ 🎻, ⚙️ `data` 🔢 ↩️.
    8. * 🚶‍♀️ *🎚*, ⚙️ `dict` `headers` 🔢.
    9. * *🍪*, `dict` `cookies` 🔢.
    10.  
    11. 🌖 🔃 🚶‍♀️ 💽 👩‍💻 (⚙️ `httpx` ⚖️ `TestClient`) <a href="https://www.python-httpx.org" class="external-link" target="_blank">🇸🇲 🧾</a>.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/dict/ListForm.java

    1. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
    2. * either express or implied. See the License for the specific language
    3. * governing permissions and limitations under the License.
    4. */
    5. package org.codelibs.fess.app.web.admin.dict;
    6.  
    7. /**
    8. * @author Keiichi Watanabe
    9. */
    10. public class ListForm {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 731 bytes
    - Viewed (0)
  10. docs_src/body_updates/tutorial002_py39.py

    1.  
    2. @app.patch("/items/{item_id}", response_model=Item)
    3. async def update_item(item_id: str, item: Item):
    4. stored_item_data = items[item_id]
    5. stored_item_model = Item(**stored_item_data)
    6. update_data = item.dict(exclude_unset=True)
    7. updated_item = stored_item_model.copy(update=update_data)
    8. items[item_id] = jsonable_encoder(updated_item)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 1K bytes
    - Viewed (0)
Back to top