o
    w¨Êhœ  ã                   @   s4   d Z ddlmZmZ ddlmZ G dd„ deƒZdS )zß
    pyexcel_io.fileformat.tsvz
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    The lower level tsvz file format handler.

    :copyright: (c) 2014-2017 by Onni Software Ltd.
    :license: New BSD License, see LICENSE for more details
é    )ÚFILE_FORMAT_TSVZÚKEYWORD_TSV_DIALECTé   )ÚCSVZipBookReaderc                   @   s(   e Zd ZdZdd„ Zdd„ Zdd„ ZdS )	ÚTSVZipBookReaderzb read zipped tab separated value file

    it supports single tsv file and mulitple tsv files
    c                 C   s   t  | ¡ t| _d S )N)r   Ú__init__r   Ú
_file_type)Úself© r
   úI/var/www/html/env/lib/python3.10/site-packages/pyexcel_io/readers/tsvz.pyr      s   

zTSVZipBookReader.__init__c                 K   ó    t |d< tj| |fi |¤Ž d S ©NÚdialect)r   r   Úopen)r	   Ú	file_nameÚkeywordsr
   r
   r   r      ó   zTSVZipBookReader.openc                 K   r   r   )r   r   Úopen_stream)r	   Úfile_contentr   r
   r
   r   r      r   zTSVZipBookReader.open_streamN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r
   r
   r
   r   r      s
    r   N)r   Úpyexcel_io.constantsr   r   Úcsvzr   r   r
   r
   r
   r   Ú<module>   s    	