feat(stainless): generate config via script

This commit is contained in:
Ashwin Bharambe 2025-11-14 16:33:12 -08:00
parent 5fe6098350
commit 38ba5bfb94
6 changed files with 918 additions and 193 deletions

View file

@ -11,6 +11,13 @@ This module provides functionality to generate OpenAPI specifications
from FastAPI applications.
"""
from .main import generate_openapi_spec, main
__all__ = ["generate_openapi_spec", "main"]
def __getattr__(name: str):
if name in {"generate_openapi_spec", "main"}:
from .main import generate_openapi_spec as _gos
from .main import main as _main
return {"generate_openapi_spec": _gos, "main": _main}[name]
raise AttributeError(name)