69 lines
3.4 KiB
Python
69 lines
3.4 KiB
Python
#!/usr/bin/env python
|
|
import argparse
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser(description='Cover letter autofill')
|
|
parser.add_argument('--job_title', '-jt', required=True, help='Job title')
|
|
parser.add_argument('--company_name', '-cn', required=True, help='Company name')
|
|
parser.add_argument('--hiring_manager_name', '-hmn', required=True, help='Hiring manager name')
|
|
parser.add_argument('--job_requirement_1', '-jr1', required=True, help='Job requirement 1')
|
|
parser.add_argument('--job_requirement_2', '-jr2', required=True, help='Job requirement 2')
|
|
parser.add_argument('--job_or_company_attractive_feature', '-af', required=True, help='Attractive feature of job or company')
|
|
|
|
args = parser.parse_args()
|
|
|
|
job_title = args.job_title
|
|
company_name = args.company_name
|
|
hiring_manager_name = args.hiring_manager_name
|
|
job_requirement_1 = args.job_requirement_1
|
|
job_requirement_2 = args.job_requirement_2
|
|
job_or_company_attractive_feature = args.job_or_company_attractive_feature
|
|
|
|
print('\n')
|
|
print('Arguments:')
|
|
print(f'Job title: {job_title}')
|
|
print(f'Company name: {company_name}')
|
|
print(f'Hiring manager name: {hiring_manager_name}')
|
|
print(f'Job requirement 1: {job_requirement_1}')
|
|
print(f'Job requirement 2: {job_requirement_2}')
|
|
print(f'Attractive feature of job or company: {job_or_company_attractive_feature}')
|
|
|
|
subject, cover_letter = make_cover_letter_for_job(
|
|
job_title = job_title,
|
|
company_name = company_name,
|
|
hiring_manager_name = hiring_manager_name,
|
|
job_requirement_1 = job_requirement_1,
|
|
job_requirement_2 = job_requirement_2,
|
|
job_or_company_attractive_feature = job_or_company_attractive_feature
|
|
)
|
|
|
|
print('\n')
|
|
print(f'Subject: {subject}')
|
|
print(f'Cover letter: {cover_letter}')
|
|
|
|
def make_cover_letter_for_job(job_title, company_name, hiring_manager_name, job_requirement_1, job_requirement_2, job_or_company_attractive_feature):
|
|
return f"Application for {job_title} Position", f"""
|
|
Dear {hiring_manager_name},
|
|
|
|
I am writing to express my strong interest in the {job_title} position at {company_name} as advertised on your website.
|
|
The role aligns perfectly with my 5 years of experience as a software engineer specialising in ERP systems and web development. Your requirement for {job_requirement_1} and {job_requirement_2} particularly caught my attention, as these align with my current work developing and maintaining enterprise-level web applications and automation solutions.
|
|
In my current role, I have:
|
|
- Successfully implemented ERP solutions that improved business efficiency by streamlining core processes
|
|
- Developed and maintained scalable web applications using Python, C#, and SQL.
|
|
- Collaborated with stakeholders to automate complex business workflows
|
|
- Delivered projects on time while maintaining high code quality standards
|
|
|
|
I am particularly drawn to {company_name} because of {job_or_company_attractive_feature}. I believe my technical expertise combined with my understanding of business processes would make me a valuable addition to your team.
|
|
I have attached my CV for your review, and 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() |