o
    1Xxi{                     @   s^   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dZd	ed
ededefddZdS )    N)Tuple)UUIDz?persistent:\/\/(?P<tenant>.+)\/(?P<namespace>.+)\/(?P<topic>.+)
topic_namereturnc                 C   s:   t 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
    r   Y/home/air/biblejyuku/back/venv/lib/python3.10/site-packages/chromadb/ingest/impl/utils.pyparse_topic_name   s   r   r   r   collection_idc                 C   s   d|  d| dt | S )Nzpersistent:///)str)r   r   r   r   r   r   create_topic_name   s   r   )	r	   typingr   uuidr   r   r   r   r   r   r   r   r   <module>   s    