Lesson 6.1: Driver Overview

TypeDB Drivers are available in two flavors: using the GRPC endpoint or using the HTTP endpoint.

GRPC drivers are higher-performance and can handle sending large volumes of data between driver and server, since GRPC uses HTTP2 streams under the hood. However, GRPC drivers are not (yet) available in all languages and don’t run directly in web-applications.

TypeDB’s HTTP endpoint is documented in the TypeDB HTTP API reference page and can be used directly (through curl or your favorite HTTP library). Additionally, there is a HTTP driver available for Typescript, which abstracts away the HTTP API to a large degree and gives you a similar library to work with as the GRPC driver.

All driver libraries are intended to offer a very similar usage pattern and API. As such, examples shown in this chapter using Python translate easily to Rust, Java, or any other official TypeDB driver.

Installation

Language-specific drivers are normally available in the language’s package manager.

Check out TypeDB Drivers install page to get the Python driver via pip!