# AIS Python Client
Lightweight Python wrapper for the AI Immune System (AIS) API.
## Install (after release)
```bash
pip install ais-client
```
## Quick Use
```python
from ais_client import AISClient
client = AISClient(api_key="YOUR_API_KEY", base_url="https://your-ais.example")
res = client.run(
json={"amount": "42"},
schema={"type": "object", "properties": {"amount": {"type": "number"}}, "required": ["amount"]},
)
print(res.ok, res.final, res.repairs)
```
Environment vars: `AIS_API_KEY`, `AIS_BASE_URL` can substitute for args.
## Status
Alpha: minimal endpoint coverage (only `/v1/immune/run`). PRs welcome for admin & billing helpers.
## License
Apache 2.0
Raw data
{
"_id": null,
"home_page": null,
"name": "ais-client",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "json, llm, validation, firewall, openai, stripe, guardrails",
"author": "Odin Secure",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/b2/2c/584500e5658c41ce3d3fa613fe3c908e9a60340fcd624e8cfd071f330a33/ais_client-0.1.0.tar.gz",
"platform": null,
"description": "# AIS Python Client\r\n\r\nLightweight Python wrapper for the AI Immune System (AIS) API.\r\n\r\n## Install (after release)\r\n\r\n```bash\r\npip install ais-client\r\n```\r\n\r\n## Quick Use\r\n\r\n```python\r\nfrom ais_client import AISClient\r\n\r\nclient = AISClient(api_key=\"YOUR_API_KEY\", base_url=\"https://your-ais.example\")\r\nres = client.run(\r\n json={\"amount\": \"42\"},\r\n schema={\"type\": \"object\", \"properties\": {\"amount\": {\"type\": \"number\"}}, \"required\": [\"amount\"]},\r\n)\r\nprint(res.ok, res.final, res.repairs)\r\n```\r\n\r\nEnvironment vars: `AIS_API_KEY`, `AIS_BASE_URL` can substitute for args.\r\n\r\n## Status\r\n\r\nAlpha: minimal endpoint coverage (only `/v1/immune/run`). PRs welcome for admin & billing helpers.\r\n\r\n## License\r\n\r\nApache 2.0\r\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Python client for AI Immune System (AIS): JSON firewall + guarded LLM fallback.",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://www.odinsecure.ai",
"Issues": "https://github.com/Maverick0351a/ai-immune-system/issues",
"Repository": "https://github.com/Maverick0351a/ai-immune-system"
},
"split_keywords": [
"json",
" llm",
" validation",
" firewall",
" openai",
" stripe",
" guardrails"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "eb6ba22d14d758bc446bc1a8e20e413b38ed60a1eb593b99286e6a22337709b1",
"md5": "0b09a81d404ba885d5822c437210698a",
"sha256": "253f6f7ed1e43aaa1bc1da45ca8e41e54a361e9ee3c9c2900d432cf12fdb7e82"
},
"downloads": -1,
"filename": "ais_client-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0b09a81d404ba885d5822c437210698a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 3511,
"upload_time": "2025-08-27T07:45:27",
"upload_time_iso_8601": "2025-08-27T07:45:27.191240Z",
"url": "https://files.pythonhosted.org/packages/eb/6b/a22d14d758bc446bc1a8e20e413b38ed60a1eb593b99286e6a22337709b1/ais_client-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b22c584500e5658c41ce3d3fa613fe3c908e9a60340fcd624e8cfd071f330a33",
"md5": "3632e295b30948941d8758dbd4896405",
"sha256": "d5fa7da2fe0d2ff35b0b7e82398d1ee05bbfe0ea9d3210abba1e651250de2248"
},
"downloads": -1,
"filename": "ais_client-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "3632e295b30948941d8758dbd4896405",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 3182,
"upload_time": "2025-08-27T07:45:28",
"upload_time_iso_8601": "2025-08-27T07:45:28.488286Z",
"url": "https://files.pythonhosted.org/packages/b2/2c/584500e5658c41ce3d3fa613fe3c908e9a60340fcd624e8cfd071f330a33/ais_client-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-27 07:45:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Maverick0351a",
"github_project": "ai-immune-system",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "ais-client"
}