wt z d Z ddlZddlZddlmZmZmZmZmZm Z m Z ddlZddlZddl Z ddlZ ddlZddlZddlmZmZmZmZmZmZmZ ddlmZmZmZ ddlmZ dej dej j Z!dej de j" # Z$ G d d Z% G d de% Z& G d de% Z'dS )a{ ============================ WebServices Client API ============================ This class provides a client API for all the GeoIP2 Precision web service end points. The end points are Country, City, and Insights. Each end point returns a different set of data about an IP address, with Country returning the least data and Insights the most. Each web service end point is represented by a different model class, and these model classes in turn contain multiple record classes. The record classes have attributes which contain data about the IP address. If the web service does not return a particular piece of data for an IP address, the associated attribute is not populated. The web service may not return any information for an entire record, in which case all of the attributes for that record class will be empty. SSL --- Requests to the web service are always made with SSL. N)AnyDictcastListOptionalTypeUnion)AddressNotFoundErrorAuthenticationErrorGeoIP2Error HTTPErrorInvalidRequestErrorOutOfQueriesErrorPermissionRequiredError)CityCountryInsights) IPAddresszGeoIP2-Python-Client/ c e Zd ZU eed<