def __init__(self, path, buffsize=<NUM_LIT>, exclude=None):
self.path = path<EOL>self.name = os.path.basename(path) + "<STR_LIT>"<EOL>self.exclude = exclude<EOL>self._finished = <NUM_LIT:0><EOL>self._want = <NUM_LIT:0><EOL>self._data = bytes()<EOL>self._add = self.event_class()<EOL>self._result = self.event_class()<EOL>self._tarfile = self.tarfile_class(  <EOL>fileobj=self,<EOL>mode="<STR_LIT>",<EOL>bufsize=buffsize<EOL>)<EOL>self._th = self.thread_class(target=self.fill)<EOL>self._th.start()<EOL>
Internal tarfile object will be created, and compression will start
on a thread until buffer became full with writes becoming locked until
a read occurs.

:param path: local path of directory whose content will be compressed.
:type path: str
:param buffsize: size of internal buffer on bytes, defaults to 10KiB
:type buffsize: int
:param exclude: path filter function, defaults to None
:type exclude: callable