Git Product home page Git Product logo

crass's Introduction

Setup

git clone https://github.com/
cd 
python -m venv .venv
source .venv/bin/activate
pip3 install -r pyproject.yml

__init__

cv

load_json_yaml

def load_json_yaml(path)

Loads a json, or yaml file from 'path'

kw_mask

def kw_mask(obj, mask_value)

Filters one dictionary based on another. Tried to use as common sense rules as possible.

html2pdf

def html2pdf(html, pdf_path)

Attempts to render html to pdf

copy_or_render

def copy_or_render(source, dest)

Copy all files from source to dest. If it is scss, render it instead.

CurriculumVitae Objects

class CurriculumVitae()

Class representing a CV, with info fo all it's possible configs.

__init__

def __init__(path)

Parameters

path : path to cv file. Can be yaml or json.

generate_vibe

def generate_vibe(theme,
                  outputs,
                  name="",
                  includes=False,
                  mask=True,
                  overwrite=False)

Parameters

theme : str Path to theme directory. outputs : list List of paths specifying what outputs you want. Currently supports '.html', '.pdf'. Must include at least one output. Build directory will be parent of first output. name : str, optional Does nothing. (default is "") includes : str, optional Path to include directory. Any paths referenced in CV (or overwrites), must be relative to this directory. (default is False) mask : dict, optional Determines what data is used to generate cv. (default is True) TODO: examples. overwrite : dict, optional A dictionary mirroring the CV file. Any values specified here will overwrite CV values for this build only. (default is False)

crass's People

Contributors

callumwalley avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.