def __init__(self, host, auth=None, insecure=False, auth_host=None, tlsverify=True):<EOL>
self._base_url = ('<STR_LIT:http>' if insecure else '<STR_LIT>') + '<STR_LIT>' + host + '<STR_LIT>'<EOL>self._host = host<EOL>self._auth = auth<EOL>self._insecure = insecure<EOL>self._auth_host = auth_host<EOL>self._token = None<EOL>self._headers = {}<EOL>self._repo = None<EOL>self._sessions = [requests]<EOL>self._tlsverify = tlsverify<EOL>
:param host: Host name of registry. Can contain port numbers. e.g. ``registry-1.docker.io``, ``localhost:5000``.
:type host: str

:param auth: Authentication function to be called whenever authentication to the registry is required. Receives the :class:`DXFBase` object and a HTTP response object. It should call :meth:`authenticate` with a username, password and ``response`` before it returns.
:type auth: function(dxf_obj, response)

:param insecure: Use HTTP instead of HTTPS (which is the default) when connecting to the registry.
:type insecure: bool

:param auth_host: Host to use for token authentication. If set, overrides host returned by then registry.
:type auth_host: str

:param tlsverify: When set to False, do not verify TLS certificate. When pointed to a `<ca bundle>.crt` file use this for TLS verification. See `requests.verify <http://docs.python-requests.org/en/latest/user/advanced/#ssl-cert-verification>`_ for more details.
:type tlsverify: bool or str