Install & Compatibility
Where this runs
tested against v1.4.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.2s · import 0.000s · 21MB
19MB installed
● package 19MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
OAuth2Client
✓ from oauth2_client import OAuth2Client
✗ from oauth2_client import OAuth2Client
Create an OAuth2 client with environment variables for credentials.
from oauth2client.client import OAuth2Client
import os
client_id = os.environ.get('OAUTH2_CLIENT_ID', '')
client_secret = os.environ.get('OAUTH2_CLIENT_SECRET', '')
redirect_uri = 'http://localhost:8000/callback'
client = OAuth2Client(
client_id=client_id,
client_secret=client_secret,
redirect_uris=[redirect_uri],
auth_uri='https://provider.com/auth',
token_uri='https://provider.com/token',
scope=['email', 'profile']
)
print('Client created:', client.client_id)
Upgrade
Version history
1.4.2latest on PyPI · released Apr 28, 2023
Audit
Dependencies
requestsrequiredHTTP client used internally for token exchange