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.2.tar.gz (49.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.3.2-py3-none-any.whl (46.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cvfile-0.3.2.tar.gz
  • Upload date:
  • Size: 49.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.3.2.tar.gz
Algorithm Hash digest
SHA256 0473da3305b8e694ea229cd78556e24fca90861d3a119aede82f72a5812cc7b4
MD5 7ca9cf47e4b3632b2cf0ef46b8d879cf
BLAKE2b-256 54484235c10c4a830ea4c775c2dac1fd71dd56d7c971a28ae900e6fb87b60cbe

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: cvfile-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 46.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.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ab97a72fdae0068c6f1dad7b084ea5bd8d869c450c051a02b5a6d134d2c869ea
MD5 fd834568c6f2638238557be6b237d17f
BLAKE2b-256 bb2f0a94bb1c21e2584f836c35025ecbbd2399ca67ea71ffe5870e2a4c4441b8

See more details on using hashes here.

Provenance

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