---------------------------------------------------------------------- This is the API documentation for the nspkg.core library. ---------------------------------------------------------------------- ## Classes Core classes Config(host: str, port: int = 5432) Configuration holder for connections. Parameters ---------- host Server hostname. port Port number. Examples -------- >>> cfg = Config("localhost", 5432) >>> cfg.host 'localhost' ## Functions Public functions connect(config: nspkg.core.Config) -> str Establish a connection using the given config. Parameters ---------- config The connection configuration. Returns ------- str Connection URI string. disconnect(connection: str) -> bool Close an active connection. Parameters ---------- connection The connection string to close. Returns ------- bool True if disconnection succeeded.