pxblat.start_server(host: str, port: int, two_bit_file: str, server_option: ServerOption, stat: UsageStats)[source]

Start a server in blocking mode.

Parameters:
host : str

The hostname or IP address to bind the server to.

port : int

The port number to bind the server to.

two_bit_file : str

The path to the 2bit file to use for the server.

server_option : ServerOption

The options to use for the server.

stat : UsageStats

The usage statistics for the server.

Returns:

None

This function starts a server in blocking mode by calling the pystartServer function with the given arguments. The function takes the hostname, port number, 2bit file path, server options, and usage statistics as arguments. The function returns None.

Example

>>> start_server("localhost", 8080, "/path/to/2bit/file", ServerOption, UsageStats())