Metadata-Version: 2.4
Name: scarwise
Version: 0.1.2
Summary: Your AI agents stop repeating the same tool mistakes, no rules to write – Python SDK (needs the scarwise CLI: npm install -g scarwise).
Author: DomitorAI
License: Free to use, also commercially – see LICENSE
Project-URL: Homepage, https://github.com/DomitorAI/scarwise
Project-URL: Documentation, https://github.com/DomitorAI/scarwise/blob/main/docs/agents.md#your-own-application
Project-URL: Issues, https://github.com/DomitorAI/scarwise/issues
Keywords: ai,ai-agents,mcp,llm,tools,agents,safety
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# Scarwise – Python SDK

Your AI agents make a mistake once. Not twice.

Guard the tools of your own Python application: a tool call that already failed the same way on this computer is stopped before it runs, with an explanation of what worked.

```
npm install -g scarwise     # the Scarwise command (Node.js 22 or newer)
pip install scarwise
```

```python
from scarwise import guard, ScarwiseStop

@guard("db.query")
def run_query(sql): ...

try:
    run_query("select 1")
except ScarwiseStop as e:
    print(e)   # the known mistake and what worked
```

If the `scarwise` command is missing or has a problem, the tool simply runs.

Guide, supported agents, privacy and license: https://github.com/DomitorAI/scarwise
