Skip to main content

langchain-cvfile

LangChain document loader for the .cv open file format.

A .cv file is a PDF/A-3u file carrying a Markdown copy of the same content (plus optional HTML and JSON Resume) as PDF Associated Files. Instead of OCR ing the PDF, this loader pulls the embedded text payloads directly.

Install

pip install langchain-cvfile

Use

from langchain_cvfile import CVFileLoader

loader = CVFileLoader("resume.cv")
docs = loader.load()

for doc in docs:
    print(doc.metadata["payload"], doc.metadata["mime_type"], len(doc.page_content))

You get one Document per textual payload found in the file. The Markdown copy (typically resume.md) is the one flagged with metadata["primary"] = True.

Untrusted files

By default the loader runs cvfile.validate() before extracting anything. Files carrying forbidden active content (JavaScript, launch or submit actions, external references), encryption, integrity digest mismatches, or payloads over the spec size cap raise ValueError listing the issue codes. Resumes are classic untrusted input, so keep the default when loading files you did not produce yourself.

loader = CVFileLoader("resume.cv")               # verify=True (default)
loader = CVFileLoader("resume.cv", verify=False)  # trusted files only

Metadata fields

Key Description
source The file path you passed to the loader
payload Name of the embedded file (e.g. resume.md)
mime_type MIME of the payload (text/markdown, text/html, application/json)
relationship PDF Associated Files relationship (Alternative for primary alternates)
language BCP 47 language tag for this payload
primary True for the payload declared as primary in the file's XMP metadata
cv_version Version of the .cv spec the file conforms to
cv_generator Tool that produced the file, if recorded

License

Apache-2.0.

Metadata

Release files for langchain-cvfile 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-cvfile 0.3.2
File Size Uploaded
langchain_cvfile-0.3.2.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-cvfile 0.3.2
File Interpreter ABI Platform
langchain_cvfile-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / langchain_cvfile-0.3.2.tar.gz

Download URL langchain_cvfile-0.3.2.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
079f967cdaa0c0052a7066b175b7a79613bb6b23c81a48519507dc1a86a3721c
BLAKE2b-256 checksum
How to use checksums
13ad06687dd72bbac5b658173ac4b6efe75568394e263d30e2bb65f12f9aa5a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.

Transparency log

Release files / langchain_cvfile-0.3.2-py3-none-any.whl

Download URL langchain_cvfile-0.3.2-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae1b5fe7148ff500f10bd8ef6980dfa08e17d03aa038d8a11ac07195cf7a7e58
BLAKE2b-256 checksum
How to use checksums
2958b0906b61f88aa60b6f714f840658cc3df59c5af35b6b1de07911511903ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page