Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 109 for Wain (0.17 sec)

  1. docs/de/docs/advanced/settings.md

    ```console
    // Erstelle eine Umgebungsvariable MY_NAME inline für diesen Programmaufruf
    $ MY_NAME="Wade Wilson" python main.py
    
    // main.py kann jetzt diese Umgebungsvariable lesen
    
    Hello Wade Wilson from Python
    
    // Die Umgebungsvariable existiert danach nicht mehr
    $ python main.py
    
    Hello World from Python
    ```
    
    </div>
    
    !!! tip "Tipp"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:14 GMT 2024
    - 17.8K bytes
    - Viewed (0)
  2. docs/ko/docs/tutorial/first-steps.md

    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    !!! note "참고"
        `uvicorn main:app` 명령은 다음을 의미합니다:
    
        * `main`: 파일 `main.py` (파이썬 "모듈").
        * `app`: `main.py` 내부의 `app = FastAPI()` 줄에서 생성한 오브젝트.
        * `--reload`: 코드 변경 시 자동으로 서버 재시작. 개발 시에만 사용.
    
    출력되는 줄들 중에는 아래와 같은 내용이 있습니다:
    
    ```hl_lines="4"
    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)
  3. docs/zh/docs/deployment/docker.md

    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (1)
    COPY ./main.py /code/
    
    # (2)
    CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
    ```
    
    1. 直接将`main.py`文件复制到`/code`目录中(不包含任何`./app`目录)。
    
    2. 运行 Uvicorn 并告诉它从 `main` 导入 `app` 对象(而不是从 `app.main` 导入)。
    
    然后调整Uvicorn命令使用新模块`main`而不是`app.main`来导入FastAPI 实例`app`。
    
    ## 部署概念
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 31.2K bytes
    - Viewed (0)
  4. docs/pt/docs/index.md

    * `main`: o arquivo `main.py` (o "módulo" Python).
    * `app`: o objeto criado dentro de `main.py` com a linha `app = FastAPI()`.
    * `--reload`: faz o servidor recarregar após mudanças de código. Somente faça isso para desenvolvimento.
    
    </details>
    
    ### Verifique
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  5. docs/az/docs/index.md

    `uvicorn main:app` əmri aşağıdakılara instinad edir:
    
    * `main`: `main.py` faylı (yəni Python "modulu").
    * `app`: `main.py` faylında `app = FastAPI()` sətrində yaratdığımız `FastAPI` obyektidir.
    * `--reload`: kod dəyişikliyindən sonra avtomatik olaraq serveri yenidən işə salır. Bu parametrdən yalnız development mərhələsində istifadə etməliyik.
    
    </details>
    
    ### İndi yoxlayaq
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  6. docs/vi/docs/index.md

    * `main`: tệp tin `main.py` (một Python "module").
    * `app`: object được tạo trong tệp tin `main.py` tại dòng `app = FastAPI()`.
    * `--reload`: chạy lại server sau khi code thay đổi. Chỉ sử dụng trong quá trình phát triển.
    
    </details>
    
    ### Kiểm tra
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  7. docs/yo/docs/index.md

    INFO:     Application startup complete.
    ```
    
    </div>
    
    <details markdown="1">
    <summary>Nipa aṣẹ kóòdù náà <code>uvicorn main:app --reload</code>...</summary>
    
    Àṣẹ `uvicorn main:app` ń tọ́ka sí:
    
    * `main`: fáìlì náà 'main.py' (Python "module").
    * `app` jẹ object( i.e. nǹkan) tí a ṣẹ̀dá nínú `main.py` pẹ̀lú ilà `app = FastAPI()`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  8. docs/ja/docs/index.md

    - `main`: `main.py`ファイル (Python "モジュール")
    - `app`: `main.py` の`app = FastAPI()`の行で生成されたオブジェクト
    - `--reload`: コードを変更したらサーバーを再起動します。このオプションは開発環境でのみ使用します
    
    </details>
    
    ### 動作確認
    
    ブラウザから<a href="http://127.0.0.1:8000/items/5?q=somequery" class="external-link" target="_blank">http://127.0.0.1:8000/items/5?q=somequery</a>を開きます。
    
    以下の JSON のレスポンスが確認できます:
    
    ```JSON
    {"item_id": 5, "q": "somequery"}
    ```
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 21K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_bigger_applications/test_main.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.bigger_applications.app.main import app
    
        client = TestClient(app)
        return client
    
    
    def test_users_token_jessica(client: TestClient):
        response = client.get("/users?token=jessica")
        assert response.status_code == 200
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.6K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/generate-clients.md

    Diese könnte so aussehen:
    
    ```JSON  hl_lines="7"
    {
      "name": "frontend-app",
      "version": "1.0.0",
      "description": "",
      "main": "index.js",
      "scripts": {
        "generate-client": "openapi-ts --input http://localhost:8000/openapi.json --output ./src/client --client axios"
      },
      "author": "",
      "license": "",
      "devDependencies": {
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Apr 03 03:42:11 GMT 2024
    - 12K bytes
    - Viewed (0)
Back to top