Migrate to v2
The v2 release of the Lattice SDK represents a significant breaking change from v1. If you’re an existing Lattice developer, migrate to v2 to maintain access to the latest updates, capabilities, and support for your integrations.
Determine your SDK version
If your integration uses a package from a package manager, check the version of the Lattice SDK package.
If your version starts with 1.x.x
, continue with the migration guide.
To determine your Lattice SDK version, run the following command in a terminal:
Choose between REST or gRPC
The GitHub repositories that previously hosted gRPC clients now host generated SDKs for RESTful integrations. The protocol you use will depend on your use-case. We recommend that you consider the following before making a choice:
After you’ve determined which protocol fits your use-case, follow the setup instructions for REST, or gRPC.
Choose a gRPC plugin version
If you want to generate clients compatible with Lattice SDK v1, use the versions listed in the following table:
Python
We do not recommend using betterproto
moving forward, as the plugin does not support type Any
.
What’s next?
- Consult the API reference to explore the SDKs functionality
- Check out the sample apps to see the SDK in action