Skip to main content

OpenAI GPT based cover letter generator.

Project description

\n# GPT-Based Cover Letter Generator

clgen is a cover letter generator CLI based on GPT-4. It reduces the effort to create customized cover letters for job applications.

Setting up the application takes about two minutes, and saves you from the effort of interacting with ChatGPT manually.

Installation

pip install clgen

Usage

clgen requires the OPENAI_API_KEY environment variable to be set.

$ export OPENAI_API_KEY=sk-W...m
$ clgen --help

Usage: clgen [OPTIONS] COMMAND [ARGS]...

  Cover Letter Generator CLI.

Options:
  --help  Show this message and exit.

Commands:
  configure   Configure user profile.
  cv-add      Add a new CV.
  cv-delete   Delete an existing CV.
  cv-display  Display an existing CV.
  generate    Generate a cover letter.

Configure

Adds information about yourself:

$ clgen configure
Enter your full name: John Doe
Enter your street: Doe Street
Enter your street number: 5
Enter your zip: 123456
Enter your city: Berlin
Enter your country: Germany
Configuration saved.

Rerun to update saved information.

Manage CVs

Add CV

clgen cv-add

This command asks for a name to save the cv / resume as and open an interactive window to paste the plain text cv. Recommended to paste everything from job experience and skills, maybe exclude your contact information.

Display CVs

clgen cv-display

Lists list of saved CVs with option to print them.

Delete CV

clgen cv-delete

Deletes a saved CV.

Generating Cover Letters

clgen generate --model gpt-3.5-turbo-1106

Generate takes an additional (optional) argument model, which should correspond to a model found here. Defaults to gpt-4-1106-preview.

Upon running the command, an interactive window opens to copy-paste the job description into. Next you are asked to provide the company name.

The CLI will then leverage the OpenAI API to generate a friendly cover letter focussing on your skills, explaining why you are a good match for the position. The result will be printed to the terminal.

Once the result is available, you can proceed in three ways: Choose an action (a / accept, e / edit, r / regenerate) (a, e, r):

Accept

Upon accepting, you can edit the output interactively before it is automatically saved to the ~/.clgen/letters directory as markdown file. Congrats, go to get that job!

Edit

If you are not satisfied with the result, you can choose to pass the existent generation with an additional prompt. An example prompt which works quite good is:

Rewrite the letter with a stronger focus on me being a good match for the position and less focus on my past emplyoment history.

Regenerate

If you are not satisfied with the result, you can regenerate the last input with a different temperature (aka. creativeness). Default tempeature is 0.7, where a higher value (e.g. 1.5) would create in more creative writing, be aware about hallucinations though.

Disclaimer

Costs

By using this open source project, you agree to provide your own OpenAI API key to access the OpenAI services. You acknowledge that you will be solely responsible for any costs incurred by the use of your OpenAI API key in connection with this project. The usage of the OpenAI API through this project will be billed to your account with OpenAI according to their pricing policies.

The author(s) of this project shall not be held liable for any charges, fees, costs, or expenses that you may incur as a result of your use of your OpenAI API key with this project. It is your responsibility to secure your API key and to ensure that any use of the key complies with OpenAI's terms and conditions. You should monitor your usage to prevent unexpected charges, as the author(s) provide no warranty or guarantee regarding the cost or billing of your use of the OpenAI API.

Data Privacy

When using this open source project, you may input information that will be processed by the OpenAI API. Please be aware that any data you provide may be shared with OpenAI and will be subject to OpenAI's privacy policy. The author(s) of this project do not have control over, and assume no responsibility for, the data privacy practices of OpenAI or any data handling once it has been transmitted to OpenAI's systems.

You are responsible for ensuring that any data you input into the tool complies with data protection laws applicable to you and does not infringe upon the rights of any third parties. It is your duty to review OpenAI's privacy policy to understand how your data will be used and to ensure that you consent to this usage. By using your OpenAI API key in conjunction with this project, you acknowledge and agree to OpenAI's data processing practices as outlined in their privacy policy.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clgen-1.0.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clgen-1.0.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file clgen-1.0.0.tar.gz.

File metadata

  • Download URL: clgen-1.0.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for clgen-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2f574f55f00ad72e87fb526d165dd1c74601e178251f05b7149ac21e6e23c106
MD5 72b1941f309adb0ecb7c2cc0985193e0
BLAKE2b-256 e367b768f677e5ef0cf5b78c62971d3082e14af0d8dd93efd159c34c231cfb56

See more details on using hashes here.

File details

Details for the file clgen-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: clgen-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for clgen-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2039de8acce8b769867ac80e1dfac37ca6db69b5e7b1105283dd06765ecd3fc2
MD5 42107ee4b2e5e148d9b465146227a279
BLAKE2b-256 2edbe8208490416d2ac328cf49abba70283b821abd26481522fce641f152dd83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page