eval-studio-client 1.0.2__py3-none-any.whl → 1.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,11 @@ class Client:
17
17
  """Main Eval Studio client class."""
18
18
 
19
19
  def __init__(
20
- self, host: str, token_provider: Optional[h2o_authn.TokenProvider] = None
20
+ self,
21
+ host: str,
22
+ token_provider: Optional[h2o_authn.TokenProvider] = None,
23
+ verify_ssl: bool = True,
24
+ ssl_ca_cert: Optional[str] = None,
21
25
  ):
22
26
  """Initialize the client connection to Eval Studio host.
23
27
 
@@ -25,9 +29,14 @@ class Client:
25
29
  host: The Eval Studio host URL.
26
30
  token_provider: Optional TokenProvider used for authentication. If not
27
31
  provided, the client will not set any authentication headers.
32
+ verify: Whether to verify SSL certificates. Defaults to True.
33
+ ssl_ca_cert: Path to a file of concatenated CA certificates
34
+ in PEM format. If not provided, the default system CA certificates will be used.
28
35
  """
29
36
  _host = host.rstrip("/")
30
- _api_config = api.Configuration(host=_host)
37
+ _api_config = api.Configuration(host=_host, ssl_ca_cert=ssl_ca_cert)
38
+ _api_config.verify_ssl = verify_ssl
39
+
31
40
  self._api_client = api.ApiClient(configuration=_api_config)
32
41
  if token_provider is not None:
33
42
  self._api_client = _TokenApiClient(_api_config, token_provider.token)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eval-studio-client
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Project-URL: Source, https://github.com/h2oai/eval-studio/tree/main/client-py/src/
5
5
  Project-URL: Issues, https://github.com/h2oai/eval-studio/issues
6
6
  Author-email: "H2O.ai" <support@h2o.ai>
@@ -1,6 +1,6 @@
1
1
  eval_studio_client/__about__.py,sha256=7TnXVu0lNAY4UdQ_2iwTlAENGdigMUVBy6UmtWGB6sQ,30
2
2
  eval_studio_client/__init__.py,sha256=v8lXY_l4j3lAbIfW21nZFeWZX0sl4nKHbB29h2qYVU8,207
3
- eval_studio_client/client.py,sha256=khRFtcFNZHAMe1bA7SyvoLOPHVZQ2XJOZ3UB3gX8EKs,3307
3
+ eval_studio_client/client.py,sha256=fyX_QOVUIEUYrlHaJ25zuRM_xI4uzdUzxEdvymL23bk,3713
4
4
  eval_studio_client/dashboards.py,sha256=TBMiO4OvTnWYSVuj2-EBxSdKQtEAb_HXgc9gXtRnu-s,8381
5
5
  eval_studio_client/documents.py,sha256=fjsbHnqZnouu0stCf_p15RgoszkY4_gIsbX1hiw7Xv8,3076
6
6
  eval_studio_client/evaluators.py,sha256=blJlWMswIGr1u6TQDiiO-fInYVnkBT0Y02J57o8Z094,2100
@@ -481,6 +481,6 @@ eval_studio_client/api/test/test_v1_update_test_response.py,sha256=pqTwL9SgoOM9k
481
481
  eval_studio_client/api/test/test_v1_who_am_i_response.py,sha256=bNbjL5-b-4asyziW6znJhuU2yrzd9RgJa2ZiNw3e6YA,1523
482
482
  eval_studio_client/api/test/test_who_am_i_service_api.py,sha256=gYWKFamJMyVne2QaOSPz6WEkxExRuAphMGKf1nFayLU,898
483
483
  eval_studio_client/gen/openapiv2/eval_studio.swagger.json,sha256=2jOBBxQ2H2mS9C_nlqoTrTiYMmCLaUFQym6su3fXJ8I,210976
484
- eval_studio_client-1.0.2.dist-info/METADATA,sha256=khQkNMvPEvKdkWqjP5c71z-SNmj6ey3cJipV46pq_aE,718
485
- eval_studio_client-1.0.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
486
- eval_studio_client-1.0.2.dist-info/RECORD,,
484
+ eval_studio_client-1.0.3.dist-info/METADATA,sha256=cu27rEwWvjqZIqnb-65hqXx5ON8lcawvp9SnA0krgv4,718
485
+ eval_studio_client-1.0.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
486
+ eval_studio_client-1.0.3.dist-info/RECORD,,