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.0.tar.gz (33.2 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.0-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cvfile-0.2.0.tar.gz
  • Upload date:
  • Size: 33.2 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.0.tar.gz
Algorithm Hash digest
SHA256 c0d26cc529486810247190a6bdabd9562827a4144232bd5a808d60b96acc9b8d
MD5 5e8b3cd56bed879cc23c047df3532496
BLAKE2b-256 ef1dbc1bc0acf6378d80b25c996310dd6b6ed8c00ddf00767a38f399b3e149c5

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: cvfile-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 36.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3fd4060d5ae2f5fdeec2a41017f803041b70c898f0d66ef21f27b18616748706
MD5 d762f9aa9238d57015143e3fded61670
BLAKE2b-256 67fe9992d8c6fda789e91b61508a5a4103da73986491255ead94e2dcec4b38f4

See more details on using hashes here.

Provenance

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