kittycad.AsyncKittyCAD
- class kittycad.AsyncKittyCAD(token=None, **kwargs)[source][source]
Bases:
AsyncClient
Async KittyCAD client class with async API interface.
- Usage:
import asyncio from kittycad import AsyncKittyCAD
- async def main():
client = AsyncKittyCAD(token=”your-api-token”) user = await client.users.get_user_self()
asyncio.run(main())
- Or with environment variable:
client = AsyncKittyCAD() # Uses KITTYCAD_API_TOKEN or ZOO_API_TOKEN
AsyncHiddenAPI - Access to hidden endpoints
Method generated by attrs for class AsyncClient.
- get_http_client()[source]
Get the underlying httpx.AsyncClient, creating it if necessary
- Return type:
AsyncClient
- with_cookies(cookies)[source]
Get a new client matching this one with additional cookies
- Return type:
- with_headers(headers)[source]
Get a new client matching this one with additional headers
- Return type: