Skip to main content
Client is the entry point of the CyborgDB Python SDK. It connects to a running CyborgDB service and creates, loads, and lists encrypted indexes.

Constructor

Parameters

api_key is the service authentication credential: the root key or a per-user cdbk_ token. It is required only when the service runs with CYBORGDB_SERVICE_ROOT_KEY set; against an unauthenticated service (the default), omit it. This is distinct from the service’s CYBORGDB_API_KEY license key. See Managing Keys.

Example Usage

TLS verification

verify_ssl decides whether the SDK checks the service’s TLS certificate:

Errors

Failed requests raise a subclass of cyborgdb.CyborgDBError chosen by HTTP status, such as NotFoundError for 404 or AuthenticationError for 401. Arguments rejected inside the SDK, before a request is sent, raise cyborgdb.ValidationError. See Errors for the full list.