Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 19 for 00009 (0.02 seconds)

  1. architecture/standards/0009-use-american-english.md

    # ADR-0009 - Use American English
    
    ## Date
    
    2025-11-24
    
    ## Context
    
    Gradle is an international open-source project with contributors from around the world. English is the primary language for code, comments, documentation, and communication, but there are variations in English spelling and terminology, specifically American English vs. British English.
    
    Inconsistency in spelling conventions can lead to several issues:
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Nov 25 07:01:54 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_response_directly/test_tutorial001.py

            "/items/1",
            json={
                "title": "Foo",
                "timestamp": "2023-01-01T12:00:00",
                "description": "A test item",
            },
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "description": "A test item",
            "timestamp": "2023-01-01T12:00:00",
            "title": "Foo",
        }
    
    
    def test_openapi_schema_pv2(client: TestClient):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  3. tests/test_tutorial/test_encoder/test_tutorial001.py

            json={
                "title": "Foo",
                "timestamp": "2023-01-01T12:00:00",
                "description": "An optional description",
            },
        )
        assert response.status_code == 200
        assert "123" in fake_db
        assert fake_db["123"] == {
            "title": "Foo",
            "timestamp": "2023-01-01T12:00:00",
            "description": "An optional description",
        }
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  4. docs/pt/docs/tutorial/debugging.md

    ```
    
    </div>
    
    então a variável interna `__name__` no seu arquivo, criada automaticamente pelo Python, terá como valor a string `"__main__"`.
    
    Então, a seção:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    vai executar.
    
    ---
    
    Isso não acontecerá se você importar esse módulo (arquivo).
    
    Então, se você tiver outro arquivo `importer.py` com:
    
    ```Python
    from myapp import app
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  5. docs/de/docs/tutorial/debugging.md

    ```
    
    </div>
    
    dann hat in Ihrer Datei die interne Variable `__name__`, die von Python automatisch erstellt wird, als Wert den String `"__main__"`.
    
    Daher wird der Abschnitt:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    ausgeführt.
    
    ---
    
    Dies wird nicht passieren, wenn Sie das Modul (die Datei) importieren.
    
    Wenn Sie also eine weitere Datei `importer.py` mit folgendem Inhalt haben:
    
    ```Python
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  6. docs_src/debugging/tutorial001_py39.py

    import uvicorn
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def root():
        a = "a"
        b = "b" + a
        return {"hello world": b}
    
    
    if __name__ == "__main__":
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 223 bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/debugging.md

    ```
    
    </div>
    
    then the internal variable `__name__` in your file, created automatically by Python, will have as value the string `"__main__"`.
    
    So, the section:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    will run.
    
    ---
    
    This won't happen if you import that module (file).
    
    So, if you have another file `importer.py` with:
    
    ```Python
    from myapp import app
    
    # Some more code
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  8. tests/test_tutorial/test_debugging/test_tutorial001.py

        with unittest.mock.patch("uvicorn.run") as uvicorn_run_mock:
            runpy.run_module(MOD_NAME, run_name="__main__")
    
        uvicorn_run_mock.assert_called_once_with(
            unittest.mock.ANY, host="0.0.0.0", port=8000
        )
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200
        assert response.json() == {
            "openapi": "3.1.0",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  9. docs/es/docs/deployment/manually.md

    Si instalaste un servidor ASGI manualmente, normalmente necesitarías pasar una cadena de import en un formato especial para que importe tu aplicación FastAPI:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --host 0.0.0.0 --port 80
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit)
    ```
    
    </div>
    
    /// note | Nota
    
    El comando `uvicorn main:app` se refiere a:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 10:15:01 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  10. docs/en/docs/advanced/behind-a-proxy.md

    graph LR
    
    browser("Browser")
    proxy["Proxy on http://0.0.0.0:9999/api/v1/app"]
    server["Server on http://127.0.0.1:8000/app"]
    
    browser --> proxy
    proxy --> server
    ```
    
    /// tip
    
    The IP `0.0.0.0` is commonly used to mean that the program listens on all the IPs available in that machine/server.
    
    ///
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 16.4K bytes
    - Click Count (0)
Back to Top