langchain-docapi
LangChain tools for DocAPI — generate PDFs, screenshots, and invoices via API.
Installation
pip install langchain-docapi
Quick Start
from langchain_docapi import DocAPIPDFTool, DocAPIScreenshotTool, DocAPIInvoiceTool
from langchain.agents import AgentExecutor, create_tool_calling_agent
from langchain_openai import ChatOpenAI
tools = [
DocAPIPDFTool(api_key="your-docapi-key"),
DocAPIScreenshotTool(api_key="your-docapi-key"),
DocAPIInvoiceTool(api_key="your-docapi-key"),
]
llm = ChatOpenAI(model="gpt-4o")
agent = create_tool_calling_agent(llm, tools, prompt)
agent_executor = AgentExecutor(agent=agent, tools=tools)
agent_executor.invoke({"input": "Generate a PDF from <h1>Hello World</h1>"})
Documentation
See the DocAPI docs for full API reference.
Metadata
Release files for langchain-docapi 0.1.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 |
|---|---|---|---|---|
| langchain_docapi-0.1.0.tar.gz | 3.3 kB | Without provenance | Details for langchain_docapi-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_docapi-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_docapi-0.1.0-py3-none-any.whl |
Total release size: 7.6 kB
Release files / langchain_docapi-0.1.0.tar.gz
| Download URL | langchain_docapi-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1391cee123d9ec06ade9b249ff82f6cf407b6667790398be01ce9f9d7fa61424
|
|
BLAKE2b-256 checksum How to use checksums |
67913db11d0e73a266a020153902bee619242e42ed2d8356279ea4f9b1ec9b83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Release files / langchain_docapi-0.1.0-py3-none-any.whl
| Download URL | langchain_docapi-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ee9b80cc0e9ea2a2785f9aee29e427e5f0700f719ee8fb80efbb16eb1428885
|
|
BLAKE2b-256 checksum How to use checksums |
ea2ba941003ce060c8cb0b7235df2aec9235be64ab4a1ec636239b4daa3d05c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Security for langchain-docapi 0.1.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.