
    Q/Phw                         d Z ddlZddlmZ ddlmZmZmZ ddlm	Z	m
Z
 ddlmZ ddeee                  dej        fd	Zddeee                  ddfd
ZdS )z3This file add the console interface to the package.    N)Path)AnyListOptional)ProfileReport__version__)read_pandasargsreturnc                    t          j        d          }|                    dddt                      |                    ddd	d
           |                    dddd
           |                    dddd
           |                    dt          dd           |                    dt
          dd           |                    ddd
d           |                    dddd !           |                    d"t
          d#d$           |                    d%t
          d&'           |                    d(t
          d)d*d#+           |                    |           S ),zParse the command line arguments for the `ydata_profiling` binary.

    Args:
      args: List of input arguments. (Default value=None).

    Returns:
      Namespace with parsed arguments.

    z?Profile the variables in a CSV file and generate a HTML report.)descriptionz	--versionversionz	%(prog)s )actionr   z-sz--silentz$Only generate but do not open report
store_true)helpr   z-mz	--minimalz'Minimal configuration for big data setsz-ez--explorativezDExplorative configuration featuring unicode, file and image analysisz--pool_sizer   zNumber of CPU cores to use)typedefaultr   z--titlezYData Profiling ReportzTitle for the reportz--infer_dtypesFz To infer dtypes of the dataframe)r   r   r   z--no-infer_dtypesinfer_dtypesstore_falsez To read dtypes as read by pandas)destr   r   z--config_fileNzYSpecify a yaml config file. Have a look at the 'config_default.yaml' as a starting point.
input_filez<CSV file (or other file type supported by pandas) to profile)r   r   output_file?z[Output report file. If empty, replaces the input_file's extension with .html and uses that.)r   nargsr   r   )argparseArgumentParseradd_argumentr   intstr
parse_args)r
   parsers     b/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/ydata_profiling/controller/console.pyr    r    
   s    $U  F
 I/H;/H/H    
 3	     6	     S	     C1M     (#	     /	     /	     h	     K    
 j     T"""    c                    t          |           }t          |          }t          |                    d                    }|                    d          }|"t	          |                    d                    }|                    d          }t          |          }t          |fi |}|                    t          |          |           dS )zpRun the `ydata_profiling` package.

    Args:
      args: Arguments for the programme (Default value=None).
    r   r   Nz.htmlsilent)r%   )	r    varsr   popr   with_suffixr	   r   to_file)r
   parsed_argskwargsr   r   r%   dfps           r"   mainr.   c   s     T""K+Ffjj..//J**]++K*0099::ZZ!!F 
Z	 	 B 	
	 	
	 	A IId;I/////r#   )N)__doc__r   pathlibr   typingr   r   r   ydata_profiling.__init__r   r   ydata_profiling.utils.dataframer	   	Namespacer    r.    r#   r"   <module>r6      s    9 9        & & & & & & & & & & ? ? ? ? ? ? ? ? 7 7 7 7 7 7V# V#Xd3i( V#H4F V# V# V# V#r0 0xS	" 0d 0 0 0 0 0 0r#   