utils¶
Database utility and convenience functions.
Classes¶
Silence stdout |
|
Context manager for creating temporary directories |
|
Context manager that allows to delay a KeyboardInterrupt such that it also works in subthreads. |
|
List of colors for terminal output in bash. |
Functions¶
|
Splits |
Returns True if x can be converted to an integer, False otherwise |
|
|
Reads a file f and splits it wherever |
|
Convert a list of StringIO objects to a dictionary. |
|
Convert a pandas dataframe, in which information is stored linearly to a 2D presentation. |
|
Selects rows from a dataframe based on the values of the columns |
|
Calculates the pooled standard deviation out of samples. |
|
Splits kwargs up to supply different functions with the right subset. |
|
Get the unique elements of a list |
|
Decorator to cache the result of a function |
|
Compare two dictionaries recursively to find non-matching elements |
|
Wait until a key is removed from a database. |
|
Get the file or folder in a directory that starts with a certain string |
|
Get the file or folder in a directory that ends with a certain string |
|
Flatten a nested list |
|
Concatenate a pickles dask dataframe to a pandas dataframe. |
|
Repartition a dask dataframe without generating more tasks. |
Convert the column names and index names of a dataframe to string. |
|
|
Colorizes a key based on its type. |
|
Colorize a string with a terminal color. |
|
Fetches the contents of an db and formats them as a string representing a tree structure |
|
Renames some key to indicate it’s in the process of being deleted. |
|
Starts a background process that deletes a key |
|
Check if a path is a |