o
    !h"                     @   sl   d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZ e eZdefd	d
ZdS )    N)Any)print)Progress)	APIClient)is_logged_in)handle_http_errorsreturnc               
   C   s   t  s	td d S t L} tddd'}t|dd | d}|  W d    n1 s.w   Y  W d    n1 s=w   Y  | }td|d	  d
 W d    d S 1 s[w   Y  d S )Nz<No credentials found. Use [blue]`fastapi login`[/] to login.u   ⚡ Fetching profileT)title	transient )messagez	/users/meu
   ⚡ [bold]emailz[/bold])r   r   r   r   r   getraise_for_statusjson)clientprogressresponsedata r   c/var/www/html/pro-man-master/venv/lib/python3.10/site-packages/fastapi_cloud_cli/commands/whoami.pywhoami   s   

"r   )loggingtypingr   richr   rich_toolkit.progressr   fastapi_cloud_cli.utils.apir   fastapi_cloud_cli.utils.authr   fastapi_cloud_cli.utils.clir   	getLogger__name__loggerr   r   r   r   r   <module>   s    
