class documentation

class Timeout: (source)

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): (source)

Undocumented

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

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): (source)

Undocumented

Returns
strUndocumented
def as_dict(self): (source)

Undocumented

Returns
typing.Dict[str, typing.Optional[float]]Undocumented

Undocumented