{"id":23932575,"url":"https://github.com/ivycheck/ivycheck-python-sdk","last_synced_at":"2025-09-11T15:31:54.475Z","repository":{"id":229014838,"uuid":"775404514","full_name":"ivycheck/ivycheck-python-sdk","owner":"ivycheck","description":"Python SDK for IvyCheck","archived":false,"fork":false,"pushed_at":"2024-04-17T15:14:24.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-17T16:34:58.854Z","etag":null,"topics":["ai","ai-quality","ai-security","generative-ai","generative-ai-security-assurance","gpt"],"latest_commit_sha":null,"homepage":"https://ivycheck.com/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivycheck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-21T10:26:23.000Z","updated_at":"2024-04-17T16:35:00.542Z","dependencies_parsed_at":null,"dependency_job_id":"f987eb6c-7e80-4cb2-8484-3912b330109a","html_url":"https://github.com/ivycheck/ivycheck-python-sdk","commit_stats":null,"previous_names":["ivycheck/ivycheck-python-sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivycheck%2Fivycheck-python-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivycheck%2Fivycheck-python-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivycheck%2Fivycheck-python-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivycheck%2Fivycheck-python-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivycheck","download_url":"https://codeload.github.com/ivycheck/ivycheck-python-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232657263,"owners_count":18556808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-quality","ai-security","generative-ai","generative-ai-security-assurance","gpt"],"created_at":"2025-01-06T00:29:07.684Z","updated_at":"2025-01-06T00:29:10.495Z","avatar_url":"https://github.com/ivycheck.png","language":"Jupyter Notebook","readme":"# IvyCheck Python  SDK\n\n\n## SDK Installation\n\n```bash\npip install ivycheck\n```\n\n## SDK Example Usage\n\n### Example\n\n```python\nimport ivycheck\n\nivy = ivycheck.IvyCheck(\n    api_key=\"\u003cYOUR_TOKEN_HERE\u003e\",\n)\n\nivy.checks.hallucination(text=\"It is sunny outside\", context=\"It is rainig cats and dogs\")\n\n# {'passed': False,\n#  'score': 0.0003337860107421875,\n#  'message': 'Hallucination detected',\n#  'findings': None,\n#  'sanitized_output': None}\n\n\n\n```\n\n## Available Resources and Operations\n\n### Checks\n\n- [hallucination](https://docs.ivycheck.com/checks/hallucination) - Hallucination\n- [pii](https://docs.ivycheck.com/checks/pii) - Pii\n- [prompt_injection](https://docs.ivycheck.com/checks/prompt_injection) - Prompt Injection\n\n\n## Custom HTTP Client\n\nThe Python SDK makes API calls using the [requests](https://pypi.org/project/requests/) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.\n\nFor example, you could specify a header for every request that this sdk makes as follows:\n\n```python\nimport ivycheck\nimport requests\n\nhttp_client = requests.Session()\nhttp_client.headers.update({'x-custom-header': 'someValue'})\ns = ivycheck.IvyCheck(client: http_client)\n```\n\n\u003c!-- End Custom HTTP Client [http-client] --\u003e\n\n\u003c!-- Start Authentication [security] --\u003e\n\n## Authentication\n\n### Per-Client Security Schemes\n\nThis SDK supports the following security scheme globally:\n\n| Name      | Type | Scheme      |\n| --------- | ---- | ----------- |\n| `api_key` | http | HTTP Bearer |\n\nTo authenticate with the API the `api_key` parameter must be set when initializing the SDK client instance. For example:\n\n```python\nimport ivycheck\n\nivy = ivycheck.IvyCheck(\n    api_key=\"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n)\n\n\nres = ivy.checks.hallucination(response='\u003cvalue\u003e', context='\u003cvalue\u003e', project_id='\u003cvalue\u003e')\n\nif res.check_result is not None:\n    # handle response\n    pass\n\n```\n","funding_links":[],"categories":["Learning"],"sub_categories":["Repositories"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivycheck%2Fivycheck-python-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivycheck%2Fivycheck-python-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivycheck%2Fivycheck-python-sdk/lists"}