Files
git.stella-ops.org/src/Sdk/StellaOps.Sdk.Generator/python
StellaOps Bot ea970ead2a
Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
sdk-generator-smoke / sdk-smoke (push) Has been cancelled
SDK Publish & Sign / sdk-publish (push) Has been cancelled
api-governance / spectral-lint (push) Has been cancelled
oas-ci / oas-validate (push) Has been cancelled
Mirror Thin Bundle Sign & Verify / mirror-sign (push) Has been cancelled
up
2025-11-27 07:46:56 +02:00
..
up
2025-11-24 20:57:49 +02:00
up
2025-11-27 07:46:56 +02:00
up
2025-11-27 07:46:56 +02:00
up
2025-11-27 07:46:56 +02:00

Python SDK (SDKGEN-63-002)

Deterministic generator settings for the Python SDK (asyncio library).

Prereqs

  • STELLA_OAS_FILE pointing to the frozen OpenAPI spec.
  • Optional but recommended: STELLA_OAS_EXPECTED_SHA256 set to the pinned spec hash; the script will verify and emit .oas.sha256 in the output.
  • OpenAPI Generator CLI 7.4.0 jar at tools/openapi-generator-cli-7.4.0.jar (override with STELLA_OPENAPI_GENERATOR_JAR).
  • JDK 21 available on PATH (vendored at ../tools/jdk-21.0.1+12; set JAVA_HOME if needed).

Generate

cd src/Sdk/StellaOps.Sdk.Generator
STELLA_OAS_FILE=ts/fixtures/ping.yaml \
STELLA_SDK_OUT=$(mktemp -d) \
STELLA_OAS_EXPECTED_SHA256=$(sha256sum ts/fixtures/ping.yaml | awk '{print $1}') \
python/generate-python.sh

Outputs land in out/python/ and are post-processed to normalize whitespace, inject the banner, copy shared helpers (sdk_hooks.py), and write .oas.sha256 with the spec hash. Override STELLA_SDK_OUT to keep the repo clean during local runs.