Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 852 for txt (0.03 sec)

  1. tests/test_tutorial/test_request_files/test_tutorial001_02_an_py310.py

        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    @needs_py310
    def test_post_upload_file(tmp_path: Path, client: TestClient):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. build-logic/buildquality/src/main/kotlin/gradlebuild.incubation-report.gradle.kts

        versionFile = repoRoot().file("version.txt")
        releasedVersionsFile = releasedVersionsFile()
        sources.from(sourceSets.main.get().java.sourceDirectories)
        sources.from(sourceSets.main.get().groovy.sourceDirectories)
        htmlReportFile = file(layout.buildDirectory.file("reports/incubation/${project.name}.html"))
        textReportFile = file(layout.buildDirectory.file("reports/incubation/${project.name}.txt"))
    }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Feb 12 13:19:06 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. docs/en/docs/deployment/docker.md

    ```
    .
    ├── Dockerfile
    ├── main.py
    └── requirements.txt
    ```
    
    Then you would just have to change the corresponding paths to copy the file inside the `Dockerfile`:
    
    ```{ .dockerfile .annotate hl_lines="10  13" }
    FROM python:3.9
    
    WORKDIR /code
    
    COPY ./requirements.txt /code/requirements.txt
    
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (1)!
    COPY ./main.py /code/
    
    # (2)!
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Sep 18 16:09:57 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  4. 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: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

         * @return the check result
         */
        private
        fun runBinaryCompatibilityCheck(v1: File.() -> Unit, v2: File.() -> Unit, block: CheckResult.() -> Unit = {}): CheckResult {
            rootDir.withFile("version.txt", "1.0")
    
            val inputBuildDir = setupRunBinaryCompatibility(v1, v2)
    
            val runner = GradleRunner.create()
                .withProjectDir(inputBuildDir)
                .withPluginClasspath()
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  6. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        val dohEnabledClient =
          client.newBuilder().eventListener(EventListener.NONE).dns(dohDns).build()
    
        dohEnabledClient.get("https://www.twitter.com/robots.txt")
        dohEnabledClient.get("https://www.facebook.com/robots.txt")
      }
    
      @Test
      fun testCustomTrustManager() {
        assumeNetwork()
    
        val trustManager =
          object : X509TrustManager {
            override fun checkClientTrusted(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 27K bytes
    - Viewed (0)
  7. docs/ko/docs/deployment/versions.md

    가장 먼저 해야할 것은 응용 프로그램이 잘 작동하는 가장 최신의 구체적인 **FastAPI** 버전을 표시하는 것입니다.
    
    예를 들어, 응용 프로그램에 `0.45.0` 버전을 사용했다고 가정합니다.
    
    만약에 `requirements.txt` 파일을 사용했다면, 다음과 같이 버전을 명세할 수 있습니다:
    
    ```txt
    fastapi==0.45.0
    ```
    
    이것은 `0.45.0` 버전을 사용했다는 것을 의미합니다.
    
    또는 다음과 같이 표시할 수 있습니다:
    
    ```txt
    fastapi>=0.45.0,<0.46.0
    ```
    
    이것은 `0.45.0` 버전과 같거나 높으면서 `0.46.0` 버전 보다는 낮은 버전을 사용했다는 것을 의미합니다. 예를 들어, `0.45.2` 버전과 같은 경우는 해당 조건을 만족합니다.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_files/test_tutorial001_03.py

        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    def test_post_upload_file(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 6K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_files/test_tutorial001_02_an.py

        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    def test_post_upload_file(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  10. pom.xml

    	<url>https://github.com/codelibs/corelib</url>
    	<inceptionYear>2012</inceptionYear>
    	<licenses>
    		<license>
    			<name>The Apache Software License, Version 2.0</name>
    			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    			<distribution>repo</distribution>
    		</license>
    	</licenses>
    	<organization>
    		<name>CodeLibs Project</name>
    		<url>https://www.codelibs.org/</url>
    	</organization>
    	<scm>
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:58:02 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top