API Reference

py_pal.core

py_pal.datagen

class py_pal.datagen.KeySelectionType[source]

Bases: object

LAST = 'last'
MIDDLE = 'middle'
NOT_INCLUDED = 'not included'
RANDOM = 'random'
py_pal.datagen.args_growing_graphs(_range=range(2, 20, 2), directed=True, p=0.5)List[List[dict]][source]

Return list of arguments of random graphs with increasing amount of nodes.

py_pal.datagen.args_growing_graphs_with_source(_range=range(2, 20, 2))List[List[networkx.classes.graph.Graph]][source]

Return list of arguments of path graphs with increasing amount of nodes and the first node as source node.

py_pal.datagen.args_growing_lists(interval=range(- 10000, 10000), _range=range(10, 100, 10), sort=False)List[List[Any]][source]

Return lists of arguments lists of random ints with increasing length.

py_pal.datagen.args_growing_lists_with_search_key(interval=range(- 10000, 10000), _range=range(10, 100, 10), sort=False, key='not included')[source]

Return lists of arguments lists of random ints with increasing length and a search key.

py_pal.datagen.args_re_growing_strings(expression, _range=range(10, 1000, 100), chars='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')List[List[str]][source]

Return lists of argument regular expression and strings with increasing length.

py_pal.datagen.gen_growing_ints(_range=range(10, 100, 10))[source]

Return lists of argument ints with increasing value.

py_pal.datagen.gen_search_args(interval, length, sort, key)[source]
py_pal.datagen.integers(n: int, _min: int, _max: int)List[int][source]

Return sequence of N random integers between _min and _max (included).

py_pal.datagen.large_integers(n: int)List[int][source]

Return sequence of N large random integers.

py_pal.datagen.n_(n: int)int[source]

Return N.

py_pal.datagen.range_n(n: int, start: int = 0)List[int][source]

Return the sequence [start, start+1, …, start+N-1].

py_pal.datagen.strings(n: int, chars='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')str[source]

Return random string of N characters, sampled at random from chars.

py_pal.util

py_pal.util.check_positive(value)[source]
py_pal.util.escape(filename)[source]
py_pal.util.get_alt_path(path: pathlib.Path)[source]
py_pal.util.normalize_column(data_frame: pandas.core.frame.DataFrame)Tuple[pandas.core.frame.DataFrame, float][source]
py_pal.util.scale_column(data_frame: pandas.core.frame.DataFrame, scale: float)[source]
py_pal.util.set_log_level(level)[source]
py_pal.util.setup_logging(module, level=30)[source]