
    Hf6                     `    d Z ddlmZmZ ddlmZ  G d dee          Z G d de          ZdS )	z
    pyexcel.plugins.sources.output_to_memory
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Representation of output file sources

    :copyright: (c) 2015-2022 by Onni Software Ltd.
    :license: New BSD License
    )AbstractSourceMemorySourceMixin)RENDERERc                   &    e Zd ZdZ	 	 	 ddZd ZdS )WriteSheetToMemoryz 
    Single sheet to memory
    Nc                     t          j        | fi | t          j        ||          | _        |r|| _        n| j                                        | _        t          j                    | _        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keywordss        j/var/www/ffwdstore.be/apps/py-env/lib/python3.11/site-packages/pyexcel/plugins/sources/output_to_memory.pyr
   zWriteSheetToMemory.__init__   sl     	11111!.y:JKK 	4'DMM N1133DM"577    c                 B     | j         j        | j        |fi | j         d S r	   )r   render_sheet_to_streamr   	_keywords)r   sheets     r   
write_datazWriteSheetToMemory.write_data$   s;    --M5	
 	
$(N	
 	
 	
 	
 	
r   )NNN)__name__
__module____qualname____doc__r
   r    r   r   r   r      sL          	8 8 8 8 
 
 
 
 
r   r   c                       e Zd ZdZd ZdS )WriteBookToMemoryz@
    Multiple sheet data source for writting back to memory
    c                 B     | j         j        | j        |fi | j         d S r	   )r   render_book_to_streamr   r   )r   books     r   r   zWriteBookToMemory.write_data0   s;    ,,M4	
 	
#'>	
 	
 	
 	
 	
r   N)r   r   r   r    r   r!   r   r   r#   r#   +   s-         
 
 
 
 
r   r#   N)r    pyexcel.sourcer   r   pyexcel.internalr   r   r#   r!   r   r   <module>r)      s     = < < < < < < < % % % % % %
 
 
 
 
): 
 
 
8
 
 
 
 
* 
 
 
 
 
r   