Automated Python SDK generation from OTC API documentation.
# Clone
git clone git@github.com:opentelekomcloud/gen_sdk_tooling.git
cd gen_sdk_tooling
# Create virtual environment
python -m venv .venv
source .venv/bin/activate
# Install dependencies
pip install -e ".[dev]"-
Create GitHub personal access token:
- Go to GitHub → Settings → Developer settings → Personal access tokens → Fine-grained tokens
- Generate new token with "Public repositories (read-only)" access
-
Create
.envfile:
cp .env.example .env- Add your token to
.env:
GITHUB_TOKEN=ghp_your_token_here
Scan a repository to classify RST files (endpoint vs non-endpoint):
python -m gen_sdk_tooling.parsers.scanner opentelekomcloud-docs/cloud-container-engine# Run tests
pytest
# Lint
ruff check src/
ruff format src/