
    TOg                        % S SK r S SKrS SKrS SKJrJrJr  \R                  " \5      r	\R                  " \ R                  R                  SS5      S9  Sr\\S'    " S S	5      r\S
:X  a   Sr\\S'   \" \S9r\" \R(                  5        gg)    N)ListDictAnyLOGLEVELINFO)levela@  
{
  "ignore_returncode": {
    "type": "bool",
    "default": false,
    "optional": true,
    "help": "if the whois command fails with code 1 still process the data returned as normal."
  },
  "force": {
    "type": "bool",
    "default": false,
    "optional": true,
    "help": "Don't use cache."
  },
  "verbose": {
    "type": "bool",
    "default": false,
    "optional": true,
    "help": "print relevant information on steps taken to standard error"
  },
  "with_cleanup_results": {
    "type": "bool",
    "default": false,
    "optional": true,
    "help": "cleanup lines starting with % and REDACTED FOR PRIVACY"
  },
  "internationalized": {
    "type": "bool",
    "default": false,
    "optional": true,
    "help": "if true convert with internationalizedDomainNameToPunyCode()."
  },
  "include_raw_whois_text": {
    "type": "bool",
    "default": false,
    "optional": true,
    "help": "if reqested the full response is also returned."
  },
  "return_raw_text_for_unsupported_tld": {
    "type": "bool",
    "default": false,
    "optional": true,
    "help": ""
  },
  "parse_partial_response": {
    "type": "bool",
    "default": false,
    "optional": true,
    "help": "try to parse partial response when cmd timed out (stdbuf should be in PATH for best results)"
  },
  "simplistic": {
    "type": "bool",
    "default": false,
    "optional": true,
    "help": "when simplistic is true we return null for most exceptions and dont pass info why we have no data."
  },
  "withRedacted": {
    "type": "bool",
    "default": false,
    "optional": true,
    "help": "show redacted output default no redacted data is shown"
  },
  "cmd": {
    "type": "str",
    "optional": true,
    "default": "whois",
    "help": "specify the path to the cli whois you want to use."
  },
  "cache_file": {
    "type": "str",
    "optional": true,
    "default": null,
    "help": "Use file to store cache not only memory."
  },
  "server": {
    "type": "str",
    "optional": true,
    "default": null,
    "help": "use this whois server for making this query: Linux/Mac: 'whois -h <server> <domain>' Windows: 'whois.exe <domain> <server>'"
  },
  "cache_age": {
    "type": "int",
    "optional": true,
    "default": 172800,
    "help": "Cache expiration time for given domain in seconds 60*60*48 (48 hours)"
  },
  "slow_down": {
    "type": "int",
    "optional": true,
    "default": 0,
    "help": "Time [s] it will wait after you query WHOIS database."
  },
  "timeout": {
    "type": "float",
    "optional": true,
    "default": 30.0,
    "help": "timeout in seconds for the whois command to return a result."
  },
  "tryInstallMissingWhoisOnWindows": {
    "type": "bool",
    "default": false,
    "optional": true,
    "help": "allow auto install of sysinternals whois on windows if no whois found"
  },
  "shortResponseLen": {
    "type": "int",
    "optional": true,
    "default": 5,
    "help": "The number of lines we consider a short response."
  },
  "withPublicSuffix": {
    "type": "bool",
    "default": false,
    "optional": true,
    "help": "if lib 'tld' is installed add tld info based on get_tld(); fake the tld if needed"
  },
  "extractServers": {
    "type": "bool",
    "default": false,
    "optional": true,
    "help": "try to extract the whois servers from the whois output (uses --verbose)"
  },
  "stripHttpStatus": {
    "type": "bool",
    "default": false,
    "optional": true,
    "help": "strip https://icann.org/epp# from status response"
  },
  "noIgnoreWww": {
    "type": "bool",
    "default": false,
    "optional": true,
    "help": "if set to true we skip the strip www action"
  }
}
ParamsStringJsonc                      \ rS rSr% \\\4   \S'   \\\4   \S'   \\	\\
S.r\\\4   \S'   S\\   4S jrS\\   S	\\\4   SS
4S jrS\\   SS
4S jrS	\SS
4S jrS\S\4S jrS\S\SS
4S jrS\S\4S jrS\S\SS
4S jrSrg
)ParameterContext   paramsvalue)intfloatstrboolKTreturnc                     / nU R                   R                  5        H?  u  p#SU;   a  US   U R                  U'   M  UR                  U5        S U R                  U'   MA     U$ )Ndefault)r   itemsr   append)self	mandatoryiks       c/Users/admin/workspace/ai/Jarvis/env/lib/python3.13/site-packages/whois/context/parameterContext.pyloadDefaultsParameterContext.loadDefaults   s[    !	KK%%'DAA~ !)

1  # $

1 (     r   kwargsNc                    UR                  5        H  u  p4X0R                  ;  a  SU S3n[        U5      eU R                  U   R                  S5      nUc  SU SU 3n[        U5      eUc  M^  [	        X@R
                  U   5      (       d  SU SU SU 3n[        U5      eX@R                  U'   X1;   d  M  XR                  U5      	 M     g Nzignore parameter 'z4':you specified a parameter we do not currently knowtypezunknown type: z for z, )r   r   	TypeErrorget
isinstancer   r   index)r   r   r!   namer   msgts          r   addArgsParameterContext.addArgs   s    
 "<<>KD;;&*4&0den$D!%%f-Ay&qctf5n$  !%44*1#U4&5'BC#C.(#(

4 $!//$"78% *r    c                 T    [        U5      S:w  a  S[        U5       3n[        U5      eg )Nr   zmissing mandatory parametrs: )lensorted
ValueError)r   r   r*   s      r   validateAllMandatoryNowKnown-ParameterContext.validateAllMandatoryNowKnown   s1     y>Q1&2C1DECS/! r    c                     [         R                  " [        5      U l        0 U l        U R                  5       nU R                  " U40 UD6  U R                  U5        g )N)jsonloadsr	   r   r   r   r,   r2   )r   r!   r   s      r   __init__ParameterContext.__init__   sI     jj!12
#002	Y)&))))4r    r)   c                 H    US;   a  U R                   $ U R                  U5      $ Nr   r   )r)   r&   r   r)   s     r   __getattr__ParameterContext.__getattr__   s#    &&99xx~r    c                 `    US;   a  [         R                  XU5        g U R                  X5        g r:   )object__setattr__set)r   r)   r   s      r   rA   ParameterContext.__setattr__   s'    &&t51HHT!r    c                     XR                   ;   a  U R                   U   $ [        SU R                  R                   SU S35      e)N'z' object has no attribute ')r   AttributeError	__class____name__r<   s     r   r&   ParameterContext.get   sD    ::::d##q!8!8 99TUYTZZ[\]]r    c                 V   XR                   ;  a  SU S3n[        U5      eXR                   ;   az  U R                   U   R                  S5      nUc  SU SU 3n[        U5      eUbB  [        X R                  U   5      (       d  SU SU SU 3n[        U5      eX R
                  U'   g g g r#   )r   r%   r&   r'   r   r   )r   r)   r   r*   r+   s        r   rB   ParameterContext.set   s    {{"&tf,`aCC. ;;D!%%f-Ay&qctf5n$ !%44*1#U4&5'BC#C.(#(

4 	 ! r    r;   )rH   
__module____qualname____firstlineno__r   r   r   __annotations__r   r   r   r   r   r   r,   r2   r7   r=   rA   r&   rB   __static_attributes__ r    r   r   r      s   cNS> 	BS#X d3i 999 sCx.9 
	92"9" 
"	5	5 
	5  
" "C "D "^ ^ ^
) )C )D )r    r   __main__zhaha.hadomain)rS   )osloggingr5   typingr   r   r   	getLoggerrH   logbasicConfigenvironr&   r	   r   rO   r   rS   pcprintr   rQ   r    r   <module>r]      s    
    !   "**..V< =G # GT`) `)H zFC		(B	"((O r    