def _email(parms, context, errors): #start off by making sure we have an email address. if not parms.has_key('email') or not utils.email(parms['email']): errors['email'] = "Please provide a valid email address" else: context['email'] = parms['email']
def resume_extracts(text): """ Takes the text format of the resume and returns all the values text: text format of the resume """ conts = {} # Preprocessing the document text = utils.preprocess(text) # Extracting name conts['name'] = utils.name(text) # Extracting Address conts['address'] = utils.address(text) # Extracting mobile number conts['mobile'] = utils.mobile_number(text) # Extracting Email conts['email'] = utils.email(text) # Extracting github conts['github'] = utils.github(text) # Extracting linkedin conts['linkedin'] = utils.linkedin(text) # Provides the expertise list match conts['expertise'] = utils.expertise_match(text) # Provides the resume to job description simiarity conts['similarity_score'] = utils.jobdes_rsm_similarity(text) return conts
if options.drop_collection: rm_collection(options.drop_collection) if options.collection: if options.view_document: dump_document(options.collection, options.view_document) if options.remove_document: remove_document(options.collection, options.remove_document) if options.random_doc: print random_doc(options.collection) if options.pretty_view_user: pretty_view_user(options.pretty_view_user) if options.survivor: if options.survivor_attrib: if options.add_attrib: update_survivor("add", s_id=options.survivor, attrib=options.survivor_attrib, attrib_value=options.add_attrib) if options.remove_attrib: update_survivor("remove", s_id=options.survivor, attrib=options.survivor_attrib, attrib_value=options.remove_attrib) if options.remove_key: update_survivor("del", s_id=options.survivor, survivor_key=options.remove_key) if options.email: email(recipients=options.email.split(), msg="This is a test message!\nGood!") print("Test email sent!") if options.play_summary: motd() play_summary()