weaviate.connect
Module communication to a Weaviate instance. Used to connect to Weaviate and run REST requests.
- weaviate.connect.ConnectionV4
alias of
ConnectionAsync
- class weaviate.connect.ConnectionParams(*, http, grpc)[source]
Bases:
BaseModelCreate a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
http (ProtocolParams)
grpc (ProtocolParams)
- http: ProtocolParams
- grpc: ProtocolParams
- classmethod from_url(url, grpc_port, grpc_secure=False)[source]
- Parameters:
url (str)
grpc_port (int)
grpc_secure (bool)
- Return type:
- classmethod from_params(http_host, http_port, http_secure, grpc_host, grpc_port, grpc_secure)[source]
- Parameters:
http_host (str)
http_port (int)
http_secure (bool)
grpc_host (str)
grpc_port (int)
grpc_secure (bool)
- Return type:
- model_config = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class weaviate.connect.ProtocolParams(*, host, port, secure)[source]
Bases:
BaseModelCreate a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
host (str)
port (int)
secure (bool)
- host: str
- port: int
- secure: bool
- model_config = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].