pydmt.utils package

Submodules

pydmt.utils.digest module

pydmt.utils.digest.hex_digest_file(filename: str, algorithm_name: str) str[source]
pydmt.utils.digest.hex_digest_files(filenames: List[str], algorithm_name: str) str[source]
pydmt.utils.digest.sha1_file(filename: str) str[source]
pydmt.utils.digest.sha1_files(filenames: List[str]) str[source]
pydmt.utils.digest.sha1_files_folders(files: List[str], folders: List[str]) str[source]
pydmt.utils.digest.sha1_folders(folders: List[str]) str[source]

pydmt.utils.digester module

class pydmt.utils.digester.Digester[source]

Bases: object

add_file(filename: str) None[source]
add_files(filenames: List[str]) None[source]
add_files_folders(files: List[str], folders: List[str]) None[source]
add_folders(folders: List[str]) None[source]
get_hexdigest()[source]

pydmt.utils.filesystem module

pydmt.utils.filesystem.copy_mkdir(source: str, destination: str)[source]
pydmt.utils.filesystem.files_under_folder(folder: str, suffix: str | None = None) List[str][source]
pydmt.utils.filesystem.files_under_folders(folders: List[str]) List[str][source]
pydmt.utils.filesystem.makedirs_for_file(filename: str)[source]
pydmt.utils.filesystem.mkdir_touch(filename: str) None[source]
pydmt.utils.filesystem.touch(filename: str) None[source]

pydmt.utils.php module

pydmt.utils.php.to_php(x)[source]

pydmt.utils.python module

pydmt.utils.python.collect_bootstrap_reqs() List[str][source]
pydmt.utils.python.collect_reqs(add_dev=False) List[str][source]
pydmt.utils.python.get_install_args()[source]
pydmt.utils.python.hlp_files_under(destination_folder, pat)[source]
pydmt.utils.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.utils.python.make_hlp_project_classifiers(d)[source]
pydmt.utils.python.make_hlp_project_keywords(d)[source]
pydmt.utils.python.make_hlp_project_platforms(d)[source]
pydmt.utils.python.make_hlp_wrap(level)[source]

Module contents