Utilities to interact with SGConnect
Project description
pysgconnect
Python package to interact with SGConnect
Install
You can install this package by using Pypi:
pip install pysgconnect
Usage
Protect HTTP requests
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')
Development
pip install -e .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pysgconnect-2.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a4f645faede6242870f0bd779b7acac0321c216fcc63a57d4a9502f1d12798f |
|
MD5 | 1187fc1218103e651f890916b373fa5f |
|
BLAKE2b-256 | 23e03345bbd3368acf1e824ed536f24b1eb53766fd9a70bf5b49ac647c16a5a6 |