Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for arkite (0.14 sec)

  1. fastapi/security/oauth2.py

                    For example, a single string with:
    
                    ```python
                    "items:read items:write users:read profile openid"
                    ````
    
                    would represent the scopes:
    
                    * `items:read`
                    * `items:write`
                    * `users:read`
                    * `profile`
                    * `openid`
                    """
                ),
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  2. .github/workflows/publish.yml

        types:
          - created
    
    jobs:
      publish:
        runs-on: ubuntu-latest
        strategy:
          matrix:
            package:
              - fastapi
              - fastapi-slim
        permissions:
          id-token: write
        steps:
          - name: Dump GitHub context
            env:
              GITHUB_CONTEXT: ${{ toJson(github) }}
            run: echo "$GITHUB_CONTEXT"
          - uses: actions/checkout@v4
          - name: Set up Python
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 30 06:38:13 GMT 2024
    - 1K bytes
    - Viewed (0)
  3. docs/en/docs/benchmarks.md

    * **Uvicorn**:
        * Will have the best performance, as it doesn't have much extra code apart from the server itself.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  4. docs/en/docs/alternatives.md

    That's why, as said in the official website:
    
    > Requests is one of the most downloaded Python packages of all time
    
    The way you use it is very simple. For example, to do a `GET` request, you would write:
    
    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    The FastAPI counterpart API *path operation* could look like:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/first-steps.md

    ## Recap
    
    * Import `FastAPI`.
    * Create an `app` instance.
    * Write a **path operation decorator** (like `@app.get("/")`).
    * Write a **path operation function** (like `def root(): ...` above).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/testing.md

    Create functions with a name that starts with `test_` (this is standard `pytest` conventions).
    
    Use the `TestClient` object the same way as you do with `httpx`.
    
    Write simple `assert` statements with the standard Python expressions that you need to check (again, standard `pytest`).
    
    ```Python hl_lines="2  12  15-18"
    {!../../../docs_src/app_testing/tutorial001.py!}
    ```
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/request-files.md

    `UploadFile` βœ”οΈ πŸ“„ `async` πŸ‘©β€πŸ”¬. πŸ‘« 🌐 πŸ€™ πŸ”— πŸ“ πŸ‘©β€πŸ”¬ πŸ”˜ (βš™οΈ πŸ”— `SpooledTemporaryFile`).
    
    * `write(data)`: ✍ `data` (`str` βš–οΈ `bytes`) πŸ“.
    * `read(size)`: ✍ `size` (`int`) πŸ”’/🦹 πŸ“.
    * `seek(offset)`: 🚢 πŸ”’ 🧘 `offset` (`int`) πŸ“.
        * 🀢 β“‚., `await myfile.seek(0)` πŸ”œ 🚢 ▢️ πŸ“.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/request-files.md

    `UploadFile` μ—λŠ” λ‹€μŒμ˜ `async` λ©”μ†Œλ“œλ“€μ΄ μžˆμŠ΅λ‹ˆλ‹€. 이듀은 내뢀적인 `SpooledTemporaryFile` 을 μ‚¬μš©ν•˜μ—¬ ν•΄λ‹Ήν•˜λŠ” 파일 λ©”μ†Œλ“œλ₯Ό ν˜ΈμΆœν•©λ‹ˆλ‹€.
    
    * `write(data)`: `data`(`str` λ˜λŠ” `bytes`)λ₯Ό νŒŒμΌμ— μž‘μ„±ν•©λ‹ˆλ‹€.
    * `read(size)`: 파일의 λ°”μ΄νŠΈ 및 κΈ€μžμ˜ `size`(`int`)λ₯Ό μ½μŠ΅λ‹ˆλ‹€.
    * `seek(offset)`: 파일 λ‚΄ `offset`(`int`) μœ„μΉ˜μ˜ λ°”μ΄νŠΈλ‘œ μ΄λ™ν•©λ‹ˆλ‹€.
        * 예) `await myfile.seek(0)` λ₯Ό μ‚¬μš©ν•˜λ©΄ 파일의 μ‹œμž‘λΆ€λΆ„μœΌλ‘œ μ΄λ™ν•©λ‹ˆλ‹€.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_files/test_tutorial002.py

                    }
                ]
            }
        )
    
    
    def test_post_files(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
        client = TestClient(app)
        with path.open("rb") as file, path2.open("rb") as file2:
            response = client.post(
                "/files/",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an.py

                ]
            }
        )
    
    
    def test_post_files_and_token(tmp_path, app: FastAPI):
        patha = tmp_path / "test.txt"
        pathb = tmp_path / "testb.txt"
        patha.write_text("<file content>")
        pathb.write_text("<file b content>")
    
        client = TestClient(app)
        with patha.open("rb") as filea, pathb.open("rb") as fileb:
            response = client.post(
                "/files/",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.8K bytes
    - Viewed (0)
Back to top