actio_python_utils.utils.open_bz2

actio_python_utils.utils.open_bz2(filename, mode='r', buff=1048576, external=2)[source]

Return a file handle to filename using pbzip2, bzip2, or b2 module

Parameters:
  • filename (str) – The filename to open

  • mode (str, default: 'r') – The mode with which to open

  • buff (int, default: 1048576) – Buffer size

  • external (int, default: 2) – External code

Return type:

Optional[TextIOWrapper]