Skip to main content

llama-index-readers-cvfile

LlamaIndex reader 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 reader pulls the embedded text payloads directly.

Install

pip install llama-index-readers-cvfile

Use

from pathlib import Path
from llama_index.readers.cvfile import CVFileReader

reader = CVFileReader()
docs = reader.load_data(file=Path("resume.cv"))

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

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 reader 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.

reader = CVFileReader()              # verify=True (default)
reader = CVFileReader(verify=False)  # trusted files only

Metadata fields

Key Description
source Absolute path to the loaded file
file_name Basename of the source file
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 llama-index-readers-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 llama-index-readers-cvfile 0.3.2
File Size Uploaded
llama_index_readers_cvfile-0.3.2.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-readers-cvfile 0.3.2
File Interpreter ABI Platform
llama_index_readers_cvfile-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / llama_index_readers_cvfile-0.3.2.tar.gz

Download URL llama_index_readers_cvfile-0.3.2.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1f65003a9c6e17d64bcacd570540a302e3eedaabf600a86e37be8d1139e5ffa0
BLAKE2b-256 checksum
How to use checksums
472a5d8526d83f2e332e21fa37470d0ad272be05ba99c4adb92ee4a284ffe5e8
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 / llama_index_readers_cvfile-0.3.2-py3-none-any.whl

Download URL llama_index_readers_cvfile-0.3.2-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f30eb633bee9d91ae80d26198a47169bb77db0d98583075d4fc3bec26cd441c
BLAKE2b-256 checksum
How to use checksums
343fe5cbffcfcc5b0ffcd86c51e94f7a718bf35b97f01fff7af1a6b3f2d9392f
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