Registry / auth-security / stups-zign

stups-zign

JSON →
library1.2.2pypypiunverified

OAuth2 token management CLI for obtaining and storing OAuth2 access tokens from OpenID Connect providers. Version 1.2.2 supports Python >=3.10. Developed by Zalando, no longer actively maintained.

pip install stups-zign
INSTALL
IMPORT
SIG · STUPS-ZIGN
S
stups-zign
auth-securitypythonv1.2.2
Install
2.8s avg
Import
—
Disk
26MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v1.2.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
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 26.8MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 2.8s · import 0.000s · 28MB
26MB installed
● package 26MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ZignTokenManager
✓ from zign import ZignTokenManager
✗ from zign.api import ZignTokenManager

Initialize token manager and obtain an OAuth2 token using environment variables.

from zign.api import ZignTokenManager import os # Use environment variables for credentials (common pattern) client_id = os.environ.get('ZIGN_CLIENT_ID', '') client_secret = os.environ.get('ZIGN_CLIENT_SECRET', '') url = os.environ.get('ZIGN_TOKEN_URL', 'https://example.com/oauth2/token') manager = ZignTokenManager() token = manager.get_token(url=url, client_id=client_id, client_secret=client_secret) print(token.get('access_token', 'No token retrieved'))
zign --version
Debug
Known issues
deprecatedstups-zign is in maintenance mode. The Zalando STUPS ecosystem is being phased out. Consider migrating to keyring-based token storage or using OAuth2 libraries directly.
fix
Migrate to alternative token management solutions.
affects: >=1.0.0
gotchaToken storage path defaults to ~/.zign/tokens.json. Ensure read/write permissions in that directory.
fix
Set the ZIGN_TOKEN_DIR environment variable to a custom path if needed.
affects: all
gotchaThe get_token method raises a KeyError if the required fields are missing in the response. Always check for access_token in the returned dict.
fix
Use .get('access_token') and handle missing token gracefully.
affects: all
Upgrade
Version history
1.2.2latest on PyPI · released Apr 22, 2026
Audit
Dependencies
python-dateutilrequiredUsed for token expiry parsing
requestsrequiredHTTP client for OAuth2 requests
clickrequiredCLI framework
Agent activity
27 hits · last 30 days
node
22
Anthropic
1
OpenAI (training)
1
Resources
stups-zign — pip install stups-zign · libregistry