#!/usr/bin/env python import argparse def main(): parser = argparse.ArgumentParser(description='Cover letter autofill') parser.add_argument('--company_name', '-cn', required=True, help='Company name') parser.add_argument('--hiring_manager_name', '-hmn', required=True, help='Hiring manager name') args = parser.parse_args() company_name = args.company_name hiring_manager_name = args.hiring_manager_name print('\n') print('Arguments:') print(f'Company name: {company_name}') print(f'Hiring manager name: {hiring_manager_name}') subject, cover_letter = make_cover_letter_for_company( company_name = company_name, hiring_manager_name = hiring_manager_name ) print('\n') print(f'Subject: {subject}') print(f'Cover letter: {cover_letter}') def make_cover_letter_for_company(company_name, hiring_manager_name): hiring_manager_name = "HR Team" if hiring_manager_name == "" else hiring_manager_name return "Experienced Web Developer - ERP Systems Specialist Seeking Opportunities", f""" Dear {hiring_manager_name}, I hope this email finds you well. I am writing to inquire about web development opportunities at {company_name}, particularly in roles involving ERP systems and business process automation. I am a software engineer with extensive experience in developing and maintaining enterprise-level web applications. My core expertise includes: - Designing and implementing comprehensive ERP solutions that streamline business operations - Creating custom automation systems for both single and multi-function business processes - Full-stack web development using modern technologies and best practices - Maintaining and optimising existing enterprise web applications I specialise in translating complex business requirements into efficient, scalable web solutions. My background in ERP systems has given me a strong understanding of business processes and how to effectively automate them through web applications. I would be grateful for an opportunity to discuss how my skills and experience could benefit {company_name}. I am particularly interested in learning more about your current technology stack and development needs. I have attached my CV for your review. I am available for an initial discussion at your convenience. Thank you for considering my application. I look forward to hearing from you. Best regards, Edward Middleton-Smith edward.middletonsmith@gmail.com 07375571430 https://teddy.org.uk/ https://www.linkedin.com/in/teddyms/ """ if __name__ == '__main__': main()