enkryptai-sdk 1.0.5__tar.gz → 1.0.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. {enkryptai_sdk-1.0.5/src/enkryptai_sdk.egg-info → enkryptai_sdk-1.0.7}/PKG-INFO +1 -1
  2. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/setup.py +2 -1
  3. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/guardrails.py +1 -1
  4. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/models.py +1 -1
  5. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/red_team.py +1 -1
  6. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7/src/enkryptai_sdk.egg-info}/PKG-INFO +1 -1
  7. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/LICENSE +0 -0
  8. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/README.md +0 -0
  9. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/setup.cfg +0 -0
  10. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/__init__.py +0 -0
  11. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/ai_proxy.py +0 -0
  12. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/base.py +0 -0
  13. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/config.py +0 -0
  14. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/datasets.py +0 -0
  15. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/deployments.py +0 -0
  16. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/dto/__init__.py +0 -0
  17. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/dto/ai_proxy.py +0 -0
  18. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/dto/base.py +0 -0
  19. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/dto/datasets.py +0 -0
  20. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/dto/deployments.py +0 -0
  21. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/dto/guardrails.py +0 -0
  22. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/dto/models.py +0 -0
  23. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/dto/red_team.py +0 -0
  24. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/evals.py +0 -0
  25. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/guardrails_old.py +0 -0
  26. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk/response.py +0 -0
  27. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk.egg-info/SOURCES.txt +0 -0
  28. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk.egg-info/dependency_links.txt +0 -0
  29. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/src/enkryptai_sdk.egg-info/top_level.txt +0 -0
  30. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/tests/test_ai_proxy.py +0 -0
  31. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/tests/test_all.py +0 -0
  32. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/tests/test_all_v2.py +0 -0
  33. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/tests/test_basic.py +0 -0
  34. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/tests/test_datasets.py +0 -0
  35. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/tests/test_deployments.py +0 -0
  36. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/tests/test_detect_policy.py +0 -0
  37. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/tests/test_guardrails.py +0 -0
  38. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/tests/test_injection_attack.py +0 -0
  39. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/tests/test_model.py +0 -0
  40. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/tests/test_openai.py +0 -0
  41. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/tests/test_policy_violation.py +0 -0
  42. {enkryptai_sdk-1.0.5 → enkryptai_sdk-1.0.7}/tests/test_redteam.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: enkryptai-sdk
3
- Version: 1.0.5
3
+ Version: 1.0.7
4
4
  Summary: A Python SDK with guardrails and red teaming functionality for API interactions
5
5
  Home-page: https://github.com/enkryptai/enkryptai-sdk
6
6
  Author: Enkrypt AI Team
@@ -8,7 +8,8 @@ with open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
8
8
 
9
9
  setup(
10
10
  name="enkryptai-sdk", # This is the name of your package on PyPI
11
- version="1.0.5", # Update this for new versions
11
+ # NOTE: Also change this in .github/workflows/test.yaml
12
+ version="1.0.7", # Update this for new versions
12
13
  description="A Python SDK with guardrails and red teaming functionality for API interactions",
13
14
  long_description=long_description,
14
15
  long_description_content_type="text/markdown",
@@ -376,7 +376,7 @@ class GuardrailsClient(BaseClient):
376
376
 
377
377
  try:
378
378
  response = self._request("GET", "/guardrails/list-policies")
379
- if response.get("error"):
379
+ if isinstance(response, dict) and response.get("error"):
380
380
  raise GuardrailsClientError(response["error"])
381
381
  return GuardrailsListPoliciesResponse.from_dict(response)
382
382
  except Exception as e:
@@ -124,7 +124,7 @@ class ModelClient(BaseClient):
124
124
  """
125
125
  try:
126
126
  response = self._request("GET", "/models/list-models")
127
- if response.get("error"):
127
+ if isinstance(response, dict) and response.get("error"):
128
128
  raise ModelClientError(response["error"])
129
129
  return ModelCollection.from_dict(response)
130
130
  except Exception as e:
@@ -395,6 +395,6 @@ class RedTeamClient(BaseClient):
395
395
  url += f"?status={status}"
396
396
 
397
397
  response = self._request("GET", url)
398
- if response.get("error"):
398
+ if isinstance(response, dict) and response.get("error"):
399
399
  raise RedTeamClientError(response["error"])
400
400
  return RedTeamTaskList.from_dict(response)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: enkryptai-sdk
3
- Version: 1.0.5
3
+ Version: 1.0.7
4
4
  Summary: A Python SDK with guardrails and red teaming functionality for API interactions
5
5
  Home-page: https://github.com/enkryptai/enkryptai-sdk
6
6
  Author: Enkrypt AI Team
File without changes
File without changes
File without changes