pydmt.helpers package¶
Submodules¶
pydmt.helpers.python module¶
- pydmt.helpers.python.array_indented(level: int, array: List[str], quote_char='"', comma_after=False) str [source]¶
return an array indented according to indent level :param level: :param array: :param quote_char: :param comma_after: :return:
- pydmt.helpers.python.dict_indented(level: int, dictionary: Dict[str, List[int]], quote_char='"', comma_after=False) str [source]¶
return an dict indented according to indent level :param level: :param dictionary: :param quote_char: :param comma_after: :return:
- pydmt.helpers.python.find_packages(path: str) List[str] [source]¶
A better version of find_packages than what setuptools offers This function needs to be deterministic. :param path: :return:
- pydmt.helpers.python.get_list_quoted(a_list: List[str]) str [source]¶
The exact format of this output is to be used in python code from templates, that is why the left bracket ([) does not have space following it and the same for the right bracker (]).
- pydmt.helpers.python.get_list_unquoted(a_list: List[str]) str [source]¶
The exact format of this output is to be used in python code from templates, that is why the left bracket ([) does not have space following it and the same for the right bracker (]).
- pydmt.helpers.python.hlp_source_under(folder)[source]¶
this function finds all the python packages under a folder and write the “packages” and “package_dir” entries for a python setup.py script