kittycad.client
Classes
|
An Async Client which has been authenticated for use on secured endpoints of the KittyCAD API. |
|
A Client which has been authenticated for use on secured endpoints of the KittyCAD API. |
- class kittycad.client.AsyncClient(base_url='https://api.zoo.dev', *, token, cookies=NOTHING, headers=NOTHING, timeout=120.0, verify_ssl=True, http_client=None)[source][source]
An Async Client which has been authenticated for use on secured endpoints of the KittyCAD API.
Method generated by attrs for class AsyncClient.
- get_http_client()[source][source]
Get the underlying httpx.AsyncClient, creating it if necessary
- Return type:
AsyncClient
- 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:
- class kittycad.client.Client(base_url='https://api.zoo.dev', *, token, cookies=NOTHING, headers=NOTHING, timeout=120.0, verify_ssl=True, http_client=None)[source][source]
A 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
- 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: