fancytools.pystructure.headerSetter package

Submodules

fancytools.pystructure.headerSetter.headerSetter module

fancytools.pystructure.headerSetter.headerSetter.removeHeader(*args, **kwargs)[source]
fancytools.pystructure.headerSetter.headerSetter.setHeader(package_path, header_start='', header_end='', header_text='', remove_header=False, exclude_init=True, exclude_empty_files=True)[source]

Adds, modifies removes a header text in all *.py files in a python package

header_start -> string indicating the begin of the header e.g. ‘#<<<<<<<<<’ header_text -> the header text e.g. ‘#copyright John Doe 2033

#licensed under GPLv3’

header_end -> string indicating the end of the header e.g. ‘#>>>>>>>>>’

package_path -> relative or absolute path of the package to modify e.g. ‘C:...myPackage’ remove_header -> Set to True to remove the header in every py file in the package