o
    ‹¨Êh6  ã                   @   sF   d Z ddlmZmZ ddlmZ G dd„ deeƒZG dd„ deƒZdS )	zÚ
    pyexcel.plugins.sources.output_to_memory
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Representation of output file sources

    :copyright: (c) 2015-2017 by Onni Software Ltd.
    :license: New BSD License
é    )ÚAbstractSourceÚMemorySourceMixin)ÚRENDERERc                   @   s(   e Zd ZdZ			ddd„Zdd„ ZdS )ÚWriteSheetToMemoryz 
    Single sheet to memory
    Nc                 K   sF   t j| fi |¤Ž t ||¡| _|r|| _n| j ¡ | _t ¡ | _d S ©N)	r   Ú__init__r   Úget_a_pluginÚ	_rendererÚ_contentÚget_ioÚget_all_file_typesÚ
attributes)ÚselfÚ	file_typeÚfile_streamÚrenderer_libraryÚkeywords© r   úZ/var/www/html/env/lib/python3.10/site-packages/pyexcel/plugins/sources/output_to_memory.pyr      s   zWriteSheetToMemory.__init__c                 C   ó   | j j| j|fi | j¤Ž d S r   )r	   Úrender_sheet_to_streamr
   Ú	_keywords)r   Úsheetr   r   r   Ú
write_data$   ó
   ÿ
ÿzWriteSheetToMemory.write_data)NNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r      s    
ür   c                   @   s   e Zd ZdZdd„ ZdS )ÚWriteBookToMemoryz@
    Multiple sheet data source for writting back to memory
    c                 C   r   r   )r	   Úrender_book_to_streamr
   r   )r   Úbookr   r   r   r   0   r   zWriteBookToMemory.write_dataN)r   r   r   r   r   r   r   r   r   r   +   s    r   N)r   Úpyexcel.sourcer   r   Úpyexcel.internalr   r   r   r   r   r   r   Ú<module>   s
    	