helpers.general

General Helpers.

Functions

check_file(→ bool)

Check file_name exists based on input.

create_folder(→ None)

Create a directory.

write_output(→ None)

Take input and path and write a file.

Module Contents

helpers.general.check_file(file_name: str) bool

Check file_name exists based on input.

Parameters:

file_name (str) – file name to check

helpers.general.create_folder(directory: str) None

Create a directory.

Parameters:

directory (str) – Directory path to create

helpers.general.write_output(text: str, path: str, filename: str, ext: str = 'txt') None

Take input and path and write a file.

Parameters:
  • text (str) – text to write

  • path (str) – directory path

  • filename (str) – filename