+
    i                     X    R t ^ RIHtHtHtHtHt RsRsRR lt	R t
RR ltRR ltR tR# )	z>Implementation of the ipaddres-based network types adaptation
)new_typenew_array_typeregister_typeregister_adapterQuotedStringNc                   ^ RI s \        f   \        4       s\         F  p\        W4       K  	  \         P                  \         P
                  \         P                  \         P                  3 F  p\        V\        4       K  	  R# )a  
Register conversion support between `ipaddress` objects and `network types`__.

:param conn_or_curs: the scope where to register the type casters.
    If `!None` register them globally.

After the function is called, PostgreSQL :sql:`inet` values will be
converted into `~ipaddress.IPv4Interface` or `~ipaddress.IPv6Interface`
objects, :sql:`cidr` values into into `~ipaddress.IPv4Network` or
`~ipaddress.IPv6Network`.

.. __: https://www.postgresql.org/docs/current/static/datatype-net-types.html
N)
	ipaddress_casters_make_castersr   IPv4InterfaceIPv6InterfaceIPv4NetworkIPv6Networkr   adapt_ipaddress)conn_or_curscts   &  mC:\Users\petid\OneDrive\Desktop\Maestro\MAESTRO\maestro-backend\venv\Lib\site-packages\psycopg2/_ipaddress.pyregister_ipaddressr   %   sb       ?a&  %%y'>'>##Y%:%:<O,<    c                      \        RR\        4      p \        RRV 4      p\        RR\        4      p\        RRV4      pWW#.# )	e  INETzINET[]CIDRzCIDR[])r   )i  )i  )i  )r   cast_interfacer   cast_network)inetainetcidracidrs       r   r
   r
   B   sE    FFN3D7Hd3EFFL1D68T2E%%r   c                 J    V f   R # \         P                  \        V 4      4      # N)r   ip_interfacestrscurs   &&r   r   r   L   s    y!!#a&))r   c                 J    V f   R # \         P                  \        V 4      4      # r!   )r   
ip_networkr#   r$   s   &&r   r   r   S   s    yA''r   c                 *    \        \        V 4      4      # r!   )r   r#   )objs   &r   r   r   Y   s    C!!r   r!   )__doc__psycopg2.extensionsr   r   r   r   r   r   r	   r   r
   r   r   r    r   r   <module>r.      s=   4M M 	 -:&*("r   