ThinkNEO Python SDK
Python SDK for the ThinkNEO MCP+A2A Gateway — 59 MCP tools + 24 A2A skills.
Install
pip install thinkneo
Quick Start
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
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
export THINKNEO_API_KEY=tnk_your_key_here
client = ThinkneoClient() # reads from env
All Methods
See ThinkNEO MCP Server for full tool documentation.
Links
- Gateway — 59 MCP tools + 24 A2A skills
- TypeScript SDK
- Website
Metadata
Release files for thinkneo 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| thinkneo-1.0.0.tar.gz | 16.3 kB | Without provenance | Details for thinkneo-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thinkneo-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for thinkneo-1.0.0-py3-none-any.whl |
Total release size: 30.8 kB
Release files / thinkneo-1.0.0.tar.gz
| Download URL | thinkneo-1.0.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f03cfb0ae0b6ec9df0e9c1f8e9c31bb9356797fd54eb056be87d20aa63787418
|
|
BLAKE2b-256 checksum How to use checksums |
57b147a3eed5927b0115f60b797453d3abc25ebb8770c53a9956cd5e120b4244
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / thinkneo-1.0.0-py3-none-any.whl
| Download URL | thinkneo-1.0.0-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e52a7601f00a7def8339d38d9e8a32f31713f66ceeb84eec2b0ea53f1b90eb25
|
|
BLAKE2b-256 checksum How to use checksums |
6791f24b444db151f1b109142b8c1d92a1306e67c1d58600c1a73daac8be054a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for thinkneo 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.