arrakis.utils.meta

Generic program utilities

Module Contents

Functions

class_for_name(→ object)

Returns a class object given a module name and class name

yes_or_no(→ bool)

Ask a yes or no question via input()

zip_equal(*iterables)

arrakis.utils.meta.class_for_name(module_name: str, class_name: str) object[source]

Returns a class object given a module name and class name

Parameters:
  • module_name (str) – Module name

  • class_name (str) – Class name

Returns:

Class object

Return type:

object

arrakis.utils.meta.yes_or_no(question: str) bool[source]

Ask a yes or no question via input()

Parameters:

question (str) – Question to ask

Returns:

True for yes, False for no

Return type:

bool

arrakis.utils.meta.zip_equal(*iterables)[source]