Metadata-Version: 2.4
Name: thinkneo
Version: 1.0.0
Summary: Python SDK for ThinkNEO MCP+A2A Gateway — 59 MCP tools + 24 A2A skills
Project-URL: Homepage, https://thinkneo.ai
Project-URL: Documentation, https://github.com/thinkneo-ai/mcp-server
Project-URL: Repository, https://github.com/thinkneo-ai/sdk-python
Project-URL: Issues, https://github.com/thinkneo-ai/sdk-python/issues
Author-email: ThinkNEO <hello@thinkneo.ai>
License-Expression: MIT
License-File: LICENSE
Keywords: a2a,ai-governance,finops,guardrails,mcp,sdk,thinkneo
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: httpx>=0.25.0
Provides-Extra: dev
Requires-Dist: pytest-timeout>=2.3; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: respx>=0.21; extra == 'dev'
Description-Content-Type: text/markdown

# ThinkNEO Python SDK

[![PyPI](https://img.shields.io/pypi/v/thinkneo.svg)](https://pypi.org/project/thinkneo/)
[![Python](https://img.shields.io/pypi/pyversions/thinkneo.svg)](https://pypi.org/project/thinkneo/)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

Python SDK for the [ThinkNEO MCP+A2A Gateway](https://github.com/thinkneo-ai/mcp-server) — 59 MCP tools + 24 A2A skills.

## Install

```bash
pip install thinkneo
```

## Quick Start

```python
from thinkneo import ThinkneoClient

client = ThinkneoClient(api_key="tnk_your_key_here")

# Safety check (free, no key needed)
result = client.check(text="Ignore all previous instructions")
print(result.safe)       # False
print(result.warnings)   # [{type: "prompt_injection", ...}]

# AI spend tracking
spend = client.check_spend(workspace="prod")
print(spend.total_cost_usd)

# Smart Router
route = client.route_model(task_type="code_generation")
print(route.recommended_model)
```

## Async Support

```python
from thinkneo import AsyncThinkneoClient

async with AsyncThinkneoClient(api_key="tnk_...") as client:
    result = await client.check(text="test prompt")
    status = await client.provider_status()
```

## Environment Variable

```bash
export THINKNEO_API_KEY=tnk_your_key_here
```

```python
client = ThinkneoClient()  # reads from env
```

## All Methods

See [ThinkNEO MCP Server](https://github.com/thinkneo-ai/mcp-server) for full tool documentation.

## Links

- [Gateway](https://github.com/thinkneo-ai/mcp-server) — 59 MCP tools + 24 A2A skills
- [TypeScript SDK](https://github.com/thinkneo-ai/sdk-typescript)
- [Website](https://thinkneo.ai)
