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.1.0.tar.gz (28.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.1.0-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cvfile-0.1.0.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cvfile-0.1.0.tar.gz
Algorithm Hash digest
SHA256 62584e52231b13842cdd97caca05b26657e5672b51c76618c080efe684d70c51
MD5 1409164d5bf4f64be01fe0bafacbfcce
BLAKE2b-256 b3b84da3f96ef8bd18f71457e6cf2811b544d63b7a8739ed371694a38cbb1fe1

See more details on using hashes here.

File details

Details for the file cvfile-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cvfile-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cvfile-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a02b990063ed63b9b98d861bb06e5fee0138d8db54c72d6be8aca14da781934c
MD5 cf8d278c32d68c30b96aff6667a65e0e
BLAKE2b-256 b5667df3de8dec0f44952101c3094b90271afbc92e5d6e416a33c8f30a86d414

See more details on using hashes here.

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