Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 129 for run (0.15 sec)

  1. .github/workflows/test-redistribute.yml

          - name: Install build dependencies
            run: pip install build
          - name: Build source distribution
            run: python -m build --sdist
          - name: Decompress source distribution
            run: |
              cd dist
              tar xvf fastapi*.tar.gz
          - name: Install test dependencies
            run: |
              cd dist/fastapi-*/
              pip install -r requirements-tests.txt
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 28 23:28:07 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  2. docs/en/docs/deployment/concepts.md

    ### Separate Program
    
    To achieve this, you will normally have a **separate program** that would make sure your application is run on startup. And in many cases, it would also make sure other components or applications are also run, for example, a database.
    
    ### Example Tools to Run at Startup
    
    Some examples of the tools that can do this job are:
    
    * Docker
    * Kubernetes
    * Docker Compose
    * Docker in Swarm Mode
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_testing_dependencies/test_tutorial001_an_py39.py

    from ...utils import needs_py39
    
    
    @needs_py39
    def test_override_in_items_run():
        from docs_src.dependency_testing.tutorial001_an_py39 import test_override_in_items
    
        test_override_in_items()
    
    
    @needs_py39
    def test_override_in_items_with_q_run():
        from docs_src.dependency_testing.tutorial001_an_py39 import (
            test_override_in_items_with_q,
        )
    
        test_override_in_items_with_q()
    
    
    @needs_py39
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2K bytes
    - Viewed (0)
  4. scripts/playwright/separate_openapi_schemas/image02.py

    import subprocess
    
    from playwright.sync_api import Playwright, sync_playwright
    
    
    def run(playwright: Playwright) -> None:
        browser = playwright.chromium.launch(headless=False)
        context = browser.new_context(viewport={"width": 960, "height": 1080})
        page = context.new_page()
        page.goto("http://localhost:8000/docs")
        page.get_by_text("GET/items/Read Items").click()
        page.get_by_role("button", name="Try it out").click()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Aug 25 19:10:22 GMT 2023
    - 873 bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/debugging.md

    </div>
    
    то встроенная переменная `__name__`, автоматически создаваемая Python в вашем файле, будет иметь значение строкового типа `"__main__"`.
    
    Тогда выполнится условие и эта часть кода:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    будет запущена.
    
    ---
    
    Но этого не произойдет, если вы импортируете этот модуль (файл).
    
    Таким образом, если у вас есть файл `importer.py` с таким импортом:
    
    ```Python
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  6. docs/fr/docs/tutorial/debugging.md

    ```
    
    </div>
    
    alors la variable interne `__name__` de votre fichier, créée automatiquement par Python, aura pour valeur la chaîne de caractères `"__main__"`.
    
    Ainsi, la section :
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    va s'exécuter.
    
    ---
    
    Cela ne se produira pas si vous importez ce module (fichier).
    
    Par exemple, si vous avez un autre fichier `importer.py` qui contient :
    
    ```Python
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Mar 06 16:26:49 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  7. tests/test_dependency_contextvars.py

        """
        Check that custom middlewares don't affect the contextvar context for dependencies.
    
        The code before yield and the code after yield should be run in the same contextvar
        context, so that request_state_context_var.reset(contextvar_token).
    
        If they are run in a different context, that raises an error.
        """
        response = client.get("/user")
        assert response.json() == "deadpond"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Feb 17 12:40:12 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  8. .github/actions/people/app/main.py

        logging.info("Setting up GitHub Actions git user")
        subprocess.run(["git", "config", "user.name", "github-actions"], check=True)
        subprocess.run(
            ["git", "config", "user.email", "******@****.***"], check=True
        )
        branch_name = "fastapi-people"
        logging.info(f"Creating a new branch {branch_name}")
        subprocess.run(["git", "checkout", "-b", branch_name], check=True)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 17:38:21 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  9. docs/em/docs/tutorial/debugging.md

    , 📄:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    🔜 🏃.
    
    ---
    
    👉 🏆 🚫 🔨 🚥 👆 🗄 👈 🕹 (📁).
    
    , 🚥 👆 ✔️ ➕1️⃣ 📁 `importer.py` ⏮️:
    
    ```Python
    from myapp import app
    
    # Some more code
    ```
    
    👈 💼, 🏧 🔢 🔘 `myapp.py` 🔜 🚫 ✔️ 🔢 `__name__` ⏮️ 💲 `"__main__"`.
    
    , ⏸:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    🔜 🚫 🛠️.
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py

        test_override_in_items,
        test_override_in_items_with_params,
        test_override_in_items_with_q,
    )
    
    
    def test_override_in_items_run():
        test_override_in_items()
    
    
    def test_override_in_items_with_q_run():
        test_override_in_items_with_q()
    
    
    def test_override_in_items_with_params_run():
        test_override_in_items_with_params()
    
    
    def test_override_in_users():
        response = client.get("/users/")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 1.5K bytes
    - Viewed (0)
Back to top