helper classes

class stakk.meta_handler.Stack[source]

Bases: object

internal object for storing function dictionary

add_cli(cli_obj)[source]

adds a cli object to the stack

add_func(stack: str, func)[source]

registers a function to the function dictionary

get_stack(stack: str) dict[source]

retrieve functions from specific stack

class stakk.cli_handler.CLI(desc: str)[source]

Bases: object

object designed for swift module CLI configuration

add_funcs(func_dict)[source]

add registered functions to the cli

static choice_type(value, choices)[source]

custom type for checking types on provided choices.

static custom_partial(func, **partial_kwargs)[source]

partial function wrapper which retains the original function’s name and doc string.

parse()[source]

initialize parsing args

static type_list(value)[source]

custom type for list annotation

class stakk.bench_handler.Benchy[source]

Bases: object

decorator class for collecting benchmark reports

func_meta(data)[source]

collect args / kwargs meta info & summarize inputs

static summarize(data)[source]

summarize iterable data