o
    ṏif                     @  s:   d Z ddlmZ ddlZddlmZ ddddddZdS )z Utilities for Python JSON Logger    )annotationsN   )MissingPackageErrorF)throw_errorextras_namenamestrr   boolr   
str | Nonereturnc                C  s&   t j| du}|s|rt| ||S )a  Determine if the given package is available for import.

    Args:
        name: Import name of the package to check.
        throw_error: Throw an error if the package is unavailable.
        extras_name: Extra dependency name to use in `throw_error`'s message.

    Raises:
        MissingPackageError: When `throw_error` is `True` and the return value would be `False`

    Returns:
        If the package is available for import.
    N)	importlibutil	find_specr   )r   r   r   	available r   S/home/ubuntu/veenaModal/venv/lib/python3.10/site-packages/pythonjsonlogger/utils.pypackage_is_available   s   
r   )r   r   r   r	   r   r
   r   r	   )__doc__
__future__r   importlib.utilr   	exceptionr   r   r   r   r   r   <module>   s    