Client Library Overview
Sift gRPC and REST Client Libraries
Sift provides client libraries for select programming languages, offering various utilities and simplifying the process of connecting to the gRPC API. Below is a list of languages currently supported with client libraries which are all open source and can be found in Sift's Github repository:
Language | Library | Quickstart | Docs |
---|---|---|---|
Python | sift_py | example | Docs |
Rust | sift_rs | example | Docs |
Go | github.com/sift-stack/sift/go | example | Docs |
For languages without a dedicated library, you can:
- Manually compile Sift's protocol buffers for gRPC usage
- Utilize the REST API
Note About URLs for gRPC
The format for gRPC API URLs varies by library:
- Some libraries require omitting the URL scheme and port number (e.g., https://)
- Others require including these elements
Examples:
- Python's official gRPC library: URL scheme and port number should be omitted
- Rust's tonic library: URL scheme and port number must be included
Consult the documentation for your chosen library to ensure correct URL formatting.
Language | Include https:// in URL | Include Port number in URL |
---|---|---|
Python | No | No |
Rust | Yes | No |
Go | No | Yes |
gRPC Port Number
The port number to use for the gRPC URL is 443
for all environments.