- Sort Score
- Result 10 results
- Languages All
Results 891 - 900 of 1,086 for str (0.03 sec)
-
docs/en/docs/advanced/custom-response.md
The main `Response` class, all the other responses inherit from it. You can return it directly. It accepts the following parameters: * `content` - A `str` or `bytes`. * `status_code` - An `int` HTTP status code. * `headers` - A `dict` of strings. * `media_type` - A `str` giving the media type. E.g. `"text/html"`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 12K bytes - Viewed (0) -
docs_src/sql_databases_peewee/sql_app/crud.py
from . import models, schemas def get_user(user_id: int): return models.User.filter(models.User.id == user_id).first() def get_user_by_email(email: str): return models.User.filter(models.User.email == email).first() def get_users(skip: int = 0, limit: int = 100): return list(models.User.select().offset(skip).limit(limit)) def create_user(user: schemas.UserCreate):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 843 bytes - Viewed (0) -
src/cmd/asm/internal/asm/endtoend_test.go
if len(f) > 0 && strings.Contains(printed, "(PC)") { index := len(f) - 1 suf := "(PC)" for !strings.HasSuffix(f[index], suf) { index-- suf = "(PC)," } str := f[index] n, err := strconv.Atoi(str[:len(str)-len(suf)]) if err == nil { f[index] = fmt.Sprintf("%d%s", seq+n, suf) } } if len(f) == 1 { printed = f[0] } else {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Dec 07 18:42:59 UTC 2023 - 11.6K bytes - Viewed (0) -
docs_src/custom_docs_ui/tutorial002.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 19 19:54:04 UTC 2023 - 1.1K bytes - Viewed (0) -
docs/em/docs/tutorial/response-model.md
```Python hl_lines="9 11-12" {!> ../../docs_src/response_model/tutorial004_py310.py!} ``` //// * `description: Union[str, None] = None` (โ๏ธ `str | None = None` ๐ 3๏ธโฃ.1๏ธโฃ0๏ธโฃ) โ๏ธ ๐ข `None`. * `tax: float = 10.5` โ๏ธ ๐ข `10.5`. * `tags: List[str] = []` ๐ข ๐ ๐: `[]`. โ๏ธ ๐ ๐ช ๐ ๐ซ ๐ซ โช๏ธโก๏ธ ๐ ๐ฅ ๐ซ ๐ซ ๐ค ๐ช. ๐ผ, ๐ฅ ๐ โ๏ธ ๐ท โฎ๏ธ ๐ ๐ฆ ๐ข โ ๐ฝ, โ๏ธ ๐ ๐ซ ๐ ๐จ ๐ถ ๐ ๐ป ๐จ ๐ ๐ข ๐ฒ.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.8K bytes - Viewed (0) -
docs/em/docs/tutorial/path-operation-configuration.md
๐ ๐ช โ๏ธ `from starlette import status`. **FastAPI** ๐ ๐ `starlette.status` `fastapi.status` ๐ช ๐, ๐ฉโ๐ป. โ๏ธ โซ๏ธ ๐ ๐ โช๏ธโก๏ธ ๐. /// ## ๐ ๐ ๐ช ๐ฎ ๐ ๐ *โก ๐ ๏ธ*, ๐ถโโ๏ธ ๐ข `tags` โฎ๏ธ `list` `str` (๐ 1๏ธโฃ `str`): //// tab | ๐ 3๏ธโฃ.6๏ธโฃ & ๐ ```Python hl_lines="17 22 27" {!> ../../docs_src/path_operation_configuration/tutorial002.py!} ``` //// //// tab | ๐ 3๏ธโฃ.9๏ธโฃ & ๐
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.2K bytes - Viewed (0) -
docs/em/docs/tutorial/query-params.md
๐ฅ ๐ ๐ซ ๐ ๐ฎ ๐ฏ ๐ฒ โ๏ธ โ โซ๏ธ ๐ฆ, โ ๐ข `None`. โ๏ธ ๐โ ๐ ๐ โ ๐ข ๐ข โ, ๐ ๐ช ๐ซ ๐ฃ ๐ ๐ข ๐ฒ: ```Python hl_lines="6-7" {!../../docs_src/query_params/tutorial005.py!} ``` ๐ฅ ๐ข ๐ข `needy` โ ๐ข ๐ข ๐ `str`. ๐ฅ ๐ ๐ ๐ ๐ฅ ๐ ๐: ``` http://127.0.0.1:8000/items/foo-item ``` ...๐ต โ โ ๐ข `needy`, ๐ ๐ ๐ โ ๐: ```JSON { "detail": [ { "loc": [
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.4K bytes - Viewed (0) -
docs/tr/docs/tutorial/query-params.md
Fakat, bir sorgu parametresini zorunlu yapmak istiyorsanฤฑz varsayฤฑlan bir deฤer atamamanฤฑz yeterli olacaktฤฑr: ```Python hl_lines="6-7" {!../../docs_src/query_params/tutorial005.py!} ``` Burada `needy` parametresi `str` tipinden oluลan zorunlu bir sorgu parametresidir. Eฤer tarayฤฑcฤฑnฤฑzda ลu baฤlantฤฑyฤฑ: ``` http://127.0.0.1:8000/items/foo-item ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.9K bytes - Viewed (0) -
configure.py
def write_action_env_to_bazelrc(var_name, var): write_to_bazelrc('build --action_env {}="{}"'.format(var_name, str(var))) def write_repo_env_to_bazelrc(config_name, var_name, var): write_to_bazelrc( 'build:{} --repo_env {}="{}"'.format(config_name, var_name, str(var)) ) def run_shell(cmd, allow_non_zero=False, stderr=None): if stderr is None: stderr = sys.stdout
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Oct 02 22:16:02 UTC 2024 - 48.2K bytes - Viewed (0) -
tests/test_include_router_defaults_overrides.py
callback_router0 = APIRouter() @callback_router0.get("/") async def callback0(level0: str): pass # pragma: nocover callback_router1 = APIRouter() @callback_router1.get("/") async def callback1(level1: str): pass # pragma: nocover callback_router2 = APIRouter() @callback_router2.get("/") async def callback2(level2: str): pass # pragma: nocover callback_router3 = APIRouter()
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 358.6K bytes - Viewed (0)