fortress_sdk package

Submodules

fortress_sdk.fortress_sdk module

class fortress_sdk.fortress_sdk.Buyer(api_key, ip_addr, port=8080, use_https=False)

Bases: object

Buyer object to interact with the network

Parameters:
  • api_key (str) – The API KEY from the website console

  • ip_addr (str) – The IP Address key from the website console

  • port (int) – The PORT from the website console

  • use_https (bool) – the boolean for the https toggle

get_columns(query_key=None)

Return table ddl columns

Parameters:

query_key (str) – [optional] subkey query key

Returns:

returns the list of columns

Return type:

list

get_key()

Return the sub key for this buyer

Returns:

the sub key for the instantiated buyer object

Return type:

str

get_key_list()

Return the list of sub keys for this buyer

Returns:

returns the list of sub keys

Return type:

list

print_query_history()

Pretty print the history queries with accuracy and results

query(query_key=None, query='')

Initiate the query and return the result

Parameters:
  • query_key (str) – [optional] subkey query key

  • query (str) – query string

Returns:

return result and accuracy of the query

Return type:

list,str

Module contents