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
Python SDK (SDKGEN-63-002)
Deterministic generator settings for the Python SDK (asyncio library).
Prereqs
STELLA_OAS_FILEpointing to the frozen OpenAPI spec.- Optional but recommended:
STELLA_OAS_EXPECTED_SHA256set to the pinned spec hash; the script will verify and emit.oas.sha256in the output. - OpenAPI Generator CLI 7.4.0 jar at
tools/openapi-generator-cli-7.4.0.jar(override withSTELLA_OPENAPI_GENERATOR_JAR). - JDK 21 available on PATH (vendored at
../tools/jdk-21.0.1+12; setJAVA_HOMEif 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.