yaml_resume.resume.contact module

class yaml_resume.resume.contact.Contact(name, date_of_birth, job, email, phone, location)

Bases: yaml.YAMLObject

Class corresponding to the contact section of a resume.

Parameters
  • name (str) – The first, middle and last name.

  • date_of_birth (str) – The date of birth.

  • job (str) – The current or researched position.

  • email (str) – An email address.

  • phone (str) – The phone number.

  • location (Location) – The full address.

ask()

Interactively create a Contact object.

Returns

a Contact object.

load()

Load dictionary and returns a Contact object.

Parameters

data (dict[]) – A dictionary corresponding to a contact object.

Returns

A Contact object.

yaml_tag = 'Contact'
class yaml_resume.resume.contact.Location(address, city, zipcode, state='', country='')

Bases: yaml.YAMLObject

Class corresponding to an full address.

Parameters
  • address (str) – Street number and name.

  • city (str) – City name.

  • zip (str) – Zip/Postal code

  • state (str) – (optional) State.

  • country (str) – (optional) Country name or code.

ask()

Interactively create a Location object.

Returns

a Location object

load()

Load dictionary and returns a Location object.

Parameters

data (dict[]) – A dictionary corresponding to a Location object.

Returns

A Location object.

yaml_tag = 'Location'