Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 183 for myfile (0.99 sec)

  1. docs/tr/docs/tutorial/path-params.md

    ## Yol İçeren Yol Parametreleri
    
    Farz edelim ki elinizde `/files/{file_path}` isminde bir *yol operasyonu* var.
    
    Fakat `file_path` değerinin `home/johndoe/myfile.txt` gibi bir *yol* barındırmasını istiyorsunuz.
    
    Sonuç olarak, oluşturmak istediğin URL `/files/home/johndoe/myfile.txt` gibi bir şey olacaktır.
    
    ### OpenAPI Desteği
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/request-files.md

    Например, внутри `async` *функции операции пути* можно получить содержимое с помощью:
    
    ```Python
    contents = await myfile.read()
    ```
    
    Если вы находитесь внутри обычной `def` *функции операции пути*, можно получить прямой доступ к файлу `UploadFile.file`, например:
    
    ```Python
    contents = myfile.file.read()
    ```
    
    !!! note "Технические детали `async`"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  3. docs/ru/docs/tutorial/path-params.md

    ## Path-параметры, содержащие пути
    
    Предположим, что есть *операция пути* с путем `/files/{file_path}`.
    
    Но вам нужно, чтобы `file_path` сам содержал *путь*, например, `home/johndoe/myfile.txt`.
    
    Тогда URL для этого файла будет такой: `/files/home/johndoe/myfile.txt`.
    
    ### Поддержка OpenAPI
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. docs/fr/docs/tutorial/path-params.md

    Disons que vous avez une *fonction de chemin* liée au chemin `/files/{file_path}`.
    
    Mais que `file_path` lui-même doit contenir un *chemin*, comme `home/johndoe/myfile.txt` par exemple.
    
    Donc, l'URL pour ce fichier pourrait être : `/files/home/johndoe/myfile.txt`.
    
    ### Support d'OpenAPI
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. platforms/software/resources-s3/src/test/groovy/org/gradle/internal/resource/transport/aws/s3/S3ClientTest.groovy

            URI uri = new URI("s3://localhost/maven/snapshot/myFile.txt")
    
            when:
            client.put(Mock(InputStream), 12L, uri)
            then:
            1 * amazonS3Client.putObject(*_) >> { args ->
                PutObjectRequest putObjectRequest = args[0]
                assert putObjectRequest.bucketName == 'localhost'
                assert putObjectRequest.key == 'maven/snapshot/myFile.txt'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/request-files.md

        * This is especially useful if you run `await myfile.read()` once and then need to read the contents again.
    * `close()`: Closes the file.
    
    As all these methods are `async` methods, you need to "await" them.
    
    For example, inside of an `async` *path operation function* you can get the contents with:
    
    ```Python
    contents = await myfile.read()
    ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/path-params.md

    Angenommen, Sie haben eine *Pfadoperation* mit einem Pfad `/files/{file_path}`.
    
    Aber `file_path` soll selbst einen *Pfad* enthalten, etwa `home/johndoe/myfile.txt`.
    
    Sprich, die URL für diese Datei wäre etwas wie: `/files/home/johndoe/myfile.txt`.
    
    ### OpenAPI Unterstützung
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:28:59 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestInputAnnotationFailuresIntegrationTest.groovy

            'File'                | 'myField'   | "File myField = project.layout.projectDirectory.file('myFile.txt').getAsFile()" | 'myField.absolutePath'
            'RegularFile'         | 'myField'   | "RegularFile myField = project.layout.projectDirectory.file('myFile.txt')"      | 'myField.getAsFile().absolutePath'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/request-files.md

        * Das ist besonders dann nützlich, wenn Sie `await myfile.read()` einmal ausführen und dann diese Inhalte erneut auslesen müssen.
    * `close()`: Schließt die Datei.
    
    Da alle diese Methoden `async`hron sind, müssen Sie sie `await`en („erwarten“).
    
    Zum Beispiel können Sie innerhalb einer `async` *Pfadoperation-Funktion* den Inhalt wie folgt auslesen:
    
    ```Python
    contents = await myfile.read()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 17:58:08 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/path-params.md

      "message": "Deep Learning FTW!"
    }
    ```
    
    ## 경로를 포함하는 경로 매개변수
    
    경로를 포함하는 *경로 작동* `/files/{file_path}`이 있다고 해봅시다.
    
    그런데 이 경우 `file_path` 자체가 `home/johndoe/myfile.txt`와 같은 경로를 포함해야 합니다.
    
    이때 해당 파일의 URL은 다음처럼 됩니다: `/files/home/johndoe/myfile.txt`.
    
    ### OpenAPI 지원
    
    테스트와 정의가 어려운 시나리오로 이어질 수 있으므로 OpenAPI는 *경로*를 포함하는 *경로 매개변수*를 내부에 선언하는 방법을 지원하지 않습니다.
    
    그럼에도 Starlette의 내부 도구중 하나를 사용하여 **FastAPI**에서는 이가 가능합니다.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top