Skip to main content

Reference SDK for the .cv open file format — pack, extract, inspect, validate.

Project description

cvfile

Reference Python SDK for the .cv open file format.

Install

pip install cvfile

Pack

from cvfile import pack

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

cv_bytes = pack(
    pdf=pdf_bytes,
    markdown=md,
    metadata={"primary_language": "en"},
)

with open("resume.cv", "wb") as f:
    f.write(cv_bytes)

Extract

from cvfile import extract, extract_markdown

file = extract(open("resume.cv", "rb").read())
print(file.metadata.version)            # "0.1"
print([p.name for p in file.payloads])  # ['resume.md', 'resume.html']

md = extract_markdown(open("resume.cv", "rb").read())

License

Apache-2.0.

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-0.3.1.tar.gz (49.5 kB view details)

Uploaded Source

Built Distribution

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

cvfile-0.3.1-py3-none-any.whl (46.3 kB view details)

Uploaded Python 3

File details

Details for the file cvfile-0.3.1.tar.gz.

File metadata

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

File hashes

Hashes for cvfile-0.3.1.tar.gz
Algorithm Hash digest
SHA256 71045b7096d515eef27916975bae14f0f58a77dad8fcf50987afc1aea712e35a
MD5 9ab5e6bc2d86c74aac4699b77a887e28
BLAKE2b-256 40bfefeb0dd601ededcc8352de674422e31c806601b1d742f29f2a7830db87b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for cvfile-0.3.1.tar.gz:

Publisher: publish-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-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: cvfile-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 46.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cvfile-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bacf70227747146393767b1269ff5aa3bc50f94095de8eec575bd76f794c9f11
MD5 02fe034fef2930015ae1e71a1f6eb37b
BLAKE2b-256 020b48a7eaa4f4b9137cea0741a182b7e9c42f403a9dfc71640d941276d041f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for cvfile-0.3.1-py3-none-any.whl:

Publisher: publish-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