langchain-opedd
Licensed, rights-cleared content for your LangChain pipelines. Opedd is the licensing rail between expert publishers and AI products — every article comes with a verifiable license key, on-chain proof (Tempo), and EU AI Act Article 53 attestation support. This package is the licensed alternative to scraping for RAG, agents, and AI search.
pip install langchain-opedd
Load your licensed corpus into RAG (the 3-line on-ramp)
from langchain_opedd import OpeddFeedLoader
loader = OpeddFeedLoader(access_key="ent_...") # your Opedd enterprise access key
docs = loader.load() # LangChain Documents, licensing provenance in metadata
Every Document.metadata carries id, title, source, publisher_id, published_at, author, content_hash, and licensed: True — so answers in your pipeline stay attributable to licensed sources. Supports since (delta feeds), max_documents, and lazy_load() for streaming.
# Straight into a vectorstore:
from langchain_openai import OpenAIEmbeddings
from langchain_community.vectorstores import FAISS
vectorstore = FAISS.from_documents(docs, OpenAIEmbeddings())
Agent tools
from langchain_opedd import (
OpeddLookupTool, # licensing status + price for any article URL (no auth)
OpeddDirectoryTool, # browse verified publishers (no auth)
OpeddVerifyLicenseTool, # verify a license key + on-chain proof (no auth)
OpeddContentTool, # retrieve licensed article text (buyer token)
)
tools = [
OpeddLookupTool(),
OpeddDirectoryTool(),
OpeddVerifyLicenseTool(),
OpeddContentTool(buyer_token="opedd_buyer_live_..."),
]
# use with create_react_agent / your agent framework of choice
Where keys come from
-
No key needed for discovery/verification tools.
-
Buyer token (
opedd_buyer_live_*): self-serve signup at opedd.com — no approval step. -
Enterprise access key (
ent_*): issued with an order. What the loader does depends on the licence:- Full download + training orders: the feed carries the full text; nothing else is needed.
- Subscriptions: the feed lists articles without their text, and the loader fetches each article's text from the content API. Pass
buyer_email(the email on the order) so the loader can exchange your access key for a bearer token, or passbuyer_tokenif you already have one. A subscription has a daily reading limit (by default 20 full articles per person, 200 per order); when it is reached the loader stops with a warning and setsloader.reading_limit_reached. Run it again after midnight UTC withsince=to continue. Loading a whole catalogue at once is the Full download + training licence. - Pay per answer: the feed has no text and the loader skips those rows; ask questions with
POST /search.
Pass
allow_discovery_only=Trueto load metadata-only Documents and fetch nothing. Articles the content API will not serve (revoked, withdrawn by the publisher) are skipped.
loader = OpeddFeedLoader(access_key="ent_...", buyer_email="you@company.com")
Autonomous purchasing
Deliberately not a LangChain tool (payment confirmation belongs in a richer protocol). Agents that buy licenses mid-task should use the Opedd MCP server — hosted at https://mcp.opedd.com/mcp or local via npx opedd-mcp — which includes purchase_license with Stripe support.
Related
- Opedd MCP server — 17 tools for MCP-native agents (Claude, Cursor, OpenAI)
- opedd (Python SDK) — the client this package wraps
- For AI agents — full API documentation
MIT.
Metadata
Release files for langchain-opedd 0.1.4
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_opedd-0.1.4.tar.gz | 11.9 kB | Without provenance | Details for langchain_opedd-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_opedd-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for langchain_opedd-0.1.4-py3-none-any.whl |
Total release size: 22.2 kB
Release files / langchain_opedd-0.1.4.tar.gz
| Download URL | langchain_opedd-0.1.4.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
390ce0ed0db4a606207ac61330bdc981e6a6396b814e1af7e1c3aa4104199421
|
|
BLAKE2b-256 checksum How to use checksums |
236cdcc1a90735f742f41603742111f8b8c38c663b2194dd3b0e240cd2b41c5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / langchain_opedd-0.1.4-py3-none-any.whl
| Download URL | langchain_opedd-0.1.4-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65fddad3c9792901862b2471fdb7c4211b4657b09593e3d8e5a564171ba4470d
|
|
BLAKE2b-256 checksum How to use checksums |
9e47428897e16435643b797707ff6e6fab29076cedacffc155bd1645a6503939
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for langchain-opedd 0.1.4
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.