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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cvfile-0.3.0.tar.gz
  • Upload date:
  • Size: 47.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.0.tar.gz
Algorithm Hash digest
SHA256 e26ce76f1816c1903aa3ea4c1ccbecbe0f1e8be83c76acd4c4df696f94b1a36f
MD5 e11c855f45c26d3e075a1c443cc92ab1
BLAKE2b-256 d803fb12d595ffdd8e36a6690b7c6be1b221ae6209b8239ca11a366ed54e742f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: cvfile-0.3.0-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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c799fa7aac289c06d063f4618d6d0f9ee9e0a47ee2414b1e8417430b599009d9
MD5 d3bc6b0cf8c01729047f26fc97ae5ce4
BLAKE2b-256 26f4eec4f5a8e9f6f1f5693a34fc43b88e519a18b69fcf84fe39eada78dcbd7f

See more details on using hashes here.

Provenance

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