The framework offers a number of built-in query handlers for enhancing the membership queries:
To initialize the handler:
from lightbulb.core.utils.http_handler import HTTPHandler as _HTTPHandler httphandler = _HTTPHandler(URL, REQUEST_TYPE, PARAM, BLOCK, BYPASS, PROXY_SCHEME, PROXY_HOST, PROXY_PORT, PROXY_USERNAME, PROXY_PASSWORD, USER_AGENT, REFERER)To perform a query:
httphandler.query(string)
To initialize the handler:
from lightbulb.core.utils.sql_handler import SQLHandler as _SQLHandler sqlserver = _SQLHandler(HOST, PORT, USERNAME, PASSWORD, DATABASE, PREFIX_QUERY)To perform a query:
sqlserver.query(string)
To initialize the handler:
from lightbulb.core.utils.browsersocket_hander import BrowserSocketHandler as _BrowserSocketHandler browser_socket_handler = _BrowserSocketHandler(WSPORT, WBPORT)To perform a query:
browser_socket_handler.query(string)
To initialize the handler:
from lightbulb.core.base import options_as_dictionaryTo perform a query:
module_config = options_as_dictionary(configuration)
To initialize the handler:
from lightbulb.core.base import createalphabetTo retrieve alphabet:
createalphabet()