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.1.tar.gz (5.4 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.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cvfile_cv_detector-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 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.1.tar.gz
Algorithm Hash digest
SHA256 1f3d492166bad3a00df7811adf568ffe3a8344d28ba4db55b566fb9849cb9bf1
MD5 c4306d70d90edbd6d1627b15d97f0b20
BLAKE2b-256 2adea55bb43d1a503a6825b1a60ac39ace6775fd04793d4d43e8d34ced45f517

See more details on using hashes here.

Provenance

The following attestation bundles were made for cvfile_cv_detector-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cvfile_cv_detector-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2fbe2d8ab40e2cf8b014d53adabe5dc7aa08370df042016649c3465b7465f18
MD5 e36982bf176ea0e33374d126d455966d
BLAKE2b-256 1347e0049dc0f9f793bbdbdcfab156fc1ad11df3c0cfd8ad64cc64e52a5519be

See more details on using hashes here.

Provenance

The following attestation bundles were made for cvfile_cv_detector-0.1.1-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