Configure base URL and timeout for the Python SDK
VelaManagementClient( client_secret: str, *, base_url: str = "https://api.vela.dev", timeout: float = 30.0, )
client = VelaManagementClient( os.environ["VELA_CLIENT_SECRET"], base_url="http://localhost:3000", )
client = VelaIngestClient( os.environ["VELA_API_KEY"], timeout=5.0, # 5 seconds )
# Sync with VelaManagementClient(secret) as client: apps = client.apps.list() # Connection is closed automatically # Async async with AsyncVelaManagementClient(secret) as client: apps = await client.apps.list()
client = VelaManagementClient(secret) apps = client.apps.list() client.close() # or await client.aclose() for async