A package leveraging ChatGPT to print out motivational quotes and one-liners.
Project description
Motivate Me
This simple Python package leverages ChatGPT to provide motivation to help you out.
This README file serves as the package's documentation.
Installation
Install using pip
:
pip install motivate-me
Usage
Ensure that your OpenAI key is an environmental variable. You can do this a few ways:
- Placing it in your
.env
file and sourcing it (. .env
) - Exporting the key:
export OPENAI_API_KEY="your_key"
Assuming your OpenAI key is in your environmental variables:
>>> import os
>>> from motivate_me import motivate
>>> motivate(os.environ['OPEN_AI_KEY'])
Believe in yourself and your abilities, success is within your reach. Keep pushing forward with determination and watch your achievements unfold.
This will print out a motivational one-liner. We can change this to a quote by passing in type = "quote"
as a parameter
>>> motivate(os.environ['OPEN_AI_KEY'], type = "quote")
"Don't be a pessimist, it won't work anyway!" - Yogi Berra.
You can also increase the number of (maximum) characters for the quote by passing in n_words
(default: 30):
>>> motivate(os.environ['OPEN_AI_KEY'], n_words = 100)
Note that this may not necessarily give you a 100 word quote; this just increases the number of words that can be allocated in a quote.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for motivate_me-0.1.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 924f38ba396551e9028077eb2f5103f5c2ce38abdfed24dbe1889719323e7a25 |
|
MD5 | 026dd3290d1fd28134d77ed699c3b938 |
|
BLAKE2b-256 | 85c869335dfca72674da76a7639893ef99265a7ca63a841b9834011d29c95df7 |