pdg-langchain
LangChain tools for the Provenance Data Grid API. Query compliance data, business entities, healthcare providers, SEC financials, crypto prices, weather, and web content from your LangChain agents.
Install
pip install pdg-langchain
Authentication
Set your API key as an environment variable:
export PDG_API_KEY="your-key-here"
A free tier of 5 calls/day is available without an API key. Purchase credits at https://pdg.neprovenance.com/billing/plans.
Quick start -- single tool
from pdg_langchain import PDGSanctionsScreen
tool = PDGSanctionsScreen()
result = tool.invoke({"name": "John Smith"})
print(result)
Use all tools with an agent
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
from pdg_langchain import get_pdg_tools
llm = ChatOpenAI(model="gpt-4o")
tools = get_pdg_tools()
agent = create_react_agent(llm, tools)
response = agent.invoke(
{"messages": [{"role": "user", "content": "Screen 'Acme Corp' against the OFAC sanctions list"}]}
)
print(response["messages"][-1].content)
Pass API key directly
from pdg_langchain import get_pdg_tools
tools = get_pdg_tools(api_key="your-key-here")
Available tools
| Tool | Endpoint | Description |
|---|---|---|
PDGSanctionsScreen |
/sanctions/screen |
OFAC SDN screening -- fuzzy match against 19,596 sanctioned entities |
PDGEntitySearch |
/entity/search |
Business entity search across SEC, NPPES, and 5 state SOS databases |
PDGProviderSearch |
/provider/search |
Healthcare provider search -- 9.89M US providers by name, NPI, or specialty |
PDGCompanyFinancials |
/company/{cik}/financials |
SEC financial data: revenue, net income, assets, EPS from XBRL filings |
PDGCryptoPrice |
/price/crypto/{symbol} |
Crypto price, 24h change, volume, and market cap (100+ coins) |
PDGWebExtract |
/web/extract |
Extract a web page as clean, LLM-ready markdown |
PDGWebSearch |
/web/search |
Web search via Brave Search with structured results |
PDGWeather |
/weather/{lat},{lon} |
Current conditions and 48-hour forecast for any coordinates |
Tool parameters
PDGSanctionsScreen
name(str, required) -- Name to screen
PDGEntitySearch
name(str, required) -- Business namestate(str, optional) -- Two-letter US state code
PDGProviderSearch
name(str, optional) -- Provider or organization namenpi(str, optional) -- NPI number for exact lookupstate(str, optional) -- Two-letter US state codecity(str, optional) -- City nametaxonomy(str, optional) -- Taxonomy/specialty codelimit(int, default 10) -- Max results (1-50)
PDGCompanyFinancials
cik(str, required) -- SEC CIK number (e.g. "320193" for Apple)
PDGCryptoPrice
symbol(str, required) -- Coin symbol (e.g. "btc", "eth")
PDGWebExtract
url(str, required) -- URL to extract
PDGWebSearch
query(str, required) -- Search query
PDGWeather
lat(float, required) -- Latitudelon(float, required) -- Longitude
License
MIT
Metadata
Release files for pdg-langchain 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 |
|---|---|---|---|---|
| pdg_langchain-0.1.0.tar.gz | 4.9 kB | Without provenance | Details for pdg_langchain-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdg_langchain-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pdg_langchain-0.1.0-py3-none-any.whl |
Total release size: 10.9 kB
Release files / pdg_langchain-0.1.0.tar.gz
| Download URL | pdg_langchain-0.1.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb3019b699b7b7d49f77099e53d2d893e3a4655a650274bededaab8a5e86efb9
|
|
BLAKE2b-256 checksum How to use checksums |
135cace9b8d4e178d05cdcb20a3de6d6f68136595ce1a3782c97553ff5b94213
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / pdg_langchain-0.1.0-py3-none-any.whl
| Download URL | pdg_langchain-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb86a8ac4717609cebae90601f31d1128d3509aa4f459e58aeab47ab28967ec6
|
|
BLAKE2b-256 checksum How to use checksums |
549dc6d85ff4de3e401ee3a343eec80a1fb2f30a1de3ef42b74976111dbd4d07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for pdg-langchain 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.