Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.49 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.49 KB

pre-commit.ci status Test and upload example's result

tl;dr: download generated cv.

How to build

You would need

  • >=dev-lang/python-3.11
  • dev-python/pip

For optional pdf generation with libreoffice backend

For optional pdf generation with pandoc backend

  • app-text/pandoc-cli: https://pandoc.org
    • Gentoo users, you can find it in the haskell overlay

Then you can install it with

pip install .

How to use

The main entrypoint is the executable, cv. Feed it the wanted config, it will output the wanted format to stdout.

cv odt < config.toml > cv.odt
cv pdf < config.toml > cv.pdf

Or with your preferred viewer

cv pdf < config.toml | zathura -

You can also use the library directly.

import tomlkit
from curriculum_vitae import generate

with open("config.toml") as f:
    config = tomlkit.load(f)
doc = generate(config)
doc.write("cv.odt")