aistore.sdk.session_manager
aistore.sdk.session_manager
Copyright (c) 2024-2025, NVIDIA CORPORATION. All rights reserved.
Module Contents
Classes
Functions
API
Class for storing and creating requests library sessions.
Parameters:
Defines the HTTP retry strategy using urllib3.Retry.
Defaults to RetryConfig.default().http_retry, which handles transient HTTP failures.
If True, skip SSL certificate verification. Defaults to False.
Path to a CA certificate file for SSL verification. Defaults to None.
Path to a client certificate PEM file or a path pair (cert, key) for mTLS. If not provided, ‘AIS_CRT’ and ‘AIS_CRT_KEY’ environment variables will be used. Defaults to None.
Maximum number of connections per host in the connection pool. Defaults to 10.
Returns CA certificate for this session, if any.
Returns client certificate for this session, if any.
Returns retry config for this session.
Acquires an existing requests session, creating a new one if needed.
Returns whether this session’s requests skip server certificate verification.
Creates a new requests session for HTTP requests.
Returns: Session
New HTTP request Session
Set session verify value for validating the server’s SSL certificate The requests library allows this to be a boolean or a string path to the cert If we do not skip verification, the order is:
- Provided cert path
- Cert path from env var.
- True (verify with system’s approved CA list)
Returns: tuple
(verify, cert) where:
- verify: False to skip verification, a CA cert path string, or True for default system CA
- cert: None if no client cert, a path string, or a (cert_path, key_path) tuple for mTLS