Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for userDir (0.04 sec)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/BaseParserTest.java

            InvokerRequest invokerRequest =
                    subject.parseInvocation(ParserRequest.mvn(Arrays.asList("-e", "-X"), mock(MessageBuilderFactory.class))
                            .cwd(Path.of(System.getProperty("userDir")))
                            .userHome(Path.of(System.getProperty("userHome")))
                            .build());
    
            Assertions.assertTrue(invokerRequest.options().isPresent());
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. docs_src/extra_models/tutorial002_py39.py

        full_name: Union[str, None] = None
    
    
    class UserIn(UserBase):
        password: str
    
    
    class UserOut(UserBase):
        pass
    
    
    class UserInDB(UserBase):
        hashed_password: str
    
    
    def fake_password_hasher(raw_password: str):
        return "supersecret" + raw_password
    
    
    def fake_save_user(user_in: UserIn):
        hashed_password = fake_password_hasher(user_in.password)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 830 bytes
    - Viewed (0)
  3. docs_src/extra_models/tutorial002_py310.py

        full_name: str | None = None
    
    
    class UserIn(UserBase):
        password: str
    
    
    class UserOut(UserBase):
        pass
    
    
    class UserInDB(UserBase):
        hashed_password: str
    
    
    def fake_password_hasher(raw_password: str):
        return "supersecret" + raw_password
    
    
    def fake_save_user(user_in: UserIn):
        hashed_password = fake_password_hasher(user_in.password)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 798 bytes
    - Viewed (0)
  4. docs_src/extra_models/tutorial001_py310.py

    
    def fake_save_user(user_in: UserIn):
        hashed_password = fake_password_hasher(user_in.password)
        user_in_db = UserInDB(**user_in.model_dump(), hashed_password=hashed_password)
        print("User saved! ..not really")
        return user_in_db
    
    
    @app.post("/user/", response_model=UserOut)
    async def create_user(user_in: UserIn):
        user_saved = fake_save_user(user_in)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 905 bytes
    - Viewed (0)
  5. docs_src/extra_models/tutorial001_py39.py

    
    def fake_save_user(user_in: UserIn):
        hashed_password = fake_password_hasher(user_in.password)
        user_in_db = UserInDB(**user_in.model_dump(), hashed_password=hashed_password)
        print("User saved! ..not really")
        return user_in_db
    
    
    @app.post("/user/", response_model=UserOut)
    async def create_user(user_in: UserIn):
        user_saved = fake_save_user(user_in)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 949 bytes
    - Viewed (0)
  6. samples/slack/src/main/java/okhttp3/slack/OAuthSession.java

      public final String scope;
      public final String user_id;
      public final String team_name;
      public final String team_id;
    
      public OAuthSession(
          boolean ok, String accessToken, String scope, String userId, String teamName, String teamId) {
        this.ok = ok;
        this.access_token = accessToken;
        this.scope = scope;
        this.user_id = userId;
        this.team_name = teamName;
        this.team_id = teamId;
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Oct 23 15:24:22 UTC 2016
    - 1.4K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/extra-models.md

    ### About `**user_in.model_dump()` { #about-user-in-model-dump }
    
    #### Pydantic's `.model_dump()` { #pydantics-model-dump }
    
    `user_in` is a Pydantic model of class `UserIn`.
    
    Pydantic models have a `.model_dump()` method that returns a `dict` with the model's data.
    
    So, if we create a Pydantic object `user_in` like:
    
    ```Python
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/extra-models.md

    ### `**user_in.dict()` 简介
    
    #### Pydantic 的 `.dict()`
    
    `user_in` 是类 `UserIn` 的 Pydantic 模型。
    
    Pydantic 模型支持 `.dict()` 方法,能返回包含模型数据的**字典**。
    
    因此,如果使用如下方式创建 Pydantic 对象 `user_in`:
    
    ```Python
    user_in = UserIn(username="john", password="secret", email="******@****.***")
    ```
    
    就能以如下方式调用:
    
    ```Python
    user_dict = user_in.dict()
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/extra-models.md

    Da wir im obigen Beispiel `user_dict` von `user_in.model_dump()` bekommen haben, wäre dieser Code:
    
    ```Python
    user_dict = user_in.model_dump()
    UserInDB(**user_dict)
    ```
    
    gleichwertig zu:
    
    ```Python
    UserInDB(**user_in.model_dump())
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 8K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/extra-models.md

    ///
    
    ### Acerca de `**user_in.dict()` { #about-user-in-dict }
    
    #### `.dict()` de Pydantic { #pydantics-dict }
    
    `user_in` es un modelo Pydantic de la clase `UserIn`.
    
    Los modelos Pydantic tienen un método `.dict()` que devuelve un `dict` con los datos del modelo.
    
    Así que, si creamos un objeto Pydantic `user_in` como:
    
    ```Python
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 7.6K bytes
    - Viewed (0)
Back to top