Python package to interact with SGConnect
You can install this package by using Pypi:
pip install pysgconnect
from pysgconnect import SGConnectAuth
from requests import Session
session = Session()
# Do not hardcode your credential directly in your scripts, use a secure Vault solution instead
client_id =
client_secret =
session.auth = SGConnectAuth(client_id, client_secret, scopes=['myscope'], env='PRD')
request = session.get('https://api.sgmarkets.com/foo/v1/bar')
By default, no proxies are configured.
proxies = {'https': '...', 'http': '...'}
session.auth = SGConnectAuth(client_id, client_secret, scopes=['...'], proxies=proxies)
pip install -e .