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_attr(attr: str)[source]
pydmt.helpers.python.get_classifiers()[source]
pydmt.helpers.python.get_license_type()[source]
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.get_package_name()[source]
pydmt.helpers.python.get_platforms()[source]
pydmt.helpers.python.hlp_files_under(dest_folder, pat)[source]
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

pydmt.helpers.python.make_console_script(package_name: str, main: Callable)[source]

return a string suitable to be used as the section “console_scripts” of the “entry_points” parameters of setup.py.

example: “pycmdtools=pycmdtools.endpoints.main:main” :param package_name: :param main: :return:

pydmt.helpers.python.make_hlp_project_classifiers(d)[source]
pydmt.helpers.python.make_hlp_project_keywords(d)[source]
pydmt.helpers.python.make_hlp_project_platforms(d)[source]
pydmt.helpers.python.make_hlp_wrap(level)[source]

Module contents