Install
To integrate with Lattice using the Lattice SDK, set up your credentials and environment endpoint as system variables, then install the SDK in a language, and protocol, of your choice. Lattice supports both gRPC and REST as first-class protocols:
Choosing a protocol
For more information on selecting the right protocol for your integration, see Choose a protocol.
gRPC
The gRPC examples in Lattice SDK documentation use Go, Python, and Rust.
If you’re using another language, you can choose from up to 16 languages and various plugins to get your Lattice SDK artifacts for gRPC.
Before you begin
- If you are using Lattice Sandboxes, complete the steps in Developing with Lattice Sandboxes to create an environment and generate your credentials.
Get the SDK for gRPC
Lattice provides a gRPC SDK in a variety of languages and plugins using the Lattice SDK Buf Schema Registry. The following steps show how to get the Lattice SDK for gRPC in Go, Python, and Rust:
Go
Python
Rust
Install the latest version of Go.
Create a new folder and initialize your project:
This generates a go.mod file in the project directory.
Install the generated Lattice SDK gRPC stubs using the grpc/go plugin:
This installs the generated Lattice SDK gRPC stubs along with the required gRPC runtime dependencies and creates a go.sum file in the project directory.
For additional information on using the Buf Schema Registry, refer to the Buf documentation.
Get the SDK for REST
Lattice provides a REST SDK in the following languages:
Go
Java
Python
TypeScript
Download the latest version of Go.
What’s next?
- Start building and publishing entities into Lattice.
- Learn how to watch entities, stream specific components, and apply filters.
- See the Lattice sample applications.