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

    Representation of dict sources

    :copyright: (c) 2015-2022 by Onni Software Ltd.
    :license: New BSD License
    )AbstractSourceMemorySourceMixin)DEFAULT_SHEET_NAME)params   )
DictReader_FakeIOc                   0    e Zd ZdZdefdZd Zd Zd ZdS )
DictSourcez?
    A dictionary of one dimensional array as sheet source
    Tc                 z    || _         || _        t                      | _        || _        t          j        | fi | d S N)_DictSource__adict_DictSource__with_keysr	   _content_DictSource__sheet_namer   __init__)selfadict	with_keys
sheet_namekeywordss        k/var/www/ffwdstore.be/apps/py-env/lib/python3.11/site-packages/pyexcel/plugins/sources/pydata/dictsource.pyr   zDictSource.__init__   sE     $		&1111111    c                 t    t          | j        fd| j        i| j        }| j        |                                iS )Nr   )r   r   r   	_keywordsr   to_array)r   dict_readers     r   get_datazDictSource.get_data   sL     L
 
$($4
8<
 
 !;#7#7#9#9::r   c                     t           j        d fS r   )r   ADICT)r   s    r   get_source_infozDictSource.get_source_info%   s    |T!!r   c                 ^    | j                             |                                           d S r   )r   setvalueto_dict)r   sheets     r   
write_datazDictSource.write_data(   s&    u}}/////r   N)	__name__
__module____qualname____doc__r   r   r   r!   r&    r   r   r   r      sg         
  $0B2 2 2 2; ; ;" " "0 0 0 0 0r   r   N)r*   pyexcel.sourcer   r   pyexcel.constantsr   pyexcel.plugins.sourcesr   commonr   r	   r   r+   r   r   <module>r0      s     = < < < < < < < 0 0 0 0 0 0 * * * * * * ' ' ' ' ' ' ' '0 0 0 0 0!2 0 0 0 0 0r   