weaviate-python-client icon indicating copy to clipboard operation
weaviate-python-client copied to clipboard

Allow `Union[str, AuthApiKey, AuthOIDCxxx, ...]` as `auth_credentials` inputs in connection helper functions

Open databyjp opened this issue 1 year ago • 0 comments

Propose connect_to_xx functions to optionally, take the Weaviate API key as strings

So

client = weaviate.connect_to_wcs(
    cluster_url="wcs-url-here",
    auth_credentials=weaviate.auth.AuthApiKey("key-here"),
)

Could also be:

client = weaviate.connect_to_wcs(
    cluster_url="wcs-url-here",
    auth_credentials="key-here",
)

This would be also applicable to connect_to_local also.

databyjp avatar Apr 03 '24 14:04 databyjp