Who it is forA backend developer who needs other internal services to submit documents over HTTP instead of running the Python library directly.
The problemEach service that needs extraction would otherwise have to install and configure the pipeline on its own.
The outcomeA running HTTP server with /extract, /templates, /healthz, and /metrics endpoints.
What you need first
- Python with pip available
- An API key for a hosted LLM backend such as OpenAI, or a local backend such as Ollama (the zero-config path runs on the in-tree mock backend without a key)
- A sample PDF or text file to test with, such as invoice.pdf
Steps
- Run
pip install py-idp[api]to install the FastAPI server extra. - Run
idp serveto start the server. (inferred, check the README) - Send a document to the /extract endpoint with an HTTP client.
- Call /healthz to confirm the server is up.
Prompt for your agent
In the py-idp repo, start the FastAPI server with `idp serve`, then send <path to document> to the /extract endpoint. Return the JSON response. Verify that /healthz returns a healthy status before you send the document.
Caveat. The README does not document the request format for /extract, so read the API docs before writing a client.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for rollroyces/py-idp and "Serve document extraction through a FastAPI endpoint"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer