Advanced Usage#
This document covers some of Cybsi Cloud SDK more advanced features.
Timeouts and limits#
You can explicitly configure connect/read/write timeouts and maximum of number connection for Client through the Config data class.
In the example below you can see how it can be used:
from cybsi.cloud import Client, Config, Limits, Timeouts
if __name__ == "__main__":
# Set custom timeouts and limits of HTTP client
limits = Limits(max_connections=100, max_keepalive_connections=20)
timeouts = Timeouts(default=3.0)
config = Config(
api_key="the cryptic string", ssl_verify=False, timeouts=timeouts, limits=limits
)
client = Client(config)
# then use client as usual