Metadata-Version: 2.4
Name: docimprint
Version: 0.1.1
Summary: Python client and CrewAI integration for DocImprint verifiable document memory
Project-URL: Homepage, https://docimprint.com
Project-URL: Documentation, https://docimprint.com/docs
Project-URL: Repository, https://github.com/sawftware-apps/docimprint-sdk
Author: DocImprint
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27
Requires-Dist: pydantic>=2.0
Provides-Extra: crewai
Requires-Dist: crewai>=0.80; (python_version < '3.14') and extra == 'crewai'
Provides-Extra: dev
Requires-Dist: pytest-httpx>=0.30; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: respx>=0.21; extra == 'dev'
Description-Content-Type: text/markdown

# docimprint (Python)

Verifiable document memory for AI agents — evidence bundles, Merkle proofs, and signatures.

## Install

```bash
pip install docimprint           # REST client only
pip install "docimprint[crewai]"  # + CrewAI tools & toolkit (Python 3.10–3.13)
```

Set `DOCIMPRINT_API_KEY` or pass `api_key=` to the client. Default API base URL is `https://api.docimprint.com`.

## CrewAI quickstart

```python
import os
from crewai import Agent, Crew, Task
from docimprint.crewai import DocImprintToolkit

toolkit = DocImprintToolkit(
    api_key=os.environ["DOCIMPRINT_API_KEY"],
    collection_id="col_your_collection",  # optional; enables collection search/ask tools
)
researcher = Agent(role="Researcher", goal="Extract verifiable evidence", tools=toolkit.research_tools())
task = Task(description="Extract evidence from https://example.com/contract", agent=researcher)
Crew(agents=[researcher], tasks=[task]).kickoff()
```

`DocImprintToolkit` groups tools for research (`ExtractEvidenceTool`, `SummarizeTool`, `QATool`, `CheckClaimsTool`), legal (`VerifyBundleTool`, `NotarizeTool`), and collection search. Use `toolkit.all_tools()` for the full set.

## REST client

```python
from docimprint import DocImprintClient

with DocImprintClient(api_key="...") as client:
    bundle = client.extract_evidence(url="https://example.com")
    print(bundle["bundle_id"])
```

## Docs

- Source & CrewAI integration: [`python/`](https://github.com/sawftware-apps/docimprint-sdk/tree/main/python) in the [DocImprint SDK repo](https://github.com/sawftware-apps/docimprint-sdk)
- API reference: https://docimprint.com/docs

## License

MIT — see [LICENSE](LICENSE).
