Skip to main content

Tiny reference sniffer for the .cv open file format. Detects .cv wrapping inside any application/pdf and unwraps the canonical Markdown payload.

Project description

cvfile-cv-detector (Python)

pip install cvfile-cv-detector
from cvfile_cv_detector import detect, unwrap

with open("resume.pdf", "rb") as f:
    data = f.read()

det = detect(data)
if det.is_cv_file:
    payload = unwrap(data)
    if payload:
        markdown = payload.bytes_.decode("utf-8")
        print(f"got {payload.name} ({payload.mime_type}, {len(markdown)} chars)")

detect() is zero-dependency (pure regex over the PDF bytes). unwrap() uses pypdf to read the PDF Associated Files (/AF) array.

See ../README.md for the cross-language story and rationale.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cvfile_cv_detector-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cvfile_cv_detector-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file cvfile_cv_detector-0.1.0.tar.gz.

File metadata

  • Download URL: cvfile_cv_detector-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cvfile_cv_detector-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8c4ee2c48a0a6fc6263d2c2676ada7fb3b5594380d0e6e93c6f1a8c1d078127f
MD5 1fb4e4ffc68e4b0dee2d7194195ad66b
BLAKE2b-256 b5374518890199b48590ad2e8294f4af056a2ded2e3178b427f9b267a3ebf3af

See more details on using hashes here.

Provenance

The following attestation bundles were made for cvfile_cv_detector-0.1.0.tar.gz:

Publisher: publish-cvfile-cv-detector-pypi.yml on cvfile/cv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cvfile_cv_detector-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cvfile_cv_detector-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a49bb2a6231d0b0312f370dc54a4a04b38ee22f82c244eeb7c01814e2936337
MD5 a567ac657d144bbfa884c652e21b5f24
BLAKE2b-256 80737ecdbabf78d730644c9b3b25e818a4c93d8a4ec1d9d0bb669f77993dfd6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cvfile_cv_detector-0.1.0-py3-none-any.whl:

Publisher: publish-cvfile-cv-detector-pypi.yml on cvfile/cv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page