Metadata-Version: 2.4
Name: langchain-quantumscan
Version: 0.1.0
Summary: QuantumScan tools for LangChain, LangGraph, CrewAI, and AutoGen — pre-transaction safety checks and post-quantum cryptography scanning for autonomous agents.
Author-email: QuantumScan <hello@quantumscan.io>
License: MIT
Project-URL: Homepage, https://quantumscan.io
Project-URL: Repository, https://github.com/quantumscan-io/langchain-quantumscan
Project-URL: Issues, https://github.com/quantumscan-io/langchain-quantumscan/issues
Keywords: langchain,langgraph,crewai,autogen,ai-agent,blockchain-security,post-quantum-cryptography,quantumscan,mcp
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: langchain
Requires-Dist: langchain>=0.1; extra == "langchain"
Requires-Dist: pydantic>=2.0; extra == "langchain"
Provides-Extra: crewai
Requires-Dist: crewai>=0.1; python_version >= "3.10" and extra == "crewai"
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Dynamic: license-file

# langchain-quantumscan

QuantumScan tools for **LangChain**, **LangGraph**, **CrewAI**, and **AutoGen** — pre-transaction
safety checks (honeypot/drainer detection, contract risk scoring) and post-quantum cryptography
vulnerability scanning, ready to drop into an agent's toolset.

No server to run — every tool calls the hosted QuantumScan MCP endpoint
(`https://quantumscan.io/api/mcp`) directly. Free tier: 10 scans/day per IP, no signup.

## Install

```bash
pip install langchain-quantumscan
```

## LangChain / LangGraph

```python
from langchain_quantumscan import get_quantumscan_tools
from langgraph.prebuilt import create_react_agent

tools = get_quantumscan_tools()
agent = create_react_agent(llm, tools)
```

Individual tools: `QuantumScanTool` (scan a repo), `GetScanResultTool` (poll for results),
`CheckPqcRiskTool` (instant algorithm check, no scan), `ScanContractTool` (verify a contract
is safe **before** signing a transaction with it).

## CrewAI

```python
from crewai import Agent
from langchain_quantumscan import QuantumScanCrewTool

auditor = Agent(
    role="Security Auditor",
    goal="Verify contracts and repos are safe before the crew interacts with them",
    tools=[QuantumScanCrewTool()],
)
```

## AutoGen

```python
from langchain_quantumscan import quantumscan_scan_contract, AUTOGEN_TOOLS
```

## Why this exists

Autonomous agents that sign transactions or install dependencies are the highest-value target
for honeypots, drainers, and rug pulls — and by construction they can't "notice" a scam the way
a human would. `ScanContractTool` / `quantumscan_scan_contract` gives an agent a way to check
**before** signing, not just discover the loss after.

## Optional: higher rate limits

```bash
export QUANTUMSCAN_API_KEY=qs_...   # get one free at quantumscan.io
```

## License

MIT
