tinyapi/application.py
def run(self, host: typing.Optional[str] = 'localhost', port: typing.Optional[int] = 5000) -> None:
        """
            This method is used to run the application.

            Parameters
            ----------
            host: `str`
                The host that will be used to run the application.
            port: `int`
                The port that will be used to run the application.
        """
        from wsgiref.simple_server import make_server

        logger.info(f"* Running on http://{host}:{port}")
        logger.info(f"* Use Ctrl+C to stop the server.")

        make_server(host, port, self.server).serve_forever()

            This method is used to run the application.

            Parameters
            ----------
            host: `str`
                The host that will be used to run the application.
            port: `int`
                The port that will be used to run the application.
        
This method is used to run the application.
Parameters

`str`
The host that will be used to run the application.
port: `int`
The port that will be used to run the application.
This method is used to run the application . Parameters ` str ` The host that will be used to run the application . port : ` int ` The port that will be used to run the application .
def run(self, host: typing.Optional[str] = 'localhost', port: typing.Optional[int] = 5000) -> None:
        from wsgiref.simple_server import make_server
        logger.info(f"* Running on http://{host}:{port}")
        logger.info(f"* Use Ctrl+C to stop the server.")
        make_server(host, port, self.server).serve_forever()
def run ( self , host : typing . Optional [ str ] = 'localhost' , port : typing . Optional [ int ] = 5000 ) -> None : from wsgiref . simple_server import make_server logger . info ( f"* Running on http://{host}:{port}" ) logger . info ( f"* Use Ctrl+C to stop the server." ) make_server ( host , port , self . server ) . serve_forever ( )
This method is used to run the application.
This method is used to run the application .
"""
            This method is used to run the application.

            Parameters
            ----------
            host: `str`
                The host that will be used to run the application.
            port: `int`
                The port that will be used to run the application.
        """
self
host
typing.Optional[str]
port
typing.Optional[int]