- class pxblat.Server(contextlib.ContextDecorator)[source]
A context manager and decorator for managing a server process.
This class can be used as a context manager or decorator to manage a server process. It starts the server with the given options, and can run it as a daemon process or block until it is ready.
- use_others¶
Whether to allow other users to access the server. Defaults to False.
- timeout¶
The number of seconds to wait for the server to start. Defaults to 60.
- Raises:¶
ValueError – If the given two_bit file or URL is invalid.
OSError – If there is an error starting the server process.
Constructors¶
- Server(host: str, port: int, two_bit: Path | str, *, ...)[source]
Initializes a gfServer object with the given parameters.
Public members¶
- property host
The hostname or IP address to bind the server to.
-
status(*, instance=
False) dict[str, str] | Status[source] Retrieves the status of the gfServer instance.
- query(intype: str, faName: str, *, isComplex: bool, isProt) str[source]
Queries the gfServer instance with the given parameters.
-
wait_ready(*, restart: bool =
False)[source] Wait server ready in block mode.
- property log_facility : str
- property max_aa_size : int
- property max_dna_hits : int
- property max_nt_size : int
- property max_trans_hits : int
- property no_simp_rep_mask : bool
- property per_seq_max : str
- property index_file : str
String representation¶