U
    [e                     @   s4   d Z ddlmZ G dd deZedZedZdS )z
    pyexcel.internal.plugins
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Renderer and parser plugin manager

    :copyright: (c) 2015-2022 by Onni Software Ltd.
    :license: New BSD License
    )PluginManagerc                   @   s*   e Zd ZdZdd Zd	ddZdd ZdS )
IOPluginManagerz.Generic plugin manager for renderer and parserc                 C   s   t | | d S )N)r   __init__)selfname r   Z/var/www/html/services/stratfitenv/lib/python3.8/site-packages/pyexcel/internal/plugins.pyr      s    zIOPluginManager.__init__Nc                 C   s&   d}|r|  }| j||d}||S )z$get a plugin to handle the file typeN)library)lowerZload_me_now)r   keyr	   Z_IOPluginManager__file_typeZ
plugin_clsr   r   r   get_a_plugin   s
    zIOPluginManager.get_a_pluginc                 C   s   t | j }|S )zget all supported file types)listregistrykeys)r   Z
file_typesr   r   r   get_all_file_types   s    z"IOPluginManager.get_all_file_types)N)__name__
__module____qualname____doc__r   r   r   r   r   r   r   r      s   
	r   rendererparserN)r   Z
lml.pluginr   r   ZRENDERERPARSERr   r   r   r   <module>   s   	