- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 21 for BackgroundTasks (0.08 sec)
-
docs/em/docs/tutorial/background-tasks.md
* ๐ผ, โก๏ธ ๐ฌ ๐ ๐จ ๐ ๐ ๐ ๐ถ ๐ ๐ ๐ ๏ธ, ๐ ๐ช ๐จ ๐จ "๐ซ" (๐บ๐ธ๐ 2๏ธโฃ0๏ธโฃ2๏ธโฃ) & ๐ ๏ธ โซ๏ธ ๐ฅ. ## โ๏ธ `BackgroundTasks` ๐ฅ, ๐ `BackgroundTasks` & ๐ฌ ๐ข ๐ *โก ๐ ๏ธ ๐ข* โฎ๏ธ ๐ ๐ `BackgroundTasks`: ```Python hl_lines="1 13" {!../../docs_src/background_tasks/tutorial001.py!} ``` **FastAPI** ๐ โ ๐ ๐ `BackgroundTasks` ๐ & ๐ถโโ๏ธ โซ๏ธ ๐ ๐ข. ## โ ๐ ๐ข โ ๐ข ๐ ๐ฅ ๐. โซ๏ธ ๐ฉ ๐ข ๐ ๐ช ๐จ ๐ข.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.1K bytes - Viewed (0) -
docs/zh/docs/tutorial/background-tasks.md
* ๅค็ๆฐๆฎ๏ผ * ไพๅฆ๏ผๅ่ฎพๆจๆถๅฐ็ๆไปถๅฟ ้กป็ป่ฟไธไธช็ผๆ ข็่ฟ็จ๏ผๆจๅฏไปฅ่ฟๅไธไธช"Accepted"(HTTP 202)ๅๅบๅนถๅจๅๅฐๅค็ๅฎใ ## ไฝฟ็จ `BackgroundTasks` ้ฆๅ ๅฏผๅ ฅ `BackgroundTasks` ๅนถๅจ *่ทฏๅพๆไฝๅฝๆฐ* ไธญไฝฟ็จ็ฑปๅๅฃฐๆ `BackgroundTasks` ๅฎไนไธไธชๅๆฐ๏ผ ```Python hl_lines="1 13" {!../../docs_src/background_tasks/tutorial001.py!} ``` **FastAPI** ไผๅๅปบไธไธช `BackgroundTasks` ็ฑปๅ็ๅฏน่ฑกๅนถไฝไธบ่ฏฅๅๆฐไผ ๅ ฅใ ## ๅๅปบไธไธชไปปๅกๅฝๆฐ ๅๅปบ่ฆไฝไธบๅๅฐไปปๅก่ฟ่ก็ๅฝๆฐใ ๅฎๅชๆฏไธไธชๅฏไปฅๆฅๆถๅๆฐ็ๆ ๅๅฝๆฐใ
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5K bytes - Viewed (0) -
docs_src/background_tasks/tutorial001.py
from fastapi import BackgroundTasks, FastAPI app = FastAPI() def write_notification(email: str, message=""): with open("log.txt", mode="w") as email_file: content = f"notification for {email}: {message}" email_file.write(content) @app.post("/send-notification/{email}") async def send_notification(email: str, background_tasks: BackgroundTasks):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 519 bytes - Viewed (0) -
docs/ko/docs/tutorial/background-tasks.md
* ์๋ฅผ ๋ค์ด ์ฒ๋ฆฌ์ ์ค๋ ์๊ฐ์ด ๊ฑธ๋ฆฌ๋ ๋ฐ์ดํฐ๋ฅผ ๋ฐ์์ ๋ "Accepted" (HTTP 202)์ ๋ฐํํ๊ณ , ๋ฐฑ๊ทธ๋ผ์ด๋์์ ๋ฐ์ดํฐ๋ฅผ ์ฒ๋ฆฌํ ์ ์์ต๋๋ค. ## `๋ฐฑ๊ทธ๋ผ์ด๋ ์์ ` ์ฌ์ฉ ๋จผ์ ์๋์ ๊ฐ์ด `BackgroundTasks`๋ฅผ ์ํฌํธํ๊ณ , `BackgroundTasks`๋ฅผ _๊ฒฝ๋ก ์๋ ํจ์_ ์์ ๋งค๊ฐ๋ณ์๋ก ๊ฐ์ ธ์ค๊ณ ์ ์ํฉ๋๋ค. ```Python hl_lines="1 13" {!../../docs_src/background_tasks/tutorial001.py!} ``` **FastAPI** ๋ `BackgroundTasks` ๊ฐ์ฒด๋ฅผ ์์ฑํ๊ณ , ๋งค๊ฐ ๋ณ์๋ก ์ ๋ฌํฉ๋๋ค. ## ์์ ํจ์ ์์ฑ ๋ฐฑ๊ทธ๋ผ์ด๋ ์์ ์ผ๋ก ์คํํ ํจ์๋ฅผ ์ ์ํฉ๋๋ค. ์ด๊ฒ์ ๋จ์ํ ๋งค๊ฐ๋ณ์๋ฅผ ๋ฐ์ ์ ์๋ ํ์ค ํจ์์ผ ๋ฟ์ ๋๋ค.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.7K bytes - Viewed (0) -
docs/ja/docs/tutorial/background-tasks.md
* ใใผใฟๅฆ็: * ใใจใใฐใๆ้ใฎใใใๅฆ็ใๅฟ ่ฆใจใใใใกใคใซๅไฟกๆใซใฏใใๅไฟกๆธใฟใ(HTTP 202) ใฎใฌในใใณในใ่ฟใใใใใฏใฐใฉใฆใณใใงๅฆ็ใงใใพใใ ## `BackgroundTasks` ใฎไฝฟ็จ ใพใๅใใซใ`BackgroundTasks` ใใคใณใใผใใใ` BackgroundTasks` ใฎๅๅฎฃ่จใจๅ ฑใซใ*path operation ้ขๆฐ* ใฎใใฉใกใผใฟใผใๅฎ็พฉใใพใ: ```Python hl_lines="1 13" {!../../docs_src/background_tasks/tutorial001.py!} ``` **FastAPI** ใฏใ`BackgroundTasks` ๅใฎใชใใธใงใฏใใไฝๆใใใใฎใใฉใกใผใฟใผใซๆธกใใพใใ ## ใฟในใฏ้ขๆฐใฎไฝๆ ใใใฏใฐใฉใฆใณใใฟในใฏใจใใฆๅฎ่กใใใ้ขๆฐใไฝๆใใพใใ
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6K bytes - Viewed (0) -
docs_src/background_tasks/tutorial002_an_py39.py
from typing import Annotated, Union from fastapi import BackgroundTasks, Depends, FastAPI app = FastAPI() def write_log(message: str): with open("log.txt", mode="a") as log: log.write(message) def get_query(background_tasks: BackgroundTasks, q: Union[str, None] = None): if q: message = f"found query: {q}\n" background_tasks.add_task(write_log, message) return q
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 696 bytes - Viewed (0) -
docs_src/background_tasks/tutorial002_an.py
from typing import Union from fastapi import BackgroundTasks, Depends, FastAPI from typing_extensions import Annotated app = FastAPI() def write_log(message: str): with open("log.txt", mode="a") as log: log.write(message) def get_query(background_tasks: BackgroundTasks, q: Union[str, None] = None): if q: message = f"found query: {q}\n" background_tasks.add_task(write_log, message) return q
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 725 bytes - Viewed (0) -
fastapi/__init__.py
__version__ = "0.115.4" from starlette import status as status from .applications import FastAPI as FastAPI from .background import BackgroundTasks as BackgroundTasks from .datastructures import UploadFile as UploadFile from .exceptions import HTTPException as HTTPException from .exceptions import WebSocketException as WebSocketException from .param_functions import Body as Body
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 21:51:55 UTC 2024 - 1.1K bytes - Viewed (0) -
tests/test_dependency_contextmanager.py
import json from typing import Dict import pytest from fastapi import BackgroundTasks, Depends, FastAPI from fastapi.responses import StreamingResponse from fastapi.testclient import TestClient app = FastAPI() state = { "/async": "asyncgen not started", "/sync": "generator not started", "/async_raise": "asyncgen raise not started", "/sync_raise": "generator raise not started", "context_a": "not started a",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 17 04:13:50 UTC 2024 - 11.6K bytes - Viewed (0) -
fastapi/dependencies/utils.py
is_uploadfile_sequence_annotation, lenient_issubclass, sequence_types, serialize_sequence_value, value_is_sequence, ) from fastapi.background import BackgroundTasks from fastapi.concurrency import ( asynccontextmanager, contextmanager_in_threadpool, ) from fastapi.dependencies.models import Dependant, SecurityRequirement from fastapi.logger import logger
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 21:46:26 UTC 2024 - 34.7K bytes - Viewed (0)