Python SDK for AI Response Ops — automate security questionnaire answers
Project description
AI Response Ops — Python SDK
Python SDK for the AI Response Ops API. Process security questionnaires through AI — KB matching + DeepSeek generation.
Install
pip install ai-response-ops
Quick start
from ai_response_ops import AIResponseOps
client = AIResponseOps(api_key="your-api-key")
result = client.process([
"Do you support SSO?",
{"question": "How often do you run penetration tests?", "id": "q2"},
])
for a in result.results:
print(f"[{a.source}] {a.question} -> {a.answer} (confidence: {a.confidence}%)")
Async
from ai_response_ops import AsyncAIResponseOps
async with AsyncAIResponseOps(api_key="your-api-key") as client:
result = await client.process(["Do you encrypt data at rest?"])
API
AIResponseOps(api_key, *, base_url, timeout, max_retries)
| Param | Default | |
|---|---|---|
api_key |
— | Your workspace API key |
base_url |
https://...public-api |
API base URL |
timeout |
60.0 |
Request timeout in seconds |
max_retries |
0 |
Retry on network errors (exponential backoff) |
.process(questions) → ProcessResponse
- Max 100 questions per request
- Questions can be
str,dict(question, id?), orQuestionobject
.health() → HealthResponse
Errors
| Error class | HTTP |
|---|---|
AuthenticationError |
401 |
PlanGateError |
402 |
RateLimitError |
429 |
ValidationError |
400 |
ServerError |
500 |
AIServiceError |
502 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ai_response_ops-1.0.0.tar.gz
(6.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_response_ops-1.0.0.tar.gz.
File metadata
- Download URL: ai_response_ops-1.0.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45048c69016d48ae944ddb2af25972eaa5b317208019fc55535ea10669fdf211
|
|
| MD5 |
4ab21bbb21cca0438f4d0c5a33b2099c
|
|
| BLAKE2b-256 |
e555a614505c9bc88cf60c4039c47739fd23526f7352636e0c7aadf3eed4b966
|
File details
Details for the file ai_response_ops-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ai_response_ops-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6aad1b381118c7534da862bb62e66d0cf67c1fc2cfeb5e96dc29417b79aa8b9c
|
|
| MD5 |
5f0577137cd3df9555eb0de3f148275c
|
|
| BLAKE2b-256 |
69895ecdea9de05587ea7cef0e9db5e012ccce616db1c65e26a98d5b9d99331a
|