Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 686 for printTo (0.04 sec)

  1. fastapi/cli.py

    
    def main() -> None:
        if not cli_main:  # type: ignore[truthy-function]
            message = 'To use the fastapi command, please install "fastapi[standard]":\n\n\tpip install "fastapi[standard]"\n'
            print(message)
            raise RuntimeError(message)  # noqa: B904
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Aug 02 06:03:05 UTC 2024
    - 418 bytes
    - Viewed (0)
  2. docs/en/docs/virtual-environments.md

    ```console
    $ echo "*" > .venv/.gitignore
    ```
    
    </div>
    
    /// details | What that command means
    
    * `echo "*"`: will "print" the text `*` in the terminal (the next part changes that a bit)
    * `>`: anything printed to the terminal by the command to the left of `>` should not be printed but instead written to the file that goes to the right of `>`
    * `.gitignore`: the name of the file where the text should be written
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 02 05:09:25 UTC 2025
    - 22.8K bytes
    - Viewed (0)
  3. docs_src/python_types/tutorial002_py39.py

    def get_full_name(first_name: str, last_name: str):
        full_name = first_name.title() + " " + last_name.title()
        return full_name
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 172 bytes
    - Viewed (0)
  4. docs_src/dependencies/tutorial008c_py39.py

    from fastapi import Depends, FastAPI, HTTPException
    
    app = FastAPI()
    
    
    class InternalError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except InternalError:
            print("Oops, we didn't raise again, Britney đŸ˜±")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: str = Depends(get_username)):
        if item_id == "portal-gun":
            raise InternalError(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 660 bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbFile.java

         * represents is a named pipe.
         */
        public static final int TYPE_NAMED_PIPE = 0x10;
        /**
         * Returned by {@link #getType()} if the resource this {@code SmbFile}
         * represents is a printer.
         */
        public static final int TYPE_PRINTER = 0x20;
        /**
         * Returned by {@link #getType()} if the resource this {@code SmbFile}
         * represents is a communications device.
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java

            if (message == null) {
                assertEquals(SMBProtocolDowngradeException.class.getName(), ex.toString());
            } else if (message.isEmpty()) {
                // Throwable.toString prints class + ": " (with space) even for empty string
                assertEquals(SMBProtocolDowngradeException.class.getName() + ": ", ex.toString());
            } else {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  7. docs/pt/docs/advanced/response-directly.md

    ## Utilizando o `jsonable_encoder` em uma `Response` { #using-the-jsonable-encoder-in-a-response }
    
    Como o **FastAPI** nĂŁo realiza nenhuma mudança na `Response` que vocĂȘ retorna, vocĂȘ precisa garantir que o conteĂșdo dela estĂĄ pronto para uso.
    
    Por exemplo, vocĂȘ nĂŁo pode colocar um modelo do Pydantic em uma `JSONResponse` sem antes convertĂȘ-lo em um `dict` com todos os tipos de dados (como `datetime`, `UUID`, etc) convertidos para tipos compatĂ­veis com JSON.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  8. tests/test_swagger_ui_init_oauth.py

    @app.get("/items/")
    async def read_items():
        return {"id": "foo"}
    
    
    client = TestClient(app)
    
    
    def test_swagger_ui():
        response = client.get("/docs")
        assert response.status_code == 200, response.text
        print(response.text)
        assert "ui.initOAuth" in response.text
        assert '"appName": "The Predendapp"' in response.text
        assert '"clientId": "the-foo-clients"' in response.text
    
    
    def test_response():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 09 10:54:05 UTC 2020
    - 718 bytes
    - Viewed (0)
  9. tests/test_tutorial/test_python_types/test_tutorial009_tutorial009b.py

        ],
    )
    def get_module(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.python_types.{request.param}")
        return mod
    
    
    def test_say_hi(module: ModuleType):
        with patch("builtins.print") as mock_print:
            module.say_hi("FastAPI")
            module.say_hi()
    
        assert mock_print.call_count == 2
        call_args = [arg.args for arg in mock_print.call_args_list]
        assert call_args == [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 805 bytes
    - Viewed (0)
  10. tests/test_tutorial/test_python_types/test_tutorial009c.py

        ],
    )
    def get_module(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.python_types.{request.param}")
        return mod
    
    
    def test_say_hi(module: ModuleType):
        with patch("builtins.print") as mock_print:
            module.say_hi("FastAPI")
    
        mock_print.assert_called_once_with("Hey FastAPI!")
    
        with pytest.raises(
            TypeError,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 777 bytes
    - Viewed (0)
Back to top