Client SDK for interacting with a Caido instance
Actively maintained. Last release 8 weeks ago. A safe choice.
pip install caido-sdk-client👋 Client SDK
This is the Caido client SDK for Python.
The goal of this SDK is to allow scripts to access Caido instances. It handles authentication, GraphQL and REST.
We recommend you look at the examples to learn how to use it.
import asyncio
from caido_sdk_client import AuthCacheFile, Client, PATAuthOptions
async def main():
client = Client(
"http://localhost:8080",
auth=PATAuthOptions(
pat="caido_xxxxxx",
cache=AuthCacheFile(file=".secrets.json"),
),
)
await client.connect()
viewer = await client.user.viewer()
print("Viewer:", json.dumps(dataclasses.asdict(viewer), indent=2))
asyncio.run(main())
💚 Community
Come join our Discord community and connect with other Caido users! We'd love to have you as part of the conversation and help with any questions you may have.