westyx-nexus-sdk package is hosted on the GitLab PyPI Package Registry. It is public - no token is required to install.
1. Configure pip to look at the registry
The simplest option is to set an extra index URL globally for your user account:requirements.txt:
No token is required - the registry is public.
2. Install
Requirements
- Python 3.11 or newer
- httpx >= 0.25 (pulled in automatically; the only runtime dependency)
- (optional) Django 4.2+, FastAPI 0.100+, Flask 2.3+ - only required if you use the matching framework adapter
Importing
Verifying connectivity
Before writing any code, confirm your endpoint and API key work with a plaincurl:
configs, secrets, and flags. An HTTP 401 means the key is wrong; HTTP 404 means the slug is wrong.
To watch the live SSE stream:
event:resync arrive within a second. Press Ctrl+C to stop.
Troubleshooting
Could not find a version that satisfies the requirement westyx-nexus-sdk- pip didn’t see the GitLab index. Confirmpip config get global.extra-index-urlreturns your registry URL.ModuleNotFoundError: No module named 'westyx_nexus.django'- you didn’t install thedjangoextra. Runpip install "westyx-nexus-sdk[django]".- SSL / proxy errors - typical behind a corporate firewall. Ensure your build agents can reach
gitlab.comdirectly, or setHTTPS_PROXYappropriately.
