MCPcopy Create free account
hub / github.com/enviodev/hypersync-client-python / ClientConfig

Class ClientConfig

hypersync/__init__.py:725–746  ·  view source on GitHub ↗

Configuration for the hypersync client.

Source from the content-addressed store, hash-verified

723
724@dataclass
725class ClientConfig:
726 """Configuration for the hypersync client."""
727
728 # HyperSync server URL.
729 url: Optional[str] = None
730 # HyperSync server API token.
731 api_token: Optional[str] = None
732 # Milliseconds to wait for a response before timing out.
733 http_req_timeout_millis: Optional[int] = None
734 # Number of retries to attempt before returning error.
735 max_num_retries: Optional[int] = None
736 # Milliseconds that would be used for retry backoff increasing.
737 retry_backoff_ms: Optional[int] = None
738 # Initial wait time for request backoff.
739 retry_base_ms: Optional[int] = None
740 # Ceiling time for request backoff.
741 retry_ceiling_ms: Optional[int] = None
742 # Deprecated: use api_token instead. Will be removed in a future release.
743 bearer_token: Optional[str] = None
744 # Whether to proactively sleep when the rate limit is exhausted instead of
745 # sending requests that will be rejected with 429. Default: True.
746 proactive_rate_limit_sleep: Optional[bool] = None
747
748
749class QueryResponseData(object):

Callers 10

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
collect_eventsFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected