
    DhI                     |    d dl Z d dlZd dlmZmZmZ  e j
                  e      Z G d dej                        Z	dgZ
y)    N)ffivips_lib
_to_stringc                   .     e Zd ZdZ fdZd Zd Z xZS )
Connectionz)The abstract base Connection class.

    c                 ,    t         t        |   |       y )N)superr   __init__)selfpointer	__class__s     t/var/www/fastuser/data/www/generator.snapmosaic.io/flask_app/venv/lib/python3.12/site-packages/pyvips/vconnection.pyr
   zConnection.__init__   s    j$(1    c                     t        j                  d| j                        }t        j                  |      }|t         j
                  k(  ryt        |      S )zlGet the filename associated with a connection. Return None if there
        is no associated file.

        VipsConnection *N)r   castr   r   vips_connection_filenameNULLr   r   sor   s      r   filenamezConnection.filename   sC     XX($,,733B7chhg&&r   c                     t        j                  d| j                        }t        j                  |      }|t         j
                  k(  ryt        |      S )zZMake a human-readable name for a connection suitable for error
        messages.

        r   N)r   r   r   r   vips_connection_nickr   r   r   s      r   nickzConnection.nick   sC     XX($,,7//3chhg&&r   )__name__
__module____qualname____doc__r
   r   r   __classcell__)r   s   @r   r   r   	   s    2''r   r   )loggingpyvipsr   r   r   	getLoggerr   logger
VipsObjectr   __all__ r   r   <module>r'      s?      , ,			8	$!'"" !'H .r   