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 .

Metadata

Release files for pysgconnect 2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysgconnect 2.4
File Size Uploaded
pysgconnect-2.4.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysgconnect 2.4
File Interpreter ABI Platform
pysgconnect-2.4-py3-none-any.whl Python 3 none any Details

Total release size: 16.6 kB

Release files / pysgconnect-2.4.tar.gz

Download URL pysgconnect-2.4.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2910a12287c5ef7b448b23bc9aca11bf5cfb1727fa000f52fe102690eec242bd
BLAKE2b-256 checksum
How to use checksums
bfd24c1082dcaf7e53a748423cb617551ced8450bf6f6469816776d6a2611058
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pysgconnect-2.4-py3-none-any.whl

Download URL pysgconnect-2.4-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3abeaf14eb6bc9bf2fa61569b7e60c52744fd510f294d8ac733e2781f488c12a
BLAKE2b-256 checksum
How to use checksums
178df30f5972c1b2cc71a38f8fc3c1b4ccebd48f3f85f973196777e8776af93b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

2.4 This release

2 release files

2.3

2 release files

2.2.2

1 release file

2.2.1

1 release file

1.2

1 release file

1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page