- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for CLEAN (0.76 sec)
-
scripts/clean.sh
Sebastián Ramírez <******@****.***> 1544407273 +0400
Shell Script - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Mon Dec 10 03:59:18 GMT 2018 - 98 bytes - Viewed (0) -
docs/en/docs/advanced/generate-clients.md
In this case you have: * `ItemsService` * `UsersService` ### Client Method Names Right now the generated method names like `createItemItemsPost` don't look very clean: ```TypeScript ItemsService.createItemItemsPost({name: "Plumbus", price: 5}) ``` ...that's because the client generator uses the OpenAPI internal **operation ID** for each *path operation*.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 10.5K bytes - Viewed (0) -
docs/en/docs/contributing.md
### Format the code There is a script that you can run that will format and clean all your code: <div class="termy"> ```console $ bash scripts/format.sh ``` </div> It will also auto-sort all your imports.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 17:42:43 GMT 2024 - 14.1K bytes - Viewed (0) -
docs_src/events/tutorial003.py
ml_models = {} @asynccontextmanager async def lifespan(app: FastAPI): # Load the ML model ml_models["answer_to_everything"] = fake_answer_to_everything_ml_model yield # Clean up the ML models and release the resources ml_models.clear() app = FastAPI(lifespan=lifespan) @app.get("/predict") async def predict(x: float): result = ml_models["answer_to_everything"](x)
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 07 15:46:00 GMT 2023 - 569 bytes - Viewed (0) -
.github/workflows/deploy-docs.yml
runs-on: ubuntu-latest steps: - name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - uses: actions/checkout@v4 - name: Clean site run: | rm -rf ./site mkdir ./site - name: Download Artifact Docs id: download uses: dawidd6/action-download-artifact@v3.1.4 with:
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 19 01:33:28 GMT 2024 - 1.6K bytes - Viewed (0) -
docs/en/docs/async.md
So, to balance that out, imagine the following short story: > You have to clean a big, dirty house. *Yep, that's the whole story*. --- There's no waiting 🕙 anywhere, just a lot of work to be done, on multiple places of the house.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 23K bytes - Viewed (0) -
docs/en/docs/advanced/events.md
This can be very useful for setting up **resources** that you need to use for the whole app, and that are **shared** among requests, and/or that you need to **clean up** afterwards. For example, a database connection pool, or loading a shared machine learning model. ## Use Case Let's start with an example **use case** and then see how to solve it with this.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.8K bytes - Viewed (0) -
docs/en/docs/release-notes.md
ml_models = {} @asynccontextmanager async def lifespan(app: FastAPI): # Load the ML model ml_models["answer_to_everything"] = fake_answer_to_everything_ml_model yield # Clean up the ML models and release the resources ml_models.clear() app = FastAPI(lifespan=lifespan) @app.get("/predict") async def predict(x: float):
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri May 03 23:25:42 GMT 2024 - 388.1K bytes - Viewed (1) -
docs/en/docs/tutorial/handling-errors.md
``` Here, if you request `/unicorns/yolo`, the *path operation* will `raise` a `UnicornException`. But it will be handled by the `unicorn_exception_handler`. So, you will receive a clean error, with an HTTP status code of `418` and a JSON content of: ```JSON {"message": "Oops! yolo did something. There goes a rainbow..."} ``` !!! note "Technical Details"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.1K bytes - Viewed (0)