Ë
    ˜V.jÈ  ã                   óv   — d Z ddlZddlmZ ddlmZ dZdZ eed¬«      Zdeej                  fd	„Z	d
„ Z
efd„Zy)z/Creating events, and event exchange definition.é    N)Úcopy)ÚExchange)ÚEventÚevent_exchangeÚget_exchangeÚ
group_fromÚceleryevÚtopic©Útypec                 óf   — |r	 ||fi |¤Žn|}d|vr|j                   |«       | ¬«       |S | |d<   |S )z¾Create an event.

    Notes:
        An event is simply a dictionary: the only required field is ``type``.
        A ``timestamp`` field will be set to the current time if not provided.
    Ú	timestamp)r   r   r   )Úupdate)r   Ú_fieldsÚ__dict__Ú__now__ÚfieldsÚevents         úUC:\xampp\htdocs\tradingbinance\backend\.venv\Lib\site-packages\celery/events/event.pyr   r      sH   € ñ ,3‰H�WÑ' Ò'¸€EØ˜%ÑØ�‰™w›y¨tˆÔ4ð €Lð ˆˆf‰Ø€Ló    c                 ó,   — | j                  dd«      d   S )z«Get the group part of an event type name.

    Example:
        >>> group_from('task-sent')
        'task'

        >>> group_from('custom-my-event')
        'custom'
    Ú-é   r   )Úsplitr   s    r   r   r   !   s   € ð �:‰:�c˜1Ó˜aÑ Ð r   c                 ó�   — t        t        «      }| j                  j                  dk(  rd|_        ||j
                  k7  r||_        |S )a8  Get exchange used for sending events.

    Arguments:
        conn (kombu.Connection): Connection used for sending/receiving events.
        name (str): Name of the exchange. Default is ``celeryev``.

    Note:
        The event type changes if Redis is used as the transport
        (from topic -> fanout).
    ÚredisÚfanout)r   r   Ú	transportÚdriver_typer   Úname)Úconnr    Úexs      r   r   r   .   s>   € ô 
ŒnÓ	€BØ‡~�~×!Ñ! WÒ,àˆŒØˆr�w‰w‚ØˆŒØ€Ir   )Ú__doc__Útimer   Úkombur   Ú__all__ÚEVENT_EXCHANGE_NAMEr   Údictr   r   r   © r   r   Ú<module>r*      sP   ðÙ 5Û Ý å ð€ð !Ð ñ Ð-°GÔ<€ð  t°T·Y±Yó ò
!ð 0ô r   