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.2.1.tar.gz (44.6 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.2.1-py3-none-any.whl (44.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cvfile-0.2.1.tar.gz
Algorithm Hash digest
SHA256 81fcdcca109e990ca9181117b3731c71c478126ef34c2ca4fca4d2d8478d6be9
MD5 f0d33831ade44592731111a7a5719a48
BLAKE2b-256 7ac95a804c094eb8da7930a7f11164648d07af6dd9549253e88f6eac3eb06e0c

See more details on using hashes here.

Provenance

The following attestation bundles were made for cvfile-0.2.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.2.1-py3-none-any.whl.

File metadata

  • Download URL: cvfile-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 44.8 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a14db2c2803866f59a633b0d49ee6e98d1ffe0707e47c0af0370e11e4cbfe558
MD5 b536316ff84ff862ab2289652c9066f2
BLAKE2b-256 22825f03bfa9c393a7997e2ce331576a5189228df2805cfd04d7b19b73a04536

See more details on using hashes here.

Provenance

The following attestation bundles were made for cvfile-0.2.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