
    ui{                     d    d dl Z d dlmZ d dlmZ dZdedeeeef         fdZded	ed
edefdZdS )    N)Tuple)UUIDz?persistent:\/\/(?P<tenant>.+)\/(?P<namespace>.+)\/(?P<topic>.+)
topic_namereturnc                     t          j        t          |           }|st          d|            |                    d          |                    d          |                    d          fS )z>Parse the topic name into the tenant, namespace and topic namezInvalid topic name: tenant	namespacetopic)rematchtopic_regex
ValueErrorgroup)r   r   s     M/var/www/icac/venv/lib/python3.11/site-packages/chromadb/ingest/impl/utils.pyparse_topic_namer      sc    H[*--E ><
<<===;;x  %++k":":EKK<P<PPP    r   r	   collection_idc                 2    d|  d| dt          |           S )Nzpersistent:///)str)r   r	   r   s      r   create_topic_namer      s(    D6DDIDDM0B0BDDDr   )	r   typingr   uuidr   r   r   r   r    r   r   <module>r      s    				            PQ QsC})= Q Q Q QEc Ec E$ E3 E E E E E Er   