class documentation

class Timeout:

View In Hierarchy

Timeout configuration.

Usage:

Timeout(None) # No timeouts. Timeout(5.0) # 5s timeout on all operations. Timeout(None, connect=5.0) # 5s timeout on connect, no other timeouts. Timeout(5.0, connect=10.0) # 10s timeout on connect. 5s timeout elsewhere. Timeout(5.0, pool=None) # No timeout on acquiring connection from pool.

# 5s timeout elsewhere.
Method __eq__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method as​_dict Undocumented
Instance Variable connect Undocumented
Instance Variable pool Undocumented
Instance Variable read Undocumented
Instance Variable write Undocumented
def __eq__(self, other):

Undocumented

Parameters
other:typing.AnyUndocumented
Returns
boolUndocumented
def __init__(self, timeout=UNSET, *, connect=UNSET, read=UNSET, write=UNSET, pool=UNSET):

Undocumented

Parameters
timeout:typing.Union[TimeoutTypes, UnsetType]Undocumented
connect:typing.Union[None, float, UnsetType]Undocumented
read:typing.Union[None, float, UnsetType]Undocumented
write:typing.Union[None, float, UnsetType]Undocumented
pool:typing.Union[None, float, UnsetType]Undocumented
def __repr__(self):

Undocumented

Returns
strUndocumented
def as_dict(self):

Undocumented

Returns
typing.Dict[str, typing.Optional[float]]Undocumented
connect: typing.Optional[float] =

Undocumented

pool: typing.Optional[float] =

Undocumented

read: typing.Optional[float] =

Undocumented

write: typing.Optional[float] =

Undocumented