arrakis.utils.meta

Generic program utilities

Functions

class_for_name(→ object)

Returns a class object given a module name and class name

my_ceil(a[, precision])

my_floor(a[, precision])

yes_or_no(→ bool)

Ask a yes or no question via input()

zip_equal(*iterables)

Module Contents

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.my_ceil(a, precision=0)[source]
arrakis.utils.meta.my_floor(a, precision=0)[source]
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]