sift_py.grpc

This module is primarily concerned with configuring and initializing gRPC connections to the Sift API.

Example of establishing a connection to Sift's gRPC APi:

from sift_py.grpc.transport import SiftChannelConfig, use_sift_channel

# Be sure not to include the url scheme i.e. 'https://' in the uri.
sift_channel_config = SiftChannelConfig(uri=SIFT_BASE_URI, apikey=SIFT_API_KEY)

with use_sift_channel(sift_channel_config) as channel:
    # Connect to Sift
 1"""
 2This module is primarily concerned with configuring and initializing gRPC connections to the Sift API.
 3
 4Example of establishing a connection to Sift's gRPC APi:
 5
 6```python
 7from sift_py.grpc.transport import SiftChannelConfig, use_sift_channel
 8
 9# Be sure not to include the url scheme i.e. 'https://' in the uri.
10sift_channel_config = SiftChannelConfig(uri=SIFT_BASE_URI, apikey=SIFT_API_KEY)
11
12with use_sift_channel(sift_channel_config) as channel:
13    # Connect to Sift
14```
15"""