
    soj                     N    d dl Z d dlZd dlmZ dedefdZdedee         fdZdS )    N)	AssetPath
asset_pathreturnc                     t          |           5 }|                                }t          j        |                                          cddd           S # 1 swxY w Y   dS )z~
    Get a random item from a txt file
    :param asset_path: The asset path
    :return: A random item from the txt file
    N)open	readlinesrandomchoicestrip)r   fileliness      /app/src/utils/file_utils.pyget_random_item_from_txtr      s     
j		 ,T  }U##))++, , , , , , , , , , , , , , , , , ,s   :AAAc                 |    t          |           5 }t          j        |          cddd           S # 1 swxY w Y   dS )zr
    Get a list from a json file
    :param asset_path: The asset path
    :return: A list from the json file
    N)r   jsonload)r   r   s     r   get_list_from_jsonr      s~     
j		 Ty                 s   155)	r   r	   src.model.enums.AssetPathr   strr   listdictr        r   <module>r      s{      / / / / / /	, 	,s 	, 	, 	, 	,9 d      r   