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
File details
Details for the file motivate-me-0.1.0.tar.gz
.
File metadata
- Download URL: motivate-me-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 031c74449b380b68c014bd932626d990548726756e97e9997b48b3fccf48a07a |
|
MD5 | 5b103f15e59912e5cdbc760d457565c2 |
|
BLAKE2b-256 | d60981c3c03f0aca2a11b83ae3dbfc7e13c354a9403e68f28bab8e1c4bf57426 |
File details
Details for the file motivate_me-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: motivate_me-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32347216624da953bdc4035c4a31d3876bd3a098eb7dd545cc4e2e9065660a35 |
|
MD5 | c3e553b45e4c2018fc79aee7094a8f38 |
|
BLAKE2b-256 | c12ecdfbef40423d916acd37672a04b4fcb0d96ceec8570390107c4b10102ef6 |