kittycad.client.Client
- class kittycad.client.Client(base_url='https://api.zoo.dev', *, token, cookies=NOTHING, headers=NOTHING, timeout=120.0, websocket_recv_timeout=60.0, verify_ssl=True, http_client=None)[source][source]
Bases:
objectA Client which has been authenticated for use on secured endpoints of the KittyCAD API.
Method generated by attrs for class Client.
- get_http_client()[source][source]
Get the underlying httpx.Client, creating it if necessary
- Return type:
Client
- verify_ssl: str | bool | SSLContext | SSLContext[source]
- wait_for_async_operation(operation_id, timeout_seconds=60.0, poll_interval_seconds=2.0)[source][source]
Poll
/async/operations/{id}until status is completed/failed or timeout.Returns the unwrapped operation payload model when available.
- Return type:
- with_base_url(url)[source][source]
Get a new client matching this one with a new base url
- Return type:
- with_cookies(cookies)[source][source]
Get a new client matching this one with additional cookies
- Return type:
- with_headers(headers)[source][source]
Get a new client matching this one with additional headers
- Return type: