[FEATURE] Enhance StackQL
Constructor for Improved Usability
#19
Labels
enhancement
New feature or request
StackQL
Constructor for Improved Usability
#19
Description
The
StackQL
class requires a refactor to separate read-only parameters and constructor arguments, as well as update and enhance its functionality regarding output formatting and argument handling, particularly whenserver_mode
is set toFalse
.Detailed Changes
1. Changes to Read-Only Parameters
server_mode=False
:version
params
bin_path
sha
auth
2. Removal and Replacement of Arguments
parse_json
and replace it withoutput
which accepts the following options:dict
(default)pandas
csv
(only ifserver_mode=False
)3. Additional Argument Handling
When
output='csv'
, introduce additional parameters:delimiter
: Defaults to,
.hide_headers
: Defaults toFalse
.If
server_mode=False
, allow additional configuration through the following arguments:api_timeout
: Default 45, 0 for no timeoutproxy_host
: HTTP proxy host, default Noneproxy_password
: HTTP proxy password, default Noneproxy_port
: Int, HTTP proxy port, default -1proxy_scheme
: HTTP proxy scheme, default "http"proxy_user
: Default Nonemax_results
: Max results per HTTP request, default -1page_limit
: Max pages of results per resource, default 20max_depth
: Max depth for indirect queries, default 5Proposed Docstring Update
The text was updated successfully, but these errors were encountered: