Skip to main content

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')

Corporate proxy

By default, no proxies are configured.

proxies = {'https': '...', 'http': '...'}
session.auth = SGConnectAuth(client_id, client_secret, scopes=['...'], proxies=proxies)

Development

pip install -e .

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysgconnect-2.4.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysgconnect-2.4-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file pysgconnect-2.4.tar.gz.

File metadata

  • Download URL: pysgconnect-2.4.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysgconnect-2.4.tar.gz
Algorithm Hash digest
SHA256 2910a12287c5ef7b448b23bc9aca11bf5cfb1727fa000f52fe102690eec242bd
MD5 0733d8f96c8c3aac5bd8b8e3438ee299
BLAKE2b-256 bfd24c1082dcaf7e53a748423cb617551ced8450bf6f6469816776d6a2611058

See more details on using hashes here.

File details

Details for the file pysgconnect-2.4-py3-none-any.whl.

File metadata

  • Download URL: pysgconnect-2.4-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysgconnect-2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3abeaf14eb6bc9bf2fa61569b7e60c52744fd510f294d8ac733e2781f488c12a
MD5 50129082dae76fc8de957d0a8c6e8456
BLAKE2b-256 178df30f5972c1b2cc71a38f8fc3c1b4ccebd48f3f85f973196777e8776af93b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.4 This release

2 files

2.3

2 files

2.2.2

1 file

2.2.1

1 file

1.2

1 file

1.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page