Library settings¶
The following functions define the behavior of the library
Logging and progress bars¶
-
set_progress
(how)[source]¶ Enables or disables the progress bars for the loading, writing and downloading of datasets
Parameters: how – True if you want the progress bar, False otherwise Returns: None Example:
import gmql as gl gl.set_progress(True) # abilitates progress bars # ....do something... gl.set_progress(False) # removes progress bars # ....do something...
Execution Mode¶
Master Configuration¶
-
set_master
(master: str)[source]¶ Set the master of the PyGMQL instance. It accepts any master configuration available in Spark.
Parameters: master – master configuration Returns: None
-
get_configuration
()[source]¶ Returns the configurations of the current PyGMQL instance
Returns: a Configuration object