starterpyth.utils

several utility functions:
  • unicode function to be compatible with both Python 2 & 3
  • copy of the os.walk() function, adapted to pkg_resources
starterpyth.utils.normalize_str(orig_str)

Remove all Unicode-only characters and replace them by their ASCII equivalent. :param orig_str: str :return: str

starterpyth.utils.walk(module_name, dirname, topdown=True)

Copy of os.walk(). Please refer to its doc. The only difference is that we walk in a package_resource instead of a plain directory. :type module_name: basestring :param module_name: module to search in :type dirname: basestring :param dirname: base directory :type topdown: bool :param topdown: if True, perform a topdown search.