Python SDK for wrapping the Google SecOps API for common use cases. Version 0.43.0, MIT license, pre-1.0 rapid development with frequent breaking changes.
pip install secopsVerified import paths — ran on the pinned version, not inferred.
Create a client using service account JSON from environment variable, then run a basic search.
Use list(results) if you need a list, or iterate directly.
Read the file contents with open().read() before passing.
Replace client.query(...) with client.search(...).
Set SERVICE_ACCOUNT_JSON environment variable or run `gcloud auth application-default login`.
Use client.search() instead of client.query().
Wrap call in list(): results = list(client.search(...))