- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 76 for userDir (0.06 seconds)
-
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());Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 4.2K bytes - Click Count (0) -
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)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 905 bytes - Click Count (0) -
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)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 949 bytes - Click Count (0) -
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)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 830 bytes - Click Count (0) -
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; }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Oct 23 15:24:22 GMT 2016 - 1.4K bytes - Click Count (0) -
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)Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 798 bytes - Click Count (0) -
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
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 6.9K bytes - Click Count (0) -
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()) ```
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 24 10:28:19 GMT 2025 - 8K bytes - Click Count (0) -
docs/pt/docs/tutorial/extra-models.md
/// ### Sobre `**user_in.dict()` { #about-user-in-dict } #### O `.dict()` do Pydantic { #pydantics-dict } `user_in` é um modelo Pydantic da classe `UserIn`. Os modelos Pydantic possuem um método `.dict()` que retorna um `dict` com os dados do modelo. Então, se criarmos um objeto Pydantic `user_in` como: ```Python user_in = UserIn(username="john", password="secret", email="******@****.***")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 7.5K bytes - Click Count (0) -
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() ```
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 5.7K bytes - Click Count (0)