def __init__(<EOL>self,<EOL>host='<STR_LIT:127.0.0.1>',<EOL>port=<NUM_LIT>,<EOL>token=None,<EOL>scheme='<STR_LIT:http>',<EOL>consistency='<STR_LIT:default>',<EOL>dc=None,<EOL>verify=True,<EOL>cert=None):
<EOL>if os.getenv('<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>host, port = os.getenv('<STR_LIT>').split('<STR_LIT::>')<EOL><DEDENT>except ValueError:<EOL><INDENT>raise ConsulException('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>% os.getenv('<STR_LIT>'))<EOL><DEDENT><DEDENT>use_ssl = os.getenv('<STR_LIT>')<EOL>if use_ssl is not None:<EOL><INDENT>scheme = '<STR_LIT>' if use_ssl == '<STR_LIT:true>' else '<STR_LIT:http>'<EOL><DEDENT>if os.getenv('<STR_LIT>') is not None:<EOL><INDENT>verify = os.getenv('<STR_LIT>') == '<STR_LIT:true>'<EOL><DEDENT>self.http = self.connect(host, port, scheme, verify, cert)<EOL>self.token = os.getenv('<STR_LIT>', token)<EOL>self.scheme = scheme<EOL>self.dc = dc<EOL>assert consistency in ('<STR_LIT:default>', '<STR_LIT>', '<STR_LIT>'),'<STR_LIT>'<EOL>self.consistency = consistency<EOL>self.event = Consul.Event(self)<EOL>self.kv = Consul.KV(self)<EOL>self.txn = Consul.Txn(self)<EOL>self.agent = Consul.Agent(self)<EOL>self.catalog = Consul.Catalog(self)<EOL>self.health = Consul.Health(self)<EOL>self.session = Consul.Session(self)<EOL>self.acl = Consul.ACL(self)<EOL>self.status = Consul.Status(self)<EOL>self.query = Consul.Query(self)<EOL>self.coordinate = Consul.Coordinate(self)<EOL>self.operator = Consul.Operator(self)<EOL>
*token* is an optional `ACL token`_. If supplied it will be used by
default for all requests made with this client session. It's still
possible to override this token by passing a token explicitly for a
request.

*consistency* sets the consistency mode to use by default for all reads
that support the consistency option. It's still possible to override
this by passing explicitly for a given request. *consistency* can be
either 'default', 'consistent' or 'stale'.

*dc* is the datacenter that this agent will communicate with.
By default the datacenter of the host is used.

*verify* is whether to verify the SSL certificate for HTTPS requests

*cert* client side certificates for HTTPS requests