Metadata-Version: 2.4
Name: tuff-sdk
Version: 0.21.1
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Typing :: Typed
Summary: The Tuff SDK for Python: install, update, and remove agent capability packs from your application.
Keywords: agents,claude-code,mcp,skills,tuff
Home-Page: https://tuffcli.dev
Author: Kannan Kalidasan
Maintainer: kannandreams
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://tuffcli.dev/sdk/python/
Project-URL: Homepage, https://tuffcli.dev/sdk/python/
Project-URL: Issues, https://github.com/kannandreams/tuff/issues
Project-URL: Repository, https://github.com/kannandreams/tuff

# tuff-sdk

The Tuff SDK for Python. Install, update, and remove agent capability packs (skills, MCP servers, and hooks for Claude Code, Codex, Cursor, OpenCode, Pi, and Open Agents) from a Python application, with a plan you can show before anything is written.

```sh
pip install tuff-sdk
```

```python
import tuff_sdk as tuff

workspace = tuff.Workspace.open("my-project")
pack = tuff.Pack.checkout("https://github.com/example/review-pack", targets=["claude"])

plan = workspace.plan_install(pack, ["claude"])
for file in plan.files:
    print(file.change, file.path)

workspace.apply(plan)
```

The module runs the same Rust code as the `tuff` command, in process. It never prints: notes and warnings are lists on the results. Errors are `tuff_sdk.TuffError` subclasses with `kind` and `hint`.

The API is 0.x and can change in a minor release. Guide: [Tuff from Python](https://tuffcli.dev/sdk/python/). The command-line tool is the separate `tuffcli` package.

