Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 153 for file_path (0.05 seconds)

  1. docs_src/path_params/tutorial004_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/files/{file_path:path}")
    async def read_file(file_path: str):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 156 bytes
    - Click Count (0)
  2. ci/official/utilities/extract_resultstore_links.py

        testsuite.attrib = suite_attrib
        indent_xml(testsuites)
    
      tree = ElemTree.ElementTree(testsuites)
      file_path = os.path.join(output_path)
      with open(file_path, 'wb') as f:
        f.write(b'<?xml version="1.0"?>\n')
        tree.write(f)
        if verbose:
          print(f'\nWrote XML with Bazel invocation results to {file_path}')
    
    
    def print_invocation_results(result_store_dict: ResultDictType):
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Nov 08 17:50:27 GMT 2023
    - 10.9K bytes
    - Click Count (0)
  3. docs/ko/docs/tutorial/path-params.md

    ```JSON
    {
      "model_name": "alexnet",
      "message": "Deep Learning FTW!"
    }
    ```
    
    ## 경로를 포함하는 경로 매개변수 { #path-parameters-containing-paths }
    
    경로 `/files/{file_path}`를 가진 *경로 처리*가 있다고 해봅시다.
    
    하지만 `file_path` 자체가 `home/johndoe/myfile.txt`와 같은 *경로*를 포함해야 합니다.
    
    이때 해당 파일의 URL은 다음처럼 됩니다: `/files/home/johndoe/myfile.txt`.
    
    ### OpenAPI 지원 { #openapi-support }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  4. docs_src/generate_clients/tutorial004_py310.py

    import json
    from pathlib import Path
    
    file_path = Path("./openapi.json")
    openapi_content = json.loads(file_path.read_text())
    
    for path_data in openapi_content["paths"].values():
        for operation in path_data.values():
            tag = operation["tags"][0]
            operation_id = operation["operationId"]
            to_remove = f"{tag}-"
            new_operation_id = operation_id[len(to_remove) :]
            operation["operationId"] = new_operation_id
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 493 bytes
    - Click Count (0)
  5. scripts/docs.py

        # Handle file-level labels (e.g. tutorial001_py39.py)
        for file_path in sorted(docs_src_path.rglob("*_py39.py")):
            if not file_path.is_file():
                continue
            # Skip files inside _py39 directories (already handled above)
            if "_py39" in file_path.parent.name:
                continue
            py310_file = file_path.with_name(
                file_path.name.replace("_py39.py", "_py310.py")
            )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 17:46:10 GMT 2026
    - 25.4K bytes
    - Click Count (0)
  6. docs/zh/docs/tutorial/path-params.md

    客户端中的 JSON 响应如下:
    
    ```JSON
    {
      "model_name": "alexnet",
      "message": "Deep Learning FTW!"
    }
    ```
    
    ## 包含路径的路径参数 { #path-parameters-containing-paths }
    
    假设路径操作的路径为 `/files/{file_path}`。
    
    但需要 `file_path` 中也包含路径,比如,`home/johndoe/myfile.txt`。
    
    此时,该文件的 URL 是这样的:`/files/home/johndoe/myfile.txt`。
    
    ### OpenAPI 支持 { #openapi-support }
    
    OpenAPI 不支持声明包含路径的路径参数,因为这会导致测试和定义更加困难。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/path-params.md

      "message": "Deep Learning FTW!"
    }
    ```
    
    ## Path parameters containing paths { #path-parameters-containing-paths }
    
    Let's say you have a *path operation* with a path `/files/{file_path}`.
    
    But you need `file_path` itself to contain a *path*, like `home/johndoe/myfile.txt`.
    
    So, the URL for that file would be something like: `/files/home/johndoe/myfile.txt`.
    
    ### OpenAPI support { #openapi-support }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  8. docs/ja/docs/tutorial/path-params.md

    ```JSON
    {
      "model_name": "alexnet",
      "message": "Deep Learning FTW!"
    }
    ```
    
    ## パスを含んだパスパラメータ { #path-parameters-containing-paths }
    
    パス `/files/{file_path}` となる *path operation* を持っているとしましょう。
    
    ただし、 `home/johndoe/myfile.txt` のような*パス*を含んだ `file_path` が必要です。
    
    したがって、そのファイルのURLは `/files/home/johndoe/myfile.txt` の様になります。
    
    ### OpenAPIサポート { #openapi-support }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/tutorial/path-params.md

    你的用戶端會收到像這樣的 JSON 回應:
    
    ```JSON
    {
      "model_name": "alexnet",
      "message": "Deep Learning FTW!"
    }
    ```
    
    ## 包含路徑的路徑參數 { #path-parameters-containing-paths }
    
    假設你有一個路徑為 `/files/{file_path}` 的「路徑操作」。
    
    但你需要 `file_path` 本身就包含一個「路徑」,像是 `home/johndoe/myfile.txt`。
    
    所以,該檔案的 URL 會是:`/files/home/johndoe/myfile.txt`。
    
    ### OpenAPI 支援 { #openapi-support }
    
    OpenAPI 並不支援直接宣告一個「路徑參數」內再包含一個「路徑」,因為那會導致難以測試與定義的情況。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  10. CONTRIBUTING.md

        can test it by passing that file's path to
        [tf_doctest.py](https://www.tensorflow.org/code/tensorflow/tools/docs/tf_doctest.py).
        For example:
    
        ```bash
        python tf_doctest.py --file=<file_path>
        ```
    
        This will run it using your installed version of TensorFlow. To be sure
        you're running the same code that you're testing:
    
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Jan 11 04:47:59 GMT 2025
    - 15.9K bytes
    - Click Count (0)
Back to Top